Skip to content

investigation(qa): measure the shipped second look — does --ready-gate catch what the human "any gaps?" caught? (needs a fixture with headroom) #1344

Closed

Description

@admarble

Epic: graph-2026-10-freeze Tier: judgment Execution: runner session (calibration runs on the fixture repo via launchctl; not inside a phase, #856)

Why

The README promises that "each acceptance criterion [is] checked". The only measurement behind that claim is the n=27 second-look study (#1067, docs/investigations/qa-second-look-dataset.md). In that study, 10 of 27 reviews caught a would-ship bug, and 7 of the 10 caught it only after the human asked "any gaps?". Only 3 caught it in the automated first verdict.

The automation for that follow-up shipped after the transcripts were mined on 2026-05-30:

Nobody has measured what the shipped path catches. "3 of 27" describes the product before the fix, and today's number is unknown. This issue measures it, so the product claim is backed by data or reworded.

Known obstacle: the current fixture has no headroom

In calibration (#1067 AC-6, re-graded in #1313), plain /qa under sequant run --phases qa caught all 5 planted defects in all 5 runs (human recall 1.00, recalibrated grader recall 1.00, in-sample). A second look cannot improve on 1.00, so this fixture alone cannot answer the question. The real catches in the n=27 study were harder: a success report with no implementation behind it (#529/#570), a test with zero assertions (#467), and a primary path broken behind passing ACs (#421, #503). #1272 needs a held-out fixture for the same reason, so build one fixture that serves both.

Arms

  • A, first verdict: sequant run <N> --phases qa (today's default).
  • B, shipped second look: sequant run <N> --phases qa --ready-gate, scored on the gate's final verdict.

Acceptance Criteria

  • AC-1: The investigation doc states, before any scored run, the arms, n per arm with its derivation, the metrics, the noise floor used for the B−A decision, and the null-result plan. Evidence: git log -p on the doc shows a dated "Pre-registration" heading committed before any results heading.
  • AC-2: A held-out fixture exists whose planted defects are modelled on the n=27 classes the first verdict missed (success reported with no implementation, zero-assertion test, primary path broken behind passing ACs), and arm A's grader recall on it is below 0.90 over at least 3 pilot runs; if no such fixture can be built, the doc records that as the result and the issue stops here. Evidence: a pilot table in the doc with per-run arm-A recall, or a "Stopped: no headroom" heading in the doc.
  • AC-3: Each arm runs at least n times on the held-out fixture, launched outside any Claude session (launchctl or cron, per Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856), and every run's final verdict, exit code, wall time and cost are captured; failed or timed-out runs count as misses in their arm and are never dropped. Evidence: a results directory with one record per (arm, run) and a count matching 2 × n.
  • AC-4: The results table reports per arm: grader recall, human-read recall, planted share, mean cost and mean wall time, plus the B−A recall delta with its spread across runs. Evidence: the table in the doc, with the human-read column filled for every run.
  • AC-5: The doc records a decision against the pre-registered noise floor: if B−A exceeds it, a follow-up issue proposes making the ready gate the default for sequant run; if it does not, a null-result section says what the second look fails to catch. Evidence: a link to the follow-up issue, or the null-result heading in the doc.
  • AC-6: The README's "each acceptance criterion checked" claim links to the result or is reworded to match it. Evidence: the README diff in the PR.

Notes

Shared artifact

This issue builds the held-out fixture; #1272 consumes it (graph doc D-4). Build it once, here.

May touch

docs/investigations/ (the measurement doc), the private calibration fixture repo (new held-out issues and PRs), local run scripts. No src/ change is expected.

Non-Goals

  • Making the ready gate the default (that is AC-5's follow-up issue, if the result supports it).
  • Any edit under plugin/, .claude/skills/ or templates/skills/ (plugin freeze, I-1 of the graph doc).

Activity

  1. added
    qa
    graph-2026-10-freeze
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 10, 2026
  3. admarble commented on Oct 10, 2026

    @admarble
    ContributorAuthor

    Runner note for the pilot record (2026-10-10). The pilot's 3 arm-A runs used the global sequant CLI, a dev build of this repo's dist/ last built 2026-10-08 19:03 CDT, at or before 68446b02 (version string 2.19.0). That build predates the graph-2026-10-freeze merges. The /qa skill text came from the fixture repo's committed .claude/skills/, not from dist/. The build version goes in the doc's Deviations section, beside the pre-registered "same sequant version, recorded per run". Pilot grader recall: 5/5, 5/5, 5/5. The human read is pending.

  4. added 4 commits that reference this issue on Oct 10, 2026
  5. added a commit that references this issue on Oct 12, 2026
  6. added 2 commits that reference this issue on Nov 11, 2026
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

    graph-2026-10-freezeqa

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions