Skip to content

test(eval): compare graph expansion under fixed budget - #99

Merged
jack-arturo merged 21 commits into
mainfrom
test/graph-value-probe
Nov 19, 2026
Merged

jack-arturo merged 21 commits into
mainfrom
test/graph-value-probe

Conversation

@jack-arturo

@jack-arturo jack-arturo commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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

  • 48 request shapes per isolated stack, zero matched API errors, unchanged access snapshots and complete cleanup; no paid calls.
  • Four graph unit tests and 28 dashboard tests passed. Bounded local review caught and prompted a correction to replay setup instructions.
  • No production data or raw response receipts are published. The final product PRs still need their broader benchmark runs and independent review.

Breaking changes: none. Stacked on #93; merge/retarget that dependency first.

Implementation harness: Codex desktop.

@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T00:23:33.499581Z 300fde0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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 jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added babysit:waiting-codex 👀 Codex reviewing current head and removed babysit:waiting-codex 👀 Codex reviewing current head labels Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 13, 2026
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 13, 2026
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
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>
@jack-arturo
jack-arturo merged commit 5d94174 into main Nov 19, 2026
3 checks passed
@jack-arturo
jack-arturo deleted the test/graph-value-probe branch November 19, 2026 00:22
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