Skip to content

investigation(qa): a held-out fixture the first verdict actually misses, scored by a repeatable rule — reopens the #1344 question #1408

Open

Description

@admarble

Problem

#1344 stopped at its headroom pilot. On the held-out notes import fixture (docs/investigations/qa-heldout-fixture/), the first /qa verdict named all 5 planted defects in all 3 runs: grader recall 1.00, and the owner rated none of the 15 absent. These defects are visible in the diff, so the first verdict already finds them all and a second look has nothing left to catch.

The only remaining difference was how clearly each finding was stated. A human clear-or-vague rating measured that poorly: the owner's two passes agreed on 8 of 15 cells, and near-identical passages got different ratings. See docs/investigations/qa-second-look-measured.md.

So the #1344 question, whether --ready-gate catches what the first verdict misses, is still open. It needs two things #1344 didn't have:

  1. A fixture whose defects the first verdict actually misses. The pilot shows that misses don't come from a defect's class alone. A missing-implementation or vacuous-test defect is caught when the code makes it plain. A candidate source: defects that need a run or a cross-file trace to see, not a reading of the diff (e.g. behaviour that only fails on a second invocation, or an AC met in a unit test but broken through the CLI's real config path).
  2. A scoring rule that gives the same answer twice. Mentioned-or-absent is stable, but here it is saturated. If clarity matters, it needs a check a script can run (e.g. the finding names the file, the failing input and the observed wrong output), not a judgment.

Acceptance criteria

  • AC-1: Before any arm runs, a pilot of at least 3 first-verdict runs shows grader recall below 0.90 on a new held-out fixture. If none can be built after 2 fixture attempts, that is recorded as the result. Evidence: the pilot table in the investigation doc.
  • AC-2: The primary metric is a scoring rule that, applied twice to the same pilot reviews, agrees with itself on at least 90% of (run, defect) cells. A rule a script can apply counts automatically; a human rule must be scored twice, in shuffled order. Evidence: the agreement figure in the doc.
  • AC-3: Only when AC-1 and AC-2 hold, the investigation(qa): measure the shipped second look — does --ready-gate catch what the human "any gaps?" caught? (needs a fixture with headroom) #1344 arms (first verdict vs --ready-gate) run as pre-registered there, with n and the noise floor derived from the new pilot's spread. Evidence: the results table and the decision against the floor.

Notes

Activity

  1. added 2 commits that reference this issue on Oct 12, 2026
  2. admarble commented on Oct 27, 2026

    @admarble
    ContributorAuthor

    Attempt 1 of the two fixtures this issue allows, 2026-10-27.

    Fixture. Same notes base as the held-out fixture, new feature (notes add, notes rm to an archive next to the store, notes restore, notes list --archived), five ACs, five planted defects chosen so that npm test, npm run build and the in-place happy path (add, add, list, rm, list --archived, restore with the default store in the working directory) all stay clean. Each surfaces only on a run outside that envelope or on a cross-file trace: an id reused after rm then add and duplicated by restore; restore resolving its archive relative to the working directory while rm writes next to the store; a non-atomic archive append against an AC that asks for temp-and-rename; archive.json created on an unknown-id rm that the AC says writes nothing; list --archived and restore crashing on a store from which nothing has been removed. The candidates were chosen with the three E1 /qa transcripts in view (what the skill had actually run), which is disclosed in the pre-registration. Ground truth is held out in a private research repo, not in this repo.

    Scoring rule (AC-2). A script: a defect counts as named when any of its pre-registered aliases occurs anywhere in the review, with the #1313 boundary rule. Self-agreement 1.0 by construction. A hand read (one reader, after the key, passage quoted) is reported beside it.

    Pilot (AC-1). 3 first-verdict runs, sequant run 32 --phases qa --efforts qa=high --force, launchctl, opus, Claude Code 2.1.311, sequant 2.20.0.

    Run Wall s Key recall Hand read sequant grader (findings-only)
    1 101 1.00 5/5 0.80
    2 76 1.00 5/5 0.00 (bullet layout, no table)
    3 93 1.00 5/5 1.00

    Result: no headroom. The first verdict ran each AC clause as a test: a store in another directory, ls before and after the unknown-id rm, list --archived before any rm, the add/rm/add/restore sequence. Run 1 said it outright: "I tested each AC's own wording against the CLI." A defect that an AC clause names does not give headroom against an AC-driven reviewer, however it is hidden from the diff. The first fixture's defects were diff-visible; these were run-visible; both saturated.

    A control, run the same day under a separate pre-registration: Claude Code's bundled /code-review named all five from the diff alone, without running anything, in 3 of 3 (about $0.14 and 53 s per run), and a one-line "review the diff against the issue" prompt named all five in 3 of 3 (about $1.03 and 200 s). So on a 200-line diff of this kind, no arm, native or sequant, misses a planted defect.

    Attempt 2 (same day): headroom

    Fixture. Same base, new feature (notes edit, notes search, notes export --format json|md --out --since), five ACs that all pass on a run, and five planted defects that no AC clause names and no diff line shows: platform and data-shape facts (the atomic rename resets the store's permission bits; export | head dies on EPIPE once the store passes the pipe buffer; a date-only --since parses as UTC midnight while the README promises local time; search misses a decomposed-Unicode body; edit rebuilds the note from four fields and drops any other field). Each has a written would-ship argument; each was verified to manifest deterministically before the runs (Node v22.23.0, TZ America/Chicago, umask 022).

    Pilot (AC-1), 3 first-verdict runs (sequant run 34 --phases qa --efforts qa=high --force, launchctl, opus, Claude Code 2.1.312, sequant 2.20.0):

    Run Wall s Key recall Hand read Named
    1 113 0.40* 1/5 the UTC parse
    2 139 0.40* 1/5 the UTC parse
    3 132 0.20 1/5 the UTC parse

    * the key over-reads runs 1 and 2 by one defect each (a praise line and a word reuse match an alias); the hand read is the figure. Mean 0.33 on the key, 0.20 by hand: below 0.90, so AC-1 holds. The scoring rule is a script (self-agreement 1.0) with the hand read beside it, so AC-2 holds. The ready-gate arms (AC-3 onward) can now run on this fixture; they have not.

    What the first verdict did: ran every AC clause (three time zones for --since, every error path), scored AC-4 down for the UTC parse and for an unplanted leniency (--since 1 parses as 2001), and praised the edit that drops fields ("rebuilds the note explicitly, so id and createdAt can't drift"). Two of the five facts (EPIPE, Unicode normalization) were named by nobody, in any arm.

    Note, not the headline: the same-day control had /code-review name 2–3 of 5 from the diff alone and a one-line prompt 1–3 of 5. At n = 3 the gap to the first verdict is null under the pre-registered rule and a direction on the hand read.

  3. admarble commented on Oct 28, 2026

    @admarble
    ContributorAuthor

    Follow-up to the attempt-2 table above, same day: five more first-verdict runs on the same fixture (n = 8), same scripts and alias key, pre-registered before they ran.

    Runs Key recall, mean (spread) Hand read, mean (spread) Named
    1–3 (above) 0.33 (0.2) 0.20 (0) the UTC parse, every run
    4–8 0.24 (0.2) 0.20 (0) the UTC parse, every run
    all 8 0.275 (0.2) 0.20 (0) the UTC parse, 8 of 8

    The key's figure is above the hand read's because three runs matched an alias while saying something else (two praise the edit that drops unknown fields as a strength; one logs "other fields kept" from a smoke test of the known fields); listed per run in the research repo, no alias changed. AC-1 holds over 8 runs: headroom is 0.80 by hand, 0.725 by the key. The two facts no run named in 24 runs across three reviewers: an unhandled EPIPE when export is piped into a reader that closes early, and Unicode normalization in search. The ready-gate arms (AC-3 onward) are next, pre-registered before they fire.

    Control, as a note: over the same 8 runs, /code-review named 2–3 of 5 every time (reading only) and a one-line prompt 1–3 of 5; the arm-level gap is null under the pre-registered rule (the key's gap sits at the noise floor) and +0.30 by hand; per defect, the dropped-fields edit went 8 of 8 against 0 of 8.

  4. admarble commented on Oct 28, 2026

    @admarble
    ContributorAuthor

    Result for AC-3 to AC-5, same fixture, same day. The arms as pre-registered in #1344 cannot be reached with sequant run --ready-gate here, because the first verdict is AC_NOT_MET on this fixture and the gate only runs after the phases succeed; the same engine was driven as sequant ready 34 (qa → loop → qa, policy ac, max 2 iterations, qa pinned to opus at effort high) on the worktree each first verdict left behind. Eight paired runs, pre-registered before they fired, scored on the union of every QA pass in the pair, hand read primary with the alias key as the audit trail.

    Pair First verdict Gate outcome Gate passes First named Gate added
    1 AC_NOT_MET READY 2 UTC parse —
    2 AC_MET_BUT_NOT_A_PLUS READY 2 UTC parse —
    3 AC_NOT_MET NOT READY (pass cap) 2 UTC parse —
    4 AC_NOT_MET READY 2 UTC parse permission reset (reproduced)
    5–8 AC_NOT_MET READY 2 UTC parse —

    First verdict recall 0.20 in 8 of 8; gate union 0.225; addition +0.025 against the pre-registered floor of 0.2. Null (AC-5): the second look does not catch what the first verdict misses on this fixture. It does fix what the first verdict catches: every pair's loop committed a parseSince rewrite, and 7 of 8 pairs ended at the merge gate with the ACs met. Its QA passes read the edit that drops unknown fields as a strength in 3 of 8 pairs, as the first verdicts did in 3 of 8; EPIPE and Unicode normalization were named in none of the 24 passes. Wall: first verdict about 122 s, gate about 434 s.

    Caveats: the loop phase ran on the default model (Fable 5.1), not pinned; one pair's first verdict passed AC-4; the gate's token count printed 0 on this fixture; the designer scored (script key, every match listed). Raw reviews, reports and commits are in the private research repo. AC-6 (the README claim) is not touched by this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions