Repository navigation
test(eval): compare graph expansion under fixed budget - #99
Merged
Merged
Conversation
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. |
jack-arturo
added a commit
to verygoodplugins/automem
that referenced
this pull request
Nov 14, 2026
## Summary A scoped recall could return a foreign-scope memory's content inside an inline relation, even with `expand_respect_tags=true` and expansion disabled. Inline related payloads now use the authoritative target node to apply the requested tag/exclusion filters; out-of-scope or unverifiable targets retain only their ID and edge provenance. Current/history behavior and default unscoped expansion remain unchanged. The issue was found in the isolated graph diagnostic in verygoodplugins/automem-evals#99. This is retrieval scoping, not a claim about authorization boundaries. ## Validation - Reproduced the leak before the fix in current/history modes and with expansion on/off. In a separate controlled graph fixture with this change combined with the expansion-limit fix, tag-respecting foreign inline content appeared in 4/24 request variants before and 0/24 after; 48 variants repeat six synthetic queries. - 75 focused tests passed on the integration with current `develop`; the earlier standalone full non-benchmark suite passed (916 passed, 12 skipped). Formatting and lint passed. - A disposable real-FalkorDB probe checked exact/all scope, exclusions, missing targets and current/history behavior; its container was removed. - No-provider isolated LoCoMo mini/full comparisons on `develop` 2a52c48 versus merge-equivalent integration 5647694 (PR code 092b3d8): 197/235 on both mini arms and 1,206/1,542 on both full arms, with no paired changes. API and driver audits were clean; content/vectors matched, ingest timestamps differed, and there were no memory-to-memory relations. The scorer adds labeled evidence to recalled context; 69/444 questions were skipped, respectively. These are no-judge diagnostics, not judged answer-quality or graph-value scores. Concurrent host workloads mean elapsed times do not establish latency effects. See `benchmarks/EXPERIMENT_LOG.md`. - Bounded local reviews found no actionable issues. **Behavior change:** when scope-respecting inline verification is requested, foreign or unverifiable payload content is redacted. No paid provider or production data was used. Implementation harness: Codex desktop.
jack-arturo
added a commit
to verygoodplugins/automem
that referenced
this pull request
Nov 14, 2026
## Summary A recall request with graph or entity expansion could return more top-level results than its requested `limit`. Apply the total limit after expansion, filtering, sorting and priority handling, so eligible related memories can still compete with direct matches while the final response respects the cap. Preserve current-state replacement priority and update access timestamps for returned direct seeds and their current replacements. The inline relation scope fix is separate in #287. ## Behavior change - `limit` caps the entire returned top-level result list, including expansions. Some requests will therefore return fewer results than before. - Expansion `expanded_count` now counts returned expansion results; the new `candidate_count` reports generated candidates before filtering and the limit. ## Validation - Exact-head focused expansion/original-text tests: 45 passed; prior full local non-benchmark suite: 988 passed, 14 skipped. Hosted Python 3.10–3.12, pre-commit and coverage checks passed before the documentation-only update; refreshed checks run on the new head. - Matched isolated no-judge LoCoMo mini/full against develop `2a52c48` and code head `281ac19`: mini **197/235 both**, full **1206/1542 both**; no paired verdict changes. 69/444 judge-dependent questions were skipped. Clean strict API/driver audits, and matching 788/5,882 content/vector records with differing ingestion timestamps. Results and caveats are recorded in `benchmarks/EXPERIMENT_LOG.md`. - The native scorer adds labeled evidence to nonempty recalled context; no memory-to-memory relations were present. This is a directional diagnostic, not a ranked-retrieval or judged agent-answer score. Concurrent full benchmark workloads prevent meaningful latency comparisons. - A separate isolated graph probe of the scope and limit changes combined removed the four observed limit overruns without changing capped evidence in a six-query synthetic fixture. It does not isolate this PR's effect; see verygoodplugins/automem-evals#99. - Bounded local Codex review found an access-tracking edge case, fixed with a regression test; a second review found no actionable regression. The benchmark documentation update passed a further bounded review. No paid provider calls or production data were used. Implementation harness: Codex desktop.
jack-arturo
changed the base branch from
test/original-text-index-eval
to
main
November 19, 2026 00:18
Brings in #94, #92, #93 and #104 so this pull request can merge into main. registry.json conflicted only because this branch adds its record next to the one #93 added; the resolution keeps both, and matches a record-by-record three-way merge. The three generated dashboard files are rebuilt from a three-way merge of index.json: each thread and artifact row is taken from the side that changed it, and the views are rendered from that index with the functions in data/results/postmerge-20261022/refresh_dashboard.py. No artifact or VCS scan was run, so every retained section is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a matched graph-expansion on/off diagnostic using the same 23-memory synthetic corpus, six queries, scoped/current/history controls, result limits and a client-side 200-word context budget. It evaluates both top-level and inline evidence and keeps full synthetic envelopes in local receipts only.
On this small fixture, expansion did not improve capped top-k or budgeted evidence. Foreign-scope content appeared inside an inline relation even with
expand_respect_tags=true, and expansion returned 6/11 top-level results for requested limits 5/10. With tag respect disabled, a foreign result also appeared top-level as expected for that setting. These observations do not establish general graph value or an authorization boundary.A fresh paired live replay tested the exact final scope and limit changes together: tag-respecting inline leaks fell from 4/24 to 0/24 and limit overruns from 4/48 to 0/48, with positive evidence and negative controls unchanged. These variants repeat six queries and cannot attribute changes to each PR separately. The report preserves the executed runner and matched provenance, and discloses a runner-hash caveat in the earlier intermediate probe.
Validation
Breaking changes: none. Stacked on #93; merge/retarget that dependency first.
Implementation harness: Codex desktop.