Repository navigation
test(recall): compare original text search and chunks - #93
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f907f851fb
ℹ️ 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".
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".
This was referenced Nov 11, 2026
jack-arturo
added a commit
to verygoodplugins/automem
that referenced
this pull request
Nov 13, 2026
## Summary Recall searches a dedicated original-text index as an independent candidate source, scopes and checks current state, and combines candidates with existing ranking. Bounded overfetch, evidence-preserving replacement selection and lazy relation hydration protect relevance and reduce unnecessary graph work. Internal index text is not returned in memory payloads. The replacement lookup uses a single memory scan rather than a scan per candidate ID. A graph lookup failure no longer silently treats an unverified memory as current. Stacked on #284 and #283; merge those dependencies first. Existing legacy originals require the backfill's explicit trust assumption before they are indexed. ## Diagnostic results The strict isolated targeted run at `4431d20e93ee194ed0749d91934af0219fad7b4f` improved identifier Recall@5 from 10/16 to 16/16 and public LoCoMo all-evidence@5 from 58/136 to 62/136. All 16 no-answer controls returned results at a zero score floor; no cross-scope or current-state temporal leaks were observed. History controls passed 4/4, and all three API log audits were clean. The final product code differs from this measured revision only by a test fixture and this benchmark-log update. A client-side exhaustive chunk prototype scored 77/136 on the LoCoMo slice using a different retrieval/ranking path; it is not a matched server comparison. More evidence and caveats are in verygoodplugins/automem-evals#93. A fresh matched no-provider LoCoMo-mini scored 197/235 in each arm (69 skipped; no paired verdict changes), and the full run scored 1206/1542 baseline versus 1207/1542 candidate (444 skipped; one paired win/no losses). The full candidate revision was `8fb56211ba7d7e3d146ae067e575bcafa98eeec0`; the subsequent commit only records the result. Both full API and driver audits were clean, including zero replacement-query failures and timeouts. The matched corpora had 5,882 content/vector records and zero memory-to-memory relations; ingestion timestamps differed. These judge-off runs use local BGE and the native harness's labeled-evidence augmentation; they are not official judged scores. No production data or paid provider calls were used. The earlier full `b3beabc` candidate run was degraded by two graph lookup timeouts; do not treat it as clean. A separate 545-record paired latency smoke measured median HTTP wall time 9.81 ms baseline vs 13.17 ms candidate (40 pairs); this does not establish large-corpus production latency. ## Validation - Full non-benchmark local suite: 969 passed, 14 skipped. - Focused recall, competing-evidence, failure-path, formatting and lint checks passed. - Disposable FalkorDB integration covered 5,882 unindexed nodes, active and expired replacements, chains, query plan, and fail-closed behavior. - Exact replacement-query timing in an isolated 200-ID probe: median 87.04 ms before vs 5.62 ms after; this does not establish production latency or reproduce the previous two-second contention. **Behavior change:** current-only recall returns HTTP 503 when a replacement lookup fails instead of returning unverified results. History mode remains available. The existing vector-only fallback when the graph is entirely unavailable remains unchanged and cannot verify supersession relationships. Implementation harness: Codex desktop.
jack-arturo
changed the base branch from
test/original-text-index-fixtures
to
main
November 19, 2026 00:18
Brings in #94, #92 and #104 so this pull request can merge into main. The three generated dashboard files conflicted with the refresh in #94. They 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. registry.json merged without conflict. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
jack-arturo
added a commit
that referenced
this pull request
Nov 19, 2026
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 an isolated-stack comparison of original-text search and legacy backfill against the previous server and an explicitly experimental, exhaustive chunk-vector reference. Preserve reviewed aggregate results for pinned product candidates, including negative, tag-scope, temporal and index-mutation controls, and register the experiment in the dashboard.
Depends on #92: this PR targets its branch and should be reviewed and merged only after #92. The LoCoMo retrieval slice is not an official benchmark score; the chunk arm uses a different ranking path and is not a production implementation.
Offline diagnostics
4431d20: identifier Recall@5 10/16 → 16/16; labelled LoCoMo all-evidence@5 58/136 → 62/136. Both arms returned results for all 16 no-answer controls at zero score floor; scope and temporal controls showed no leaks, and history returned 4/4 targets. All API audits were clean.4431d20: 197/235 in both arms, 69 skipped, no paired changes; corpus fingerprints and logs matched. The final full candidate differs only by a test fixture.8fb5621: 1,206/1,542 baseline vs 1,207/1,542 candidate, 444 skipped per arm, one paired win/no losses; both API and driver audits were clean. The 5,882-record corpora matched in content and vectors but had different ingestion timestamps and zero memory-to-memory relations. The native scorer adds labelled evidence and can mask retrieval misses. This is not a judged leaderboard score or a supersession test.b3beabcrun remains degraded by two replacement-query timeouts; the clean rerun does not retroactively repair it.Validation
Breaking changes: none.
Implementation harness: Codex desktop.