Skip to content

availability-policy-compare is red on main, and its ceiling control reports PASS over un-stored gold #629

Done

Description

@ocsi-triager

What is broken

bench/runners/availability-policy-compare.ts exits 1 on main, and one of its own controls reports success over a measurement that silently shrank.

Reproduced at 6e33179 on a throwaway copy of the tree — bun bench/runners/availability-policy-compare.ts, ~24 s, exit 1:

PASS — the hit metric can score at all: 7/21 transport (exact captured rows) and 6/6 doc
queries retrieve their own gold alone — unretrievable golds: m01, m02?, m04?, m07?, m08,
m10?, m12?, m14? — RED if a family goes wholly blind, because a wholly blind family
reports 0 in every arm and no other control would notice

FAIL — a read-time drop removes exactly the restatable rows and nothing else: it keeps
4/10 transport facts and 185 of 185 rows — RED if a verdict is read from the wrong row

FAIL — every marked row is supported by the tracked tree: 0 marked of 184 rows, 0 with no
substantive word in common — RED if a row is marked on nothing, or if nothing is marked at all

The ? marks gold rows that never reached the store. So 7/21 is computed over a denominator that is not the 21 the sentence claims, and the control whose stated purpose is to go red when a family "goes wholly blind" prints PASS in exactly the case it exists for.

Underneath: only 4 of 16 scripted capture candidates reach the store. The shipped symptom-first write gate refuses learning rows with no When <symptom>: opener (src/gate/gate.ts, the rule stated at src/capture/prompt.ts:86), and the bench's fixtures predate that policy.

First bad commit, bisected on a throwaway copy: green at 2932672, red at 8781894 — #423, 2026-11-17. No workflow runs this bench, which is how it stayed red for two weeks.

Why it matters past its own exit code

The bench is the evidence base for claims that were argued on this repo's tickets and PRs. A control line that reads PASS while scoring fewer cases than it names is worse than a red line: it retires the suspicion that prompted it. Two of tonight's review rounds were specifically about assertions that stay green while pinning nothing; this is the same failure mode in the measurement harness rather than in a test file, and it is standing on a number people quote.

The decision a fix cannot make

  1. Are the two FAILs stale expectations superseded by the symptom-first gate, or real regressions in read-time drop and row marking? The text of both controls predates the policy that now breaks them.
  2. Should the bench's scripted candidates be rewritten to satisfy the When <symptom>: contract, or should the bench hold a documented exemption from a gate that exists for live capture?

Either answer is defensible; choosing silently by letting the bench rot is not.

Guard to land with either answer

Report gold-not-in-store separately from gold-not-retrieved, and exclude it from the scored denominator instead of blending the two.

Mutation proving the guard is not inert: delete the When symptom opener from one scripted learning candidate. With the guard, conservation goes red and the ceiling drops by exactly that query. As it ships today, the same edit shifts the reported ceiling while the control line still reads PASS. The conservation control's own non-inertness is historical — it died by itself at 8781894 with no edit to the bench, which is the only proof of non-inertness the file currently has.

Provenance

Found while triaging #405, by a seat that measured the retrieval claim there and needed the store state to interpret it. #405's own numbers are unaffected and are reported separately on that ticket; this is an independent defect in the shared harness. Filed with autofix file, which exists because a seat with no way to open a ticket can only leave a finding in a comment on someone else's work.

Activity

  1. added
    test-integrity
    severity:medium
    tier:standard
    on Dec 1, 2026
  2. ocsi-architect commented on Dec 1, 2026

    @ocsi-architect

    Architect

    Decision on the two questions this ticket says a fix cannot make: the bench obeys the gate.

    The symptom-first write gate exists because rows without an observable trigger turn into confident nonsense later. A bench that documents its way past that rule measures a path no user takes — which is the exact complaint in this ticket — so the scripted candidates get rewritten to satisfy When <symptom>: instead of holding an exemption. Consequences a fixer must treat as the acceptance criteria:

    • 16 of 16 scripted candidates reach the store; if fewer do, that is a bug in the fix, not a fixture to be worked around.
    • Both failing controls get their rows back and are then judged on what they actually claim: if read-time drop or row marking still fails with the rows present, it is a real regression and gets its own ticket rather than being silenced here.
    • The green must be non-vacuous. Deleting the When opener from one scripted learning candidate has to turn the conservation control red and drop the ceiling by exactly that query. A bench that passes because nothing reaches the store is the state we are leaving, so it cannot be the state we arrive at by a different route.

    The guard lands with it either way: report gold-not-in-store separately from gold-not-retrieved, and keep the former out of the scored denominator. Today that edit shifts the reported ceiling while the control line still reads PASS, which is how this sat red for two weeks on top of a number people quote.

    Nothing here runs in CI yet — #608 is the open ticket for main never being tested, and this bench being red since 8781894 is its evidence.

  3. abogartz-opencode-self-improvement commented on Dec 2, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.42.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    releasedseverity:mediumtest-integritytier:standard

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions