Repository navigation
Description
Part of #386.
Goal
When a remembered fact is corrected, the store ends up in a state where the current value
wins reliably — by construction, not by the correction happening to be phrased well.
Findings
R3 (results-stale-x5/, values 2150 → 1900, grading always against 1900 so a stale answer
is wrong rather than nearly right):
- Controls hold. Empty store fails every repeat with
no out/declaration.json. A store
containing only the stale row fails every repeat withvat_bps 2150, wanted 1900— so
the agent cannot guess the new value and the grader distinguishes the two. - End to end (session A learns 2150, session B is told finance revised it to 1900, session
C does the task on that store): passes 3/3 so far. - Both rows present with no session history at all: passes 3/3.
- What actually happens in the store: it keeps both values. The correction row reads
"Finance confirmed the fallback VAT rate for this site: 1900 basis points (19.0%),
effective 2026-11-10 — this supersedes the earlier 2150 bps figure." The old row is
untouched and still recallable.
So the mechanism that works today is a sentence in prose written by a language model,
plus retrieval that happens to prefer it. That is not a guarantee. MERIT (arXiv
2609.05441) found exactly this class of thing is where stores diverge: on updated facts
embedding retrieval swung 0.30–0.95 across models with a max seed gap of 0.45, while
update-on-write stores held 0.70–1.00, and a hybrid was worse than the fact store alone.
Swapping the memory implementation moved task success by up to 60 points. Our result is one
seat and one phrasing.
Acceptance criteria
- A correction produces a store state in which the superseded row is not a candidate
for injection into an unrelated turn — superseded in the data, not only in the wording.
If the design keeps both rows visible, then a test must show the stale row cannot be
injected without the superseding row alongside it. - A store with both rows, seeded by hand with no prose supersession marker ("this site's
fallback VAT rate is 2150 basis points" and "this site's fallback VAT rate is 1900 basis
points"), resolves to 1900 in >= 4/5 runs. The current pass may depend on the word
"supersedes"; this criterion is the one that says it does not. - The stale value never appears in an artifact produced from a store that holds the
correction, across the R3 fixture at n>=5. - R3 is re-run on a second seat before this is described as a property of the plugin rather
than of one model. If the second seat is unavailable, the ticket says so in its
resolution rather than going quiet. - No regression in the transport result:
base4still goes 0/5 → 5/5.
Why criterion 2 is the real one
Everything else in R3 could be explained by the correction sentence doing the work. A
language model wrote a good sentence this time. The plugin should not depend on that.
Activity
abogartz commentedon Nov 11, 2026
R3 ran. It passes, and the pass does not show what this ticket claims.
benchmark-tests/ocsi/results-stale-x5/, values 2150 -> 1900, graded always against 1900 so a stale answer is wrong rather than nearly right. n=5, seatevo/Qwen3.8-Flash-Next.no out/declaration.jsonvat_bps 2150, wanted 1900All four pre-registered expectations met. Controls hold, so the fixture separates the two values and the agent cannot guess 1900.
Why this is not evidence of supersession. Across the five repeats the store kept 6 rows stating 2150 and not one carries a word marking it dead — no "superseded", no "outdated", no "no longer". They remain fully recallable. The correction rows do carry a marker, because a language model wrote a clear sentence:
So what works today is (1) a good sentence in the new row, (2) retrieval preferring it, (3) the model declining to act on the stale row it was also shown. Nothing in the data marks the old value dead, which is the thing criterion 1 asks for.
S3 as built does not test criterion 2. Its fresh row contains the word "superseded", so it can pass on prose alone. Added arm R3b for that: two rows phrased identically except the number, differing only in insertion order — old-first (a correction appended last, the honest case) and new-first (what a hand-edited or imported store produces). Pre-registered in the findings file before running:
Criterion 4 (second seat) still stands: MERIT, arXiv 2609.05441, found updated-fact retrieval swinging 0.30-0.95 across models with a max seed gap of 0.45 while update-on-write stores held 0.70-1.00, and swapping the memory implementation moved task success by up to 60 points. 5/5 on one seat and one phrasing is not a property of the plugin.
abogartz commentedon Nov 11, 2026
Correction to my previous comment: S3 is void, and so was the S4 run I described.
seedRowin the bench wrote seeded rows withwriteFileSyncinto a file named by date. Seeding two rows on the same day meant the second replaced the first.Caught by accident:
memory_recallechoedFound 1 (1 total)in a transcript I opened to name the mechanism. Nothing in the harness could have told me, and the result was cleaner than the truth, which is why it needed catching before this ticket inherited it.What still stands from R3, all from arms that seed at most one row or use a plugin-written store:
no out/declaration.json.vat_bps 2150, wanted 1900.Fixes applied to the bench.
appendFileSync, plusexpectRows(storeDir, n, arm)which asserts a seeded store holds the number of rows the arm's name claims and aborts before grading. The assertion is the fix; the write mode was the instance. A wrong setup must produce no number rather than a plausible one.Criterion 2 is being re-run properly as
results-stale-s4-x5with two rows that genuinely coexist. Until that lands, this ticket's premise — that supersession depends on prose rather than on data — is unproven in either direction. The 6-rows-stating-a-dead-value observation is still direct evidence for criterion 1.abogartz commentedon Nov 11, 2026
Criterion 2 measured properly.
benchmark-tests/ocsi/results-stale-sel-x5/, n=5, seatevo/Qwen3.8-Flash-Next, graded against 1900.Two rows that genuinely coexist this time —
expectRows()passes andmemory_recallanswersFound 2 (2 total).3/10 across both unmarked arms, 5/5 with the wording present. Criterion 2 as written (">= 4/5") is not met by either unmarked arm.
Resolution stated at the resolution available. 5/5 vs 3/5 is not separable at n=5 (Fisher ~0.7); neither is 3/5 vs 0/5 (~0.24). The defensible claim is "unmarked rows resolve poorly", not "the marker is worth 2/5". The deterministic-looking 5/5-vs-0/5 split in my previous comment was the one-row artifact — the honest number is 3/5, so this arm has variance and the clean rule was mine rather than the system's.
This changes what the ticket should ask for. Nothing in the store marks either row dead, but capture already detects the contradiction and writes a third row about it:
and after the session ships the wrong file:
So detection exists, resolution does not, and the signal is computed and then used for nothing. Criterion 1 should be restated to match: rather than requiring supersession in the data, require that a detected conflict gates the artifact — a session that has flagged two values for one field must not silently file one of them.
Supporting contrast with #389's R4 arm: one plausible row was obeyed 4/5 with no doubt expressed; two contradictory rows were reasoned about 5/5. The difference is a visible contradiction, not caution. That makes surfacing the lever.
Still open, and it may reduce this ticket. S4's rows share a timestamp because the harness seeds them in one loop — the capture model noticed ("both stored at the same instant … so recency cannot pick one").
results-stale-s5-x5re-runs the same two rows stamped 30 days apart, which is what a real correction looks like. Pre-registered: if old-first >= 4/5 and new-first <= 1/5, recency is used when the data carries it, this drops to severity:medium, and the AC narrows to same-instant ties only.abogartz commentedon Nov 11, 2026
Third correction on this ticket, and this one goes against it: the premise is largely refuted.
benchmark-tests/ocsi/results-stale-s5-x5/. Same two rows as before, phrased identically except the number, but stamped 30 days apart — which is what a real correction looks like, and which S4 lacked because the harness seeds in a tight loop.ts10/10, both orders. The newer row wins whether it was written first or last. Write order does not matter once the data carries a usable timestamp.
The complete R3 picture:
So the plugin resolves a changed fact by timestamp, order-independently. The ticket's premise — that supersession depends on wording rather than data — does not hold for the flow it was written for. Criterion 2 ("no prose marker, >= 4/5") is met at 10/10 once the rows have distinct timestamps.
What survives, and it is much smaller:
Recommendation: reduce this to severity:low, retitle to "Tie-break rows with identical timestamps and surface detected conflicts before an artifact is written", and drop criteria 1–3. Criterion 4 (second seat) is the only part still worth doing, and only if the narrow claim is kept at all.
My error, recorded because it is the useful part. Both pre-registrations for these arms stated the recency branch as "old-first high and new-first low", which is self-contradictory — if recency decides, both orders pass. Same mistake twice; the run was only interpretable after the fact. New bench rule: predict the artifact value ("the declaration contains 1900"), never the arm label.
feat(gate): a correction retires the row it corrects in the data
abogartz commentedon Nov 11, 2026
Implemented in #400 (addresses; does not close — AC 2's live half is unmeasured).
Supersession moved from wording to data: a gate write whose symbol-anchored numeric claim disagrees with a live same-scope same-type row retires it with
superseded_by → new ts,reason=numeric_conflict, audited under the drift/canonical contract. Guard is threefold (anchor + value + shape floor 0.3) because a retirement hides a row from every future session — the misfire class #393 accepted for a refusal is not accepted for a retirement. Inferred writes cannot retire user-guided rows; open and quarantined rows retire nothing; a blocked write retires nothing.AC 1 met by construction and pinned by test (stale row fails
isInjectable; block shows 1900, not 2150; retired row stays on disk recoverable). AC 2's live half (≥4/5 real sessions on a hand-seeded store) needs a quiet seat — F19 applies; recorded unmeasured on the PR, same as #389 AC 3 and #393 AC 3/4.fix(gate): different environments are two facts, never a correction
fix(gate): same-context is established by the words, not looked up
Merge pull request #400 from abogartz/390-value-conflict
chore(release): 0.23.0 [skip ci]
abogartz commentedon Nov 12, 2026
Code landed on
mainin1c600da(PR #400 merged 2026-11-12, after five review rounds; final rule: positional excision of the asserted value + citation excuse with raw-token adjacency, 26 focused tests).Keeping this open honestly: AC 2 (live base4 correction ×5 on a real seat) remains unmeasured — blocked by the bench-seat constraint (F19 in
benchmark-tests/ocsi/FINDINGS-2026-11-10-memory-value.md). The shipped retirement is structural and unit-pinned; the live claim is not yet evidenced.ocsi-architect commentedon Nov 25, 2026
Closing: supersede-in-the-data shipped.
src/gate/value-conflict.tsretires the older row at write time viasuperseded_bywhen a correction numerically disagrees at the same anchor, and superseded rows failisInjectable— the stale value cannot surface without its successor. Verified against maina573a3b; the module header records the R3c measurements.