Repository navigation
feat(eval): add offline MemLeak cross-user admissibility design and scaffold - #107
autohub-claude[bot] wants to merge 2 commits into
Conversation
…caffold Design doc and a stdlib-only scaffold for cross-user/cross-agent admissibility leakage in pooled multi-tenant memory (arXiv:2610.04195, a different paper and construct from the ForgetEval MemLeak in #31; tag isolation as one assertion family in #64 is linked, not duplicated). - docs/eval/memleak-admissibility.md: artifact and license check (no official code or data, arXiv CC BY-NC-ND, so a synthetic fixture), metrics (LR with Wilson CI, mean rank of first cross-user hit, score gap, crafted top-k placement, plus lr_any_channel and inline relation content counters), AutoMem mapping read from automem docs and source at 933004ab (tag_match prefix default, expansion and inline relations bypassing tag scope unless expand_respect_tags, entity-tag collisions, scope_fallback fills), eight arms including pooled tag filter vs per-user partition with over-fetch and a hard owner gate, cold/matured reporting per maturation.md, and a drafted (unfiled) automem issue. - runners/memleak_admissibility/adapter.py: deterministic cold and matured fixtures, request plans, classifiers, aggregation that refuses to score without full plan coverage, and a not_scored report. No network, no model calls, no AutoMem requests; the CLI has no recall transport. - runners/test_memleak_admissibility.py: 15 unit tests. - registry thread EXP-MEMLEAK-ADMISSIBILITY; dashboard views refreshed in scope. Nothing was run against AutoMem and nothing was spent. Paper figures are a different construct and are never AutoMem scores. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ifiers
The pre-PR local review checked the classifiers against the response shapes in
automem at the pinned 933004ab and found two defects (both reproduced there):
- Relation-expanded results carry provenance-only edges (type, strength, from,
seed_rank, seed_score) with no id and no memory. The classifier read them as
an unowned id, so every expansion arm aggregated to invalid. They are now
skipped as inline targets, and only an unknown `from` seed id invalidates.
- _summarize_relation_node returns `summary` and drops `content` for an
enriched memory, so a foreign inline summary was counted as id-only and an
own-only-looking response read as clean. Summary or content text is now a
leak. The owner gate no longer rewrites a provenance edge into a phantom
`memory: {id: None}` target.
Three tests reproduce each behavior (they fail on the previous adapter) and the
two metric rows in the design doc now describe the real shapes. Nothing was run
against AutoMem and nothing was spent.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Babysit: verified green at
Executed by Claude Code ( |
Two scout leads opened after the 2026-11-19 sweep list was fixed (PR #107, PR #109 with issue #108). Both are design docs with offline scaffolds and no AutoMem score, so they follow the same rule as the other closed leads: one watchlist row each, branches kept. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
|
Closed in the pre-launch backlog sweep. This is a design doc and an offline scaffold with no AutoMem score, and no product decision is waiting on it. The branch is kept, and the lead is carried in the benchmark watchlist ( Comes back when: the product needs multi-user or team memory scoping, and a loopback probe of the pooled arms is approved. Reopening is fine at any time. |
Summary
Offline-first design and scaffold for cross-user / cross-agent admissibility leakage in pooled multi-tenant memory, based on MemLeak, "Cross-User Semantic Leakage in Multi-Tenant AI Agent Memory" (arXiv:2610.04195, Mudgal et al., Oct 2026). Candidate fingerprint:
opportunity:automem-graph-rag-research-scout.Nothing was run against AutoMem, no upstream code was executed (none exists), no network was used, and nothing was spent. The report the scaffold emits is
status: not_scored,paper_comparable: false,scores: null. Every paper figure in the doc is paper-reported on a different construct and is never an AutoMem score.Related, linked and not duplicated: #31 (ForgetEval; its "MemLeak" is a different paper, arXiv:2606.29788, on recovering deleted facts), #64 (PrecisionMemBench; tag-isolation smoke on a benchmark-supplied corpus), #102 (mempoison), #99 (graph expansion under a fixed budget). A search of this repo's issues and PRs (all states, including comments) for
2610.04195, "multi-tenant", "admissibility" and "tenant" returned nothing, so no existing issue references this paper.Review Contract
This PR is a design document plus an offline scaffold. Acceptance, and therefore what review may hold it to:
paper_comparable: false).invalid, never clean; rates arenot_scoredunless rows match the plan exactly; foreign inline relation text (contentorsummary) is a leak.docs/eval/maturation.md; the matured graph is injected (graph: injected_oracle) and labeled so, anddeltaisnulluntil both are run.EXP-MEMLEAK-ADMISSIBILITY) and the dashboard views are consistent with the registry.Out of scope here: a live adapter, a stub-transport wiring test, per-user stacks for the partition arm, any
automemchange, and filing the drafted upstream issue. Those are open items in the doc's checklist.What it adds
docs/eval/memleak-admissibility.md: artifact and license check (no official code or data found; arXiv license CC BY-NC-ND 4.0, so a from-scratch synthetic fixture and no copied Appendix E text), metrics (leakage rate with Wilson 95% CI, mean rank of first cross-user hit, score gap, crafted-memory top-k placement, pluslr_any_channeland inline content counters), the AutoMem mapping, eight arms, the fixture, cold/matured reporting, and a drafted, unfiledautomemissue.runners/memleak_admissibility/adapter.py: deterministic cold and matured multi-tenant fixtures (64 organic memories, 16 crafted, 32 queries, 48 injected cross-user edges when matured), 512 request plans (8 arms x 32 queries x 2 variants), classifiers, an aggregation that refuses to score without full plan coverage, and thenot_scoredreport.runners/test_memleak_admissibility.py: 18 unit tests.EXP-MEMLEAK-ADMISSIBILITY;STATUS.md,index.json,scoreboard.htmlrefreshed.AutoMem mapping (source level only)
Read from
automemat the localorigin/developref933004ab(docs/API.md,automem/api/recall.py); not yet observed in a run, and the pin should be refreshed before any live probe. Findings the arms are built to test:tag_matchdefaults toprefix, so a company-level tag matches every user below it;expand_relations/expand_entitiesbypass the tag scope unlessexpand_respect_tags=true, and the inlinerelations[].memoryscope check is gated on the same flag;entity:people:<slug>) carry no tenant component, so tenants who mention the same person share the tag;scope_fallback=truefills a short scoped result from an unscoped vector search.Discrepancy to settle with the first live probe: this repo's
CLAUDE.mdinvariant 2 says server-sideexpand_relationsis a no-op under tag gating, while theautomemAPI doc says expansion bypasses tags by default. One is stale for the stack under test.CLAUDE.mdis untouched here. Graph-expansion leakage has not been observed (no run), so the draftedautomemissue stays a draft in the doc and is not filed.Verification
Same results under
python3.12(the defaultpython3here is 3.15; the repo requires 3.10+). The new file alone:Ran 18 tests ... OK. A scratch regeneration of the dashboard from the committed registry reproduces theEXP-MEMLEAK-ADMISSIBILITYentry (onlyworktree_statusdiffers, from--no-vcs). This repo has no test or lint CI workflow (.github/workflows/holds only the auto-merge helper and a ledger job path-filtered topublic-ledger/index.html, which this PR does not touch), so the local runs above are the test evidence.Size
863 changed lines (+855/-8) across 8 files: the doc (124), adapter (414), tests (244), a package marker (1), and the registry/dashboard refresh (80). That is in the 400-900 band, below the 900 gate. Tests count in full.
Local review (pre-PR gate)
Two bounded local Codex reviews of the branch (
gpt-6.1-sol, medium). The first found two P2 classifier defects in the original commit. Both were reproduced againstautomemat the pin and both breach invariant 3 above, so both are fixed ine52a10d, each with a test that fails on the previous adapter (3 failures verified) and passes on the fix:invalid. Relation-expanded results carryrelations[]entries of{type, strength, from, seed_rank, seed_score}with noidand nomemory; the classifier read them as an unowned id. They are now not treated as inline targets, and only an unknownfromseed id invalidates. The owner gate had the same shape confusion (it rewrote such an edge into a phantommemory: {id: None}) and is fixed in the same batch._summarize_relation_nodereturnssummaryand dropscontentfor an enriched memory. A non-emptysummaryorcontentnow counts as leaked text; an empty or whitespace summary stays id-only.The second (confirmation) review found no actionable defects. Hosted Codex review is the authoritative gate and is still pending at the time of writing.
Provenance
Implementation harness: Claude Code (
claude-sonnet-5-5) · GitHub identity: AutoJack GitHub App (autohub-claude[bot]). Babysit finalizer: Claude Code, same App identity.🤖 Generated with Claude Code