Skip to content

feat(recall): search indexed original memory text - #285

Merged
jack-arturo merged 15 commits into
developfrom
feat/original-text-search
Nov 13, 2026
Merged

jack-arturo merged 15 commits into
developfrom
feat/original-text-search

Conversation

@jack-arturo

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

Copy link
Copy Markdown
Member

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 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-13T17:39:04.759621Z f811ec9 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.

@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: e3a3e3df2e

ℹ️ 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".

Comment thread automem/api/recall.py Resolved
@jack-arturo jack-arturo added babysit:active Babysit agent is actively working this PR babysit:waiting-codex 👀 Codex reviewing current head and removed babysit:waiting-codex 👀 Codex reviewing current head babysit:active Babysit agent is actively working this PR labels Nov 11, 2026

@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: b83d349623

ℹ️ 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".

Comment thread automem/api/recall.py Resolved
@jack-arturo jack-arturo added babysit:active Babysit agent is actively working this PR and removed babysit:waiting-codex 👀 Codex reviewing current head labels Nov 11, 2026

@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: eaa72684f0

ℹ️ 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".

Comment thread automem/api/recall.py Resolved

@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: 6ea44702c1

ℹ️ 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".

@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: e45f2ed0b8

ℹ️ 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".

Comment thread automem/api/recall.py Resolved

@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: 45a2f1d53c

ℹ️ 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".

Comment thread automem/api/recall.py Resolved

Copy link
Copy Markdown
Member Author

Babysit stopped — nonconvergent. The sixth hosted review window found an unresolved state-replacement evidence competition: a checked original-text replacement can suppress a stronger vector-derived replacement. The PR's six-window review ceiling is exhausted, so this thread remains open for a human decision on another remediation budget. The no-provider full LoCoMo comparison continues independently; its results will be reported with the tested commit and scoring limitations.

@jack-arturo jack-arturo added babysit:blocked Babysit stopped; unresolved blocker needs human and removed babysit:active Babysit agent is actively working this PR labels Nov 11, 2026

Copy link
Copy Markdown
Member Author

The no-provider full LoCoMo diagnostic against b3beabc finished at 1,207/1,542 versus baseline 1a7ba1a at 1,206/1,542, with 444 judge-dependent questions skipped in each arm. The candidate run is degraded, not a clean benchmark: two current-state replacement queries timed out in FalkorDB and were handled as empty replacement maps while /recall returned HTTP 200. One request was tag-only at limit 100; the other was vector-backed at limit 75 with 200 vector matches. The baseline log audit was clean, and the synthetic full corpus contained zero memory-to-memory relations, but the affected question IDs cannot be identified reliably from the redacted request logs. A fresh matched rerun is required before treating the comparison as clean. The diagnostic used local BGE, no judge, and the native harness's labeled-evidence augmentation. Raw receipts and logs are retained locally; no production data or paid providers were used.

Copy link
Copy Markdown
Member Author

Babysit budget reset — fresh remediation budget explicitly granted by the operator.

@jack-arturo jack-arturo added babysit:active Babysit agent is actively working this PR babysit:ready 👍 Codex all clear + gates pass; human may merge and removed babysit:blocked Babysit stopped; unresolved blocker needs human babysit:active Babysit agent is actively working this PR labels Nov 11, 2026
@jack-arturo
jack-arturo added this pull request to stack #290 November 13, 2026 01:57
@jack-arturo
jack-arturo force-pushed the feat/original-text-search branch from 4648156 to e4d2441 Compare November 13, 2026 02:34
Base automatically changed from feat/original-text-backfill to develop November 13, 2026 17:36
@jack-arturo
jack-arturo force-pushed the feat/original-text-search branch from e4d2441 to f811ec9 Compare November 13, 2026 17:36
@jack-arturo
jack-arturo merged commit 2a52c48 into develop Nov 13, 2026
7 checks passed
@jack-arturo
jack-arturo deleted the feat/original-text-search branch November 13, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

babysit:ready 👍 Codex all clear + gates pass; human may merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant