Skip to content

test(recall): compare original text search and chunks - #93

Merged
jack-arturo merged 13 commits into
mainfrom
test/original-text-index-eval
Nov 19, 2026
Merged

jack-arturo merged 13 commits into
mainfrom
test/original-text-index-eval

Conversation

@jack-arturo

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

Copy link
Copy Markdown
Member

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

  • Strict targeted comparison at 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.
  • Strict no-judge mini at 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.
  • Strict no-judge full at 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.
  • The earlier full b3beabc run remains degraded by two replacement-query timeouts; the clean rerun does not retroactively repair it.
  • A separate 545-memory synthetic paired latency smoke had 40 pairs, zero request errors, p50 wall time 9.81→13.17 ms and median paired change +3.39 ms (37/40 slower). Query vectors were precomputed. This is not a large-corpus or agent end-to-end latency claim.

Validation

  • Eight fixture/scorer tests passed; dashboard index and provenance wrapper tests passed (14 each); compose configuration validated.
  • Strict API/driver audits covered the resumed targeted, mini and full runs. The targeted test includes backfill idempotence, PATCH and DELETE; relation expansion was disabled.
  • Bounded read-only local Codex review found no actionable issues. Dashboard refresh retained earlier artifact and score history.
  • No paid calls, private traces, raw dialogue or per-question outputs are included.

Breaking changes: none.

Implementation harness: Codex desktop.

@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:21:51.327561Z 203d836 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 — with ChatGPT Codex Connector

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026 — with ChatGPT Codex Connector
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026 — with ChatGPT Codex Connector
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026 — with ChatGPT Codex Connector
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026 — with ChatGPT Codex Connector
@jack-arturo jack-arturo removed the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026
@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Nov 11, 2026 — with ChatGPT Codex Connector
@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 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
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
jack-arturo merged commit 7745e0e into main Nov 19, 2026
1 check passed
@jack-arturo
jack-arturo deleted the test/original-text-index-eval branch November 19, 2026 00:20
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>
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