Repository navigation
Done
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestseverity:highReal defect on a boundary or documented claim; MVP-relevant, bounded blast radiustier:fullNew predicate or policy: full loop with blind architecture review
Description
Part of #386.
Goal
Capture spends its budget on facts the next session cannot obtain any other way, and
declines to store things the next session can read, derive or work out.
Findings
- Reuse does not pay.
base3(results-reuse-n6/): six pairs, all arms 6/6 pass, median
L2/L0 0.98×, higher in 2 of 6. A memory about an unrelated task: 0.88×. Nothing
measurable in either direction at 20% resolution. - Transport does pay.
base4(results-transport-x5/): empty store 0/5, seeded store
5/5. The difference is that the fact was unavailable any other way. - So the discriminator is not "is this interesting" or "is this durable". It is "can the
next session get this without me". Capture currently has no notion of that question. - Capture cost is roughly a third of a session's own generation, and it writes two or three
rows per session. At that price a row that changes nothing is not neutral. - At current store sizes selection quality is untestable: with 2–4 stored rows, TF-IDF +
k-NN, newest-wins, oldest-wins and full history all surface the fact
(selector-baselines.ts). The binding constraint is whether capture keeps anything, not
how well it is later ranked. - Literature supports gating rather than accumulating: TokenWorth (arXiv 2610.26453) states
plainly that several lifelong-memory methods give "limited benefits over simple retrieval
or even no-memory agents", then learns a query-dependent worth from execution
feedback. MAGE (arXiv 2606.06090) shows a validation step that lowers success and
tokens when removed.
Acceptance criteria
- A capture candidate can be answered with one bit by a code path, not a prompt: is this
available in the working tree? A candidate whose content appears verbatim or near-
verbatim in a tracked file is refused, and the refusal is logged with the file. - A candidate that is derivable by running the project's own gate (a command, a test
result, a build output) is refused for the same reason, and the log says which gate. - The
base4transport result is preserved: after this change capture still keeps the
unavailable fact 5/5. A precision change that breaks transport is rejected, not tuned. - The
base3run is re-run at n>=6 and capture's token cost per session is reported
before and after. The change ships only if cost falls while criterion 3 holds. - A noise bank exists: rows that are plausible, well-formed and about the wrong thing, at
= 10 entries, scored as false positives. Scored on use at point of use, not task
outcome — 23.2% of beneficial-use episodes still fail and 31.3% of harmful-use episodes
still succeed (arXiv 2611.01718), so outcome scoring cannot see either class. - Refusals never delete a row the store has always kept. This is the same monotonicity rule
S1 shipped under: a provenance fix does not buy a recall loss.
Explicit non-goal
Do not add rows. This ticket can only make capture write fewer things or nothing.
Metadata
Metadata
Assignees
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestseverity: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 11, 2026
R4 ran. Precision is now a measured requirement, not a preference.
benchmark-tests/ocsi/results-poison-x5/, base4, n=5, seatevo/Qwen3.8-Flash-Next.vat_bps null— no number invented2475,2100,3100,17502150harm = produced AND wrong = 4/5. The empty store fails honestly: three of five runs produce no file, the other two write the file with
vat_bps nullrather than guessing a rate. One injected sentence converts that into a confidently wrong customs declaration, and the model flagged no uncertainty in any of the four.Pre-registered before the run: N1 produces >= 3/5 (got 4/5), N1 correct <= 1/5 (got 0/5), and the branch decided in advance was "harm >= 3/5 means precision is a first-class requirement and #389 gates on it". It does.
This does not contradict #385's 0.88x for noise. That measured tokens. Cost cannot distinguish an honest failure from a shipped error, because both are one session. The damage is that the session stops saying "I cannot proceed".
Refining this ticket's target. Everything above is about a row that is false. This ticket as written gates on rows that are restatable — available in the tree or derivable from a gate. Both are needed and they are different checks:
AC 5's noise bank exists as
benchmark-tests/ocsi/noise-bank.json, 17 rows derived from rows real capture wrote with targets and values swapped. The harness arms a row only if its payload is absent from the pristine tree; the first pass dropped 9 of 12 rows because probes like825,1000,config.tsanddeclaration.jsonalready appear in the repo and would have reported "obeyed" on every run whatever the model did. That check is the part worth copying.Where my probe is weak: "payload written into
src/" fired 1/5 while the artifact carried the poisoned value 4/5 — the agent writesout/declaration.jsondirectly. The harm number is artifact-based and does not depend on that probe.feat(gate): a correction retires the row it corrects in the data
chore(release): 0.23.0 [skip ci]
Merge origin/main into 389-capture-availability
test: run the availability case bank where CI can see it (#402)
chore(release): 0.25.0 [skip ci]
ocsi-architect commentedon Nov 25, 2026
Closing: capture now spends on unavailable facts. The availability gate (
availabilityIndex, src/capture/available.ts:977, consumed at src/capture/runtime.ts:829) refuses candidates the tracked tree or declared gates already restate, with a file-cited refusal line, and has held through the #499–#531 rounds. Verified against maina573a3b.