Repository navigation
Done
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestretrievalRetrieval ranking, use telemetry, negative evals, consolidationseverity:highReal defect on a boundary or documented claim; MVP-relevant, bounded blast radiustier:fullNew predicate or policy: full loop with blind architecture review
Description
Why
The benchmark established the failure fingerprint twice (2026-11-07, results-chain-hint-r3): a user tells the agent "the correct sales tax rate is 8.25%", pass 1 passes, the row is captured — and pass 2, a fresh session on the same repo, fails the same task with the guidance nowhere in its context.
Root causes, both confirmed against the wire bytes:
- Lexical ranking cannot surface guidance. The shipped matcher ranks by exact word overlap with Robertson-IF. A task prompt about "the injected bug" / "hidden suite" shares ZERO vocabulary with a row stating "the sales tax rate is 8.25% (0.0825)". No amount of IDF tuning bridges "injected bug" → "tax rate".
- The epoch froze at the first request. A block scored against the first prompt rode the whole session: it carried the first topic's rows forever and never picked up rows a later prompt genuinely matched.
The fix (branch retrieval-fix-20261107, commit 6f03e2d, pushed; built on capture-input-shape)
- Hint channel. The capture model labels user-stated facts
guided:true; promoted rows carry the taguser-guided(single constant insrc/core/tags.ts). Injection rides them newest-first, cap 3, budget-bounded, ahead of the lexical picks. Recall and pull stay query-driven. - Prompt-reveal rescore.
refreshEpochre-scores whenlatestPromptchanges, not only when the store changes. The epoch MOVES only when the rendered bytes move, so the provider prompt cache survives a prompt change that keeps the same rows. New reasonprompt_reveal; invalidations now count any byte-moving recompute. - Capture dedup. The capture prompt lists already-stored rows (15 rows / 1400 chars) so the model's 3-row budget goes to new facts instead of gate-collapsed restatements.
Measured (real opencode serve, real plugin, recording proxy, local quantized seat)
- t3 ×3 + t7 ×1 = 30/30 links; L6h (needle on an injected memory line) and L7 (warm pass-2 passes without the hint) pass 3/3 — first time ever; cold controls fail every time.
- Warm pass 2.2–3.4× cheaper and 2.1–2.6× faster than the cold control.
- The local quantized capture model followed the new
guidedcontract correctly on both mutations; captured rows carriedtags=auto-capture,user-guided; zero framing rows.
Scope notes
- Product boundary (user directive 2026-10-20): no embeddings, no models in the retrieval path. This epic stays keyword-first: the hint channel is provenance-based, not semantic.
- Memory-poisoning research (60–89% retrieval rates for injected memories) is the reason the tag must be reserved to the capture path — tracked as a ticket here.
Part of the capture-shape epic (must land after it).
Tickets
- Hint channel: user-stated facts ride injection regardless of vocabulary overlap #339 Hint channel (capture field + tag + always-ride injection)
- Epoch re-scores on new prompts (prompt_reveal); the freeze hid later-topic rows #340 Prompt-reveal rescore (epoch contract change)
- Capture prompt lists already-stored rows (dedup context) #341 Capture dedup list (review item: redact the known-rows arm)
- Reserve the user-guided tag for the capture path (always-ride priority is a poisoning amplifier) #342 Reserve the user-guided tag to the capture path
- Split retrieval-fix-20261107 into three stackable PRs after #333 lands #343 Split the branch into stackable PRs after EPIC: Capture input shape — auto-capture fires on live hosts and stores facts, not briefs #333
- Docs: new injection contract for README and status surfaces #344 Docs: new injection contract
Metadata
Metadata
Assignees
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestretrievalRetrieval ranking, use telemetry, negative evals, consolidationseverity:highReal defect on a boundary or documented claim; MVP-relevant, bounded blast radiustier:fullNew predicate or policy: full loop with blind architecture review
Activity
abogartz commentedon Nov 8, 2026
Status 2026-11-08: 4 of 6 tickets closed — #339, #340, #341 landed via #360/#361/#362 with bench evidence, #343 done (the split itself). Remaining: #342 (reserve the user-guided tag — the exposure flagged on #349 while the contradiction surface is default-ON) and #344 (README/status docs). Epic stays open until both land.
chore(release): 0.22.0 [skip ci]
ocsi-architect commentedon Nov 25, 2026
Closing: all three legs verified on main
a573a3b. User-guided rows ride the hint channel (USER_GUIDED_TAG, src/core/tags.ts:34;guidedCapin src/recall/relevant.ts:67-74); prompt-reveal rescoring is a live epoch reason; dedup surfaces AMBIGUOUS families (#450).