Skip to content

Memory track: scope-safe diverse retrieval with deterministic MMR - #39

Open
tanmays369 wants to merge 1 commit into
theschoolofai:mainfrom
tanmays369:feature/scope-safe-mmr-retrieval
Open

tanmays369 wants to merge 1 commit into
theschoolofai:mainfrom
tanmays369:feature/scope-safe-mmr-retrieval

Conversation

@tanmays369

Copy link
Copy Markdown

Summary

  • Add opt-in scope-first maximal marginal relevance (MMR) to MemoryStore.recall, penalizing near-duplicate embeddings and repeated source identities after tenant/project/user/agent authorization.
  • Expose diversify on /v1/agent/memory/search and enable diversified corpus recall automatically in the live graph runtime.
  • Add adversarial and lifecycle tests plus a README evidence subsection with floor-case traces and reproduction commands.

Test plan

  • uv run ruff check .
  • uv run pytest -q (51 passed)
  • uv run pytest tests/test_scope_safe_diverse_recall.py -q
  • cd ../S13Proof && uv run pytest -q (3 passed)
  • uv run python run_a2a_proof.py --output a2a-proof.json
  • Live API proof with Ollama gateway (diversify=true memory search + corpus recall)

No secrets, .env, personal memory, or unrestricted local paths committed. Synthetic identities only.

Authorization still precedes diversification; corpus recall and memory search can opt into deterministic source-diverse selection with adversarial tests and README proof.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant