Skip to content

Corrections must supersede in the data, not in the wording #390

Done

Description

@abogartz

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 with vat_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

  1. 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.
  2. 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.
  3. The stale value never appears in an artifact produced from a store that holds the
    correction, across the R3 fixture at n>=5.
  4. 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.
  5. No regression in the transport result: base4 still 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

  1. added
    capture
    retrieval
    severity:high
    on Nov 11, 2026
  2. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    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, seat evo/Qwen3.8-Flash-Next.

    arm store result
    S0 empty 0/5, every failure no out/declaration.json
    S1 A learns 2150, B told finance revised to 1900, C does the task 5/5
    S2 only the stale row 0/5, every failure vat_bps 2150, wanted 1900
    S3 both rows, fresh row says "the previous 2150 is superseded" 5/5

    All 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:

    "Finance corrected this site's fallback VAT rate for orders with no tax class (kiosk orders), effective 2026-11-10: it is 1900 basis points (19%), supe…"

    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:

    • new-first >= 4/5 and old-first <= 2/5 -> the store resolves by insertion order, so a correction that is not physically last loses. That makes this severity:critical, because the user cannot see it happening.
    • both >= 4/5 -> something other than recency breaks the tie and must be named before any supersession claim.
    • both <= 2/5 -> two near-duplicate rows are a coin flip that lands wrong, and the fix belongs in Spend capture on unavailable facts, not on restatable ones #389 (never leave two rows about one fact) rather than in ordering here.

    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.

  3. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    Correction to my previous comment: S3 is void, and so was the S4 run I described.

    seedRow in the bench wrote seeded rows with writeFileSync into a file named by date. Seeding two rows on the same day meant the second replaced the first.

    • S3 never held two rows. Its "5/5, both rows present, selection works" is withdrawn — it was a one-row store, i.e. the transport control under another name.
    • The S4 ordering run I described in the previous comment reported 5/5 old-first vs 0/5 new-first. That split measured which number the harness wrote last. No plugin behaviour is involved.

    Caught by accident: memory_recall echoed Found 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:

    • S0 empty store: 0/5, every failure no out/declaration.json.
    • S1 end to end (A learns 2150, B is told 1900, C does the task): 5/5.
    • S2 stale row only: 0/5, every failure vat_bps 2150, wanted 1900.
    • The store keeps the dead value: across five repeats, 6 rows state 2150 and none carries a word marking it dead.

    Fixes applied to the bench. appendFileSync, plus expectRows(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-x5 with 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.

  4. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    Criterion 2 measured properly. benchmark-tests/ocsi/results-stale-sel-x5/, n=5, seat evo/Qwen3.8-Flash-Next, graded against 1900.

    Two rows that genuinely coexist this time — expectRows() passes and memory_recall answers Found 2 (2 total).

    arm the two rows result
    S3 stale, then fresh saying "the previous 2150 is superseded" 5/5
    S4 old-first identical phrasing except the number, stale written first 3/5
    S4 new-first same two rows, fresh written first 0/5

    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:

    "Two active rows contradict on this site's fallback VAT rate for kiosk orders with no tax class: 1900 bps and 2150 bps, both stored at the same instant …, neither superseded, so recency cannot pick one."

    and after the session ships the wrong file:

    "out/declaration.json for kiosk-77 was filed with fallback vat_bps 2150; the unresolved 1900/2150 contradiction means if finance confirms 1900, refile as vat 91 and total 571."

    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-x5 re-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.

  5. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    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.

    arm which row is newer by ts written result
    old-first fresh (stale is 30 days old) stale first 5/5
    new-first fresh fresh first 5/5

    10/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:

    condition result
    real chain: A learns 2150, B told 1900, C does the task 5/5
    two rows, prose marker, same instant 5/5
    two rows, no marker, same instant 3/10
    two rows, no marker, 30 days apart 10/10

    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:

    1. Same-instant ties are unresolved (3/10). Real capture writes rows seconds apart, so this is a harness artifact rather than a production state. Worth a tie-break rule on cost-benefit, not severity:high.
    2. A detected contradiction gates nothing. Capture already writes "Two active rows contradict … so recency cannot pick one", and the session files one side anyway. That is the finding worth keeping, and it belongs in An unverifiable claim must not be stored as a bare fact #393 more than here.

    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.

  6. added
    severity:low
    and removed
    severity:high
    on Nov 11, 2026
  7. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    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.

  8. abogartz commented on Nov 12, 2026

    @abogartz
    OwnerAuthor

    Code landed on main in 1c600da (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.

  9. added
    enhancement
    tier:full
    on Nov 20, 2026
  10. ocsi-architect commented on Nov 25, 2026

    @ocsi-architect

    Closing: supersede-in-the-data shipped. src/gate/value-conflict.ts retires the older row at write time via superseded_by when a correction numerically disagrees at the same anchor, and superseded rows fail isInjectable — the stale value cannot surface without its successor. Verified against main a573a3b; the module header records the R3c measurements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    captureenhancementretrievalseverity:lowtier:full

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions