Repository navigation
Description
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:
- feat(qa): promote Adversarial Re-Read from checklist item to required structured output section #582 (2026-05-06): §6d Adversarial Re-Read is required in Standard QA.
- feat(cli):
sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683 (2026-06-01):sequant ready <issue>runs a full-weight post-QA gate. - feat(run): --ready-gate — run the post-QA ready gate inside
sequant run(automates the any-gaps/fix-gaps second look, stops at human merge) #817 (2026-07-28):sequant run --ready-gateruns that gate insiderun. It is opt-in and off by default (bin/cli.ts:410).
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 -pon 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
- Grader:
scripts/analytics/qa-seeded-grade.ts, recalibrated in investigation(qa): recalibrate the #1067 seeded-defect grader before #1068 (identifier choice, precision definition, heading noise) #1313. The recalibration was in-sample, so the human-read column in AC-4 is what keeps the grader honest on a new fixture. - Cost reference: about $0.92 per opus
/qarun on the current fixture. The ready-gate arm will cost more, so record it per run. - The outcome is a research-log post either way (sequant-landing
/research), and it goes through the redaction pass first. - Related: investigation(qa): seeded-defect ground truth — reconstruct the n=27 second-look study as data, build a planted-defect fixture, add recall AND precision graders #1067 (dataset and fixture), investigation(qa): recalibrate the #1067 seeded-defect grader before #1068 (identifier choice, precision definition, heading noise) #1313 (grader), investigation(qa): decision rules for the /qa ablation — noise floor from #1067's spread, a held-out fixture, excluded truncated runs, headroom check #1272 (held-out fixture, noise floor), investigation(qa): section leave-one-out ablation of /qa SKILL.md — which of 3,754 lines are load-bearing, measured on the seeded-defect fixture #1068 (section ablation).
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/ortemplates/skills/(plugin freeze, I-1 of the graph doc).
Activity
docs(#1390): graph-2026-10-freeze founding doc, issue graph and as-fi…
admarble commentedon Oct 10, 2026
Runner note for the pilot record (2026-10-10). The pilot's 3 arm-A runs used the global
sequantCLI, a dev build of this repo'sdist/last built 2026-10-08 19:03 CDT, at or before68446b02(version string 2.19.0). That build predates the graph-2026-10-freeze merges. The/qaskill text came from the fixture repo's committed.claude/skills/, not fromdist/. 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.docs(#1344): record the headroom pilot — human-read recall 0.53, so t…
docs(#1344): define 'caught' as a per-review rubric before re-scoring…
docs(#1344): record the rubric re-score (0.60) and the 8/15 agreement…
docs(#1344): Stopped: no headroom — grader recall 1.00 over 3 pilot r…
docs(#1344): second-look measurement stopped at the pilot — no headro…
docs(#1650): attribute the fixture #34 figures to the run, not to #1344…
docs(#1650): the ready gate's docs drop the second-look claim — descr…