Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/generated/release-truth.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"console_entrypoints": 8,
"mcp_tools": 50,
"ops_cli_commands": 5,
"pytest_test_functions": 3795
"pytest_test_functions": 3803
},
"feature_profile_matrix": {
"capture_hook": [
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/release-truth.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Do not edit this file by hand. Run `python scripts/generate_release_truth.py`.
- Main CLI commands: **118**
- Operations CLI commands: **5**
- Console entrypoints: **8**
- Pytest source test functions: **3795**
- Pytest source test functions: **3803**

## MCP tools

Expand Down
8 changes: 4 additions & 4 deletions memorymaster/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,17 +1318,17 @@ def _build_query_statuses(self, include_stale: bool, include_conflicted: bool, i

def _query_legacy_mode(self, query_text: str, limit: int, statuses: list[str], normalized_scopes: list[str] | None, include_sensitive: bool, requesting_agent: str | None, record_accesses: bool = True) -> list[dict[str, Any]]:
"""Query using legacy retrieval mode."""
legacy = self._legacy_candidates(
query_text, limit, statuses, normalized_scopes
)
conversational = " OR " in query_text
candidate_limit = max(limit * 12, 60) if conversational else limit
legacy = self._legacy_candidates(query_text, candidate_limit, statuses, normalized_scopes)
if not include_sensitive:
legacy = [claim for claim in legacy if not is_sensitive_claim(claim)]
# Visibility: filter out private claims from other agents
legacy = _filter_agent_visibility(legacy, requesting_agent)
ranked_rows = rank_claim_rows(
query_text,
legacy,
mode="legacy",
mode="hybrid" if conversational else "legacy",
limit=limit,
vector_hook=None,
)
Expand Down
Loading
Loading