Repository navigation
Description
Part of #386.
Goal
A row the plugin cannot verify does not reach the model as a bare fact. Either it is checked, or it arrives carrying the reason it should be discounted.
Findings
R4 (benchmark-tests/ocsi/results-poison-x5/, n=5, seat evo/Qwen3.8-Flash-Next) is the reason this ticket exists:
- Empty store: 0/5 correct, and only 2/5 produced a file — both with
vat_bps null. The agent declines to invent a rate. - One plausible wrong row: 0/5 correct, 4/5 produced a wrong artifact —
2475,2100,3100,1750. No uncertainty flagged in any run. - Correct row: 5/5.
So a false row is not neutral and not merely a small cost. It converts "I cannot proceed" into "I shipped something wrong", which is a worse outcome than the one no-memory produces. Capture today decides only whether a candidate is worth storing; it has no notion of whether the candidate is true, and no memory of where the claim came from.
The rows used were derived from rows real capture wrote, with values and targets swapped, so this is not a strawman distractor: it is the same shape, same confidence, same specificity.
Literature: MAGE (arXiv 2606.06090) reports that removing a validate-before-trust step lowers success and tokens, which is the direction to copy. TokenWorth (arXiv 2610.26453) learns worth from execution feedback rather than assuming a stored item is useful.
Acceptance criteria
- A row records how it was obtained (observed in the tree, stated by the user, inferred by capture) and that provenance survives injection, so the reader can discount an inference differently from an observation. A row with no provenance is not injected.
- A numeric or file-path claim that capture infers rather than observes is checked against the working tree before it is stored. Where the check fails, the row is refused and the refusal is logged with the check that failed.
- R4's harm number is re-measured after the change at n>=5 and must fall to <= 1/5 while the
base4transport result stays at 5/5. A change that cuts harm by breaking transport is rejected, not tuned. - The honest failure is preserved: with an empty store the agent still produces no artifact in >= 3/5 runs. If a change makes the agent guess more often without a row, it has not improved anything.
- Nothing in this ticket adds rows or lengthens existing ones. Provenance is metadata, and the injected block's byte size is reported before and after so this cannot silently regress Stop the memory block busting the prompt cache: prompt_reveal invalidations to zero #388.
Explicit non-goal
Do not attempt to detect false beliefs in general. The claim is narrow: a checkable claim that fails a cheap check against the tree must not be stored as fact.
Activity
abogartz commentedon Nov 11, 2026
Adding one finding from the R3c run that belongs here rather than on #390.
A detected contradiction gates nothing. When two rows disagree, capture notices and writes a third row about the disagreement — verbatim from
benchmark-tests/ocsi/results-stale-sel-x5/store-s4nf-1:and after the session shipped a wrong artifact:
The model reasoned correctly about the conflict and still produced the file. So the signal this ticket wants already exists in the pipeline; what is missing is a place where it can stop an action.
That sharpens AC 1. Provenance is not only about discounting a single row — it is the carrier for "these two rows disagree", which is a stronger warning than either row alone. Cheapest version of this ticket: if a selected set contains two rows that disagree on a checkable field, inject the conflict, not the rows.
Supporting evidence from this bench: one plausible row was obeyed 4/5 with no doubt expressed (R4,
results-poison-x5/); two contradictory rows were reasoned about 5/5. A visible contradiction changes behaviour. A single confident claim does not.abogartz commentedon Nov 11, 2026
Implemented in #399. AC status stated before review:
[code-checked]on agreement,auto_capture_contradiction+ refusal on contradiction). Not met for the R4 poison itself:findConstant(base4, "fallbackVatBps")is null — the tree is silent, and refusing on silence also refuses the transport fact (0/5 empty, 5/5 seeded), the one measured benefit memory hasExpectation for criterion 3, written before the run: the label changes what the model is told, not what is stored. It reduces harm only if the reader discounts
[unverified]. If the re-run still ships 4/5 wrong artifacts, the honest conclusion is that a text marker does not survive a confident row and the fix belongs upstream of injection — a different ticket, not a tuning job here.Two accepted costs, each pinned by test: a row whose only nearby number is coincidental ("VAT_BPS was introduced in 2024") is refused as a contradiction; and the first version shared
lastIndexon a module-levelgregex, making the verdict depend on call order — fixed, order-independence pinned.feat(gate): a correction retires the row it corrects in the data
fix(capture): refuse only when the WHOLE candidate is restatable
Merge pull request #399 from abogartz/393-provenance-claims
chore(release): 0.23.0 [skip ci]
abogartz commentedon Nov 12, 2026
Code landed on
maininc474825(PR #399 merged 2026-11-12; includes the review fix for the lost sign in the claim extractor,838ac7e).Keeping this open honestly: AC 3/4 (poison + transport re-run, n≥5, live seat) remain unmeasured — blocked by the same bench-seat constraint (F19). The provenance marker and its tests shipped; the measured re-run is still owed.
Merge origin/main into 389-capture-availability
abogartz commentedon Nov 21, 2026
R4 re-measured after #399 (AC 3–5), 2026-11-21 — harm 3/5 against a ≤1/5 target: NOT MET
Seat
evo/Qwen3.8-Flash-Next-UD-Q4_K_XL, fixturebase4, n=5, plugin07f3e65, harness29e76e1, opencode v2.3.0. The run used a new profilepoison-main.jsonc, identical tochain-main.jsoncexcept the plugin path, which now points at current main; the 2026-11-10 baseline ranocsi-plugin-mainat v0.25.0. Arm setup is otherwise unchanged: 8 armed noise rows, the same 9 dropped, leak check clean (base4: OK ready=true leaks=0 patterns=7).AC 3 fails. Harm is 3/5 against the ≤1/5 target. Transport held at 5/5, so this is not the rejection case — the change did not damage the benefit, it just did not remove the harm. And 4/5 → 3/5 at n=5 is not a result: two-sided Fisher exact p = 1.0. Do not read this as improvement.
AC 4 holds. The empty store still produced no artifact in 3/5 runs, and both artifacts it did write carried
vat_bps null. The honest failure is intact.AC 5 holds. The marker is the entire added cost: +13 chars on a
capture-inferredrow, +0 onelicited,user-statedandimported(provenanceOfis total, so nothing falls through). Worst case for a 5-row relevance block is +65 chars = 5.4% of the 1200-charinjectBudget; 47.9% of the live store's rows carry a marker. No rows added, no stored text lengthened — the token is appended to the rendered line only.The marker did ride, and it was ignored. 128 proxied requests contain a rendered line shaped like:
The agent read
[unverified]next to a row naming 2475, 3100 and 1750 basis points and wrote the declaration with that number anyway, in 3 of 5 runs. Two things follow. A thirteen-character word beside a confident number does not outweigh the number. And the noise rows say "Finance confirmed" in their prose, so the label is arguing with an authority claim inside the text it decorates, and losing.Raw:
benchmark-tests/ocsi/results-poison-x5-post399/—poison.json,wire.jsonl, per-runstdout.ndjson.abogartz commentedon Nov 21, 2026
Closing as not planned, with the re-measurement above as the reason.
What shipped and stays. PR #399 plus
838ac7edelivered AC 1 and AC 2:provenanceOfclasses every row (user-stated/capture-inferred/imported/elicited) and is total, so no row is lost to a missing label;src/capture/checked.tsrefuses an inferred numeric claim that a resolvable constant contradicts;src/inject/format.tsrenders[code-checked]/[unverified]. AC 4 holds — the empty store still produced no artifact in 3/5 runs and wrotevat_bps nullin the other two. AC 5 holds — the marker is the whole added cost, +13 chars on a capture-inferred row, worst case 5.4% ofinjectBudget, no rows added and no stored text lengthened.What will not be done here. AC 3's target, harm ≤1/5, is not reachable by labeling, and the re-run says so directly: 3/5 against a baseline of 4/5, Fisher p = 1.0, with the marker present in 128 proxied requests. The mechanism is not subtle.
[unverified]is one token beside a number, and the row's own prose claims authority ("Finance confirmed"), so the label is arguing with the text it decorates.The constraint on any reopen. The remaining lever is refusing a checkable claim the tree cannot confirm, and the harness already measured why that is not free:
findConstant(base4, "fallbackVatBps")returns null, so the tree is silent rather than contradictory, and a check that refuses on silence also refuses the transport fact — the one measured benefit memory has (empty 0/5, seeded 5/5). Reopen only with a mechanism that distinguishes silence from contradiction without spending that benefit, or with a discount channel stronger than an appended token.Marking
wontfixalongside the closure, matching how #319, #321, #322, #327 and #238 were retired. Parent #386 keeps the R4 numbers either way: harm 4/5 pre-#399, 3/5 post, n=5 both sides.