Repository navigation
Description
Why
Every measurement sequant has is of sequant running — 1,300+ transcripts, phase×model tables, verdict records. None observes a control. The product's central claim (a reviewer that isn't the author catches what the author skims past) has never been measured against a baseline, and the one number that supports it — 12/27 (44%) fresh second-look passes caught a would-ship bug — exists only as prose in a memory note and the README. It is not a dataset: no per-case table, no re-run path, no way to calibrate a grader against it.
This issue builds the ground truth that any later ablation, regression gate, or published finding has to stand on. It runs entirely on sequant run — no early-access harness, nothing that can be withdrawn.
What the 44% actually is (from the 2026-05-30 analysis)
The 27 were mined fresh-session qa <N> transcripts. The analysis found the mechanism is not mainly "new session": orchestrated /qa runs lighter by design (SEQUANT_ORCHESTRATOR skips pre-flight), and most catches landed after the human's "any gaps? fix all gaps" follow-up, not in the first verdict. So the README's framing is accurate but the attribution is three-way: de-anchoring, weight, and human-driven second pass. The reconstruction below has to separate them.
~/.claude/projects/ and are perishable. Reconstruct before they rotate.
Deliverables
A. The n=27 as data. docs/investigations/qa-second-look-dataset.md — a table with one row per case: issue, date, first-verdict marker, whether a bug was caught, whether it landed before or after the "any gaps?" prompt, the defect class, and the transcript's path or hash. Every row cites its source.
B. One seeded-defect fixture. A throwaway repo + issue where the diff under review contains N planted defects of distinct classes, each carrying a grep-able identifier. Defect classes are chosen from what the n=27 actually caught (A's defect-class column) — not invented. Ground truth is the list of identifiers.
C. Recall and precision graders. Deterministic scripts over the posted verdict: recall = planted identifiers named ÷ N; precision = findings that map to a planted identifier ÷ total findings. Both are required — a reviewer that flags everything has perfect recall and is useless. This is the first precision measurement sequant will have had.
D. Calibration. Run /qa on the fixture ≥5 times; report recall, precision, and run-to-run spread. Compare the grader's recall against the human-labeled catch rate from A on the overlapping defect classes. State the disagreement rate.
Acceptance Criteria
- AC-1:
docs/investigations/qa-second-look-dataset.mdhas ≥27 rows, each with issue, verdict, caught (y/n), timing (first-verdict/after-follow-up), defect class, and a source citation. Evidence: row count ≥27 and no row with an empty source column. - AC-2: The dataset reports the three-way attribution (de-anchoring / QA weight / human follow-up) as counts, not prose. Evidence: a summary table with one row per mechanism and integer counts summing to the catch total.
- AC-3: A fixture repo exists with ≥5 planted defects of distinct classes drawn from AC-1's defect-class column, each with a unique grep-able identifier, and a ground-truth file listing them. Evidence:
grep -cfor each identifier in the fixture diff returns 1, and the ground-truth file lists every one. - AC-4: A recall grader and a precision grader run over a posted
/qaverdict and print both numbers. Evidence: run against a hand-written verdict that names 3 of 5 identifiers plus 2 unrelated findings → recall 0.6, precision 0.6. - AC-5: The graders are mutation-verified: remove one identifier from the ground-truth file and the recall grader's output changes. Evidence:
Mutation-verified: AC-5 — …record in the PR body, machine-anchored as<!-- SEQUANT_MUTATION: … -->. - AC-6:
/qaruns ≥5 times on the fixture viasequant run --phases qa, and the investigation doc reports recall, precision, and spread (min/max/mean) per run. Evidence: a results table with ≥5 rows. - AC-7: The doc states the grader-vs-human disagreement rate on overlapping defect classes, and names the classes where they disagree. Evidence: a sentence of the form "grader and human labels disagree on K of M overlapping cases; classes: …".
- AC-8: Cost per
/qarun on the fixture is recorded from that run'smetrics.costUSDin.sequant/metrics.json(SDKmodelUsage, not the transcript hook).sequant statsaggregates by phase × model, not by run; owner decision 2026-10-04. Evidence: a cost column in the AC-6 table.
Why these constraints
- Runs on
sequant run, notclaude plugin eval. The harness's without-arm strips the plugin, which is not the comparison the follow-on needs; its sandbox strips hooks (P0.4), which is a deployment context that doesn't exist; and it is early-access, so a finding built on it cannot be reproduced if the flag moves. The regression cases stay on the harness — that is the right job for it. - Precision is mandatory. The gap audit measured a real-defect rate once, by hand. Nothing since. A recall-only QA story is half a story.
- Defect classes come from the data, not from intuition. If the n=27 caught mostly "no implementation existed" and "feature non-functional for primary path," the fixture seeds those, not injection payloads.
Out of scope
- The ablation itself (real vs placebo skill, per-section leave-one-out) — the follow-on issue, blocked by this one.
- Any change to
/qaSKILL.md. This issue measures; it does not tune. - Publishing. The dataset and numbers feed the research log later; the redaction pass there is where publication is decided.
Notes
qa/SKILL.mdis 3,754 lines / 176 KB. A whole-skill length-matched placebo is impractical at that size; the follow-on uses section-level leave-one-out, which needs no placebo. Record section boundaries while building the fixture — it makes the follow-on cheaper.- Related: feat(run): fresh-session QA — never resume the exec session into qa; expose run.fullQa (setting + --full-qa + MCP param) #982 (fresh-session QA), fix(qa): §7 gates must be reachable — lint the skill's own enforcement chain (§2h has been unwired since it shipped) #834 (§7 gate reachability), Promote
sequant readyfrom experimental: Layer-2 backtest + Layer-3 shadow dogfood, meet promotion gate (#683 follow-up) #689 (ready backtest),docs/investigations/qa-gap-signal-to-noise.md(the one prior precision measurement),docs/investigations/ready-gate-backtest.md.
Activity
admarble commentedon Sep 16, 2026
Follow-on measurement issue, blocked by this one: #1068
admarble commentedon Sep 18, 2026
Source correction (2026-09-17) — the transcripts are not where this issue says
The body says the 27 transcripts live under
~/.claude/projects/. They don't, and never did. #683 (filed from the study the same day) states the source: "Empirical analysis of our own.entireconversation logs (2026-05-30)." Checked:~/.claude/projects/: 786.jsonl, zero dated ≤ 2026-05-30; oldest surviving is 2026-08-17. Sessions opening withqa <N>before 05-31: 0..sequant/captures ≤ 05-30 in any repo: state/settings only, no transcripts.sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683, feat(cli):sequant ready <issue>— post-resolve A+ QA gate (#683) #686 (sequant ready), Promotesequant readyfrom experimental: Layer-2 backtest + Layer-3 shadow dogfood, meet promotion gate (#683 follow-up) #689/chore(#689): ready-gate backtest driver script #691/docs(#689): backtest infeasible (both approaches fail) — recommend descope to Layer-3 #692 (backtest declared infeasible). No dataset committed.entire checkpoint searchexists (semantic + keyword) but the CLI is not authenticated —entire loginis a human step.Recovery path, in order:
entire login→entire checkpoint searchfor the 05-30qa <N>sessions → export the 27. If they're there, AC-1 stands as written.If they're not recoverable, AC-1 (≥27 rows, each with a source citation) is a SPEC_DIVERGENCE as written and should be re-scoped to what survives: #683 preserves the headline split (12/27 shipping bug · 11/27 quality gap · 2/27 clean), the detail that 24 of 27 ran after an in-orchestrator QA had already passed the same work, and ~8 cited cases with defect classes — #421 (non-functional for primary use after
READY_FOR_MERGE), #529/#570 (no implementation existed; exposed null-verdict-as-success #534), #503 (programmatic API broken at launch), #467 (vacuous AC test), #318. Those cases can be re-verified from GitHub verdict records + subsequent commits. The remaining ~19 cannot be reconstructed from GitHub alone, because #683 also records that the catches landed after the human's "any gaps?" prompt — i.e. in the transcript, not the posted verdict.Either way, AC-2's three-way attribution already has its structural answer in #683's root-cause section: (1) orchestrated QA skips pre-flight (
skills/qa/SKILL.md:54-58), (2) fullsolve breaks atAC_MET_BUT_NOT_A_PLUS, (3) de-anchoring is secondary. The reconstruction should confirm those counts, not rediscover them.admarble commentedon Oct 4, 2026
Source found (2026-10-04): the pre-study
qa <N>transcripts survive, locally, in gitThe 09-17 correction was right that they aren't under
~/.claude/projects/. They are on the localentire/checkpoints/v1branch of this repo. Entire stores each checkpoint as<xx>/<id>/<n>/{prompt.txt, metadata.json, full.jsonl, …}. Of 1,019 checkpoints with a full transcript, 752 have aprompt.txt.entire checkpoint search(now authenticated) returns only commits for these queries. Use the branch directly.qa <N>, and all 26 havefull.jsonl.sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683's cited cases, are present. MCP server: add progress notifications for sequant_run #421, bug(hooks): pre-tool.sh regexes for destructive/deployment/reset/workflow commands also match inside quoted gh body content #570, Prevent skill/CLI drift with phase vocabulary docs and optional smoke test #467 and refactor(run): split 3,459-line monolith into focused modules #318 are not matched by the^/?qa <N>prompt pattern. They may have been reviewed under a different opening prompt (fullsolve, a follow-up turn); searchfull.jsonlfor them before calling them lost.sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683's 12/11/2 split.Recover with:
git show entire/checkpoints/v1:<path>/full.jsonlf9/389daebb2d/0a8/8566fd523c/01e/43716fecdd/21e/43716fecdd/31e/43716fecdd/478/781336ea85/078/781336ea85/178/781336ea85/1278/781336ea85/1478/781336ea85/1578/781336ea85/1878/781336ea85/22a9/ea4586305f/1a9/ea4586305f/080/f7c4e77624/037/2c9c4e609f/3f7/450c494650/35b/588313b1b7/17a/86e4a2ac1f/1d0/9462ed63c7/127/f002f3c8e8/0dc/ef697be3a1/044/b04e8aa7a7/14a/267c526c78/0e4/b2f746d002/0e4/b2f746d002/1The
issue(s)column is the first number in the prompt; see the opening-prompt column for multi-issue sessions.AC-1 can stand roughly as written, sourced from these transcripts. Those are local git objects: the branch lives only on this machine, so copy the needed
full.jsonlfiles into the investigation before anything prunes them.admarble commentedon Oct 4, 2026
Runner context (2026-10-04, main @ cbc2fce) — read before spec and exec
1. The transcripts are NOT under
~/.claude/projects/. That location has rotated. They survive on the local-only git branchentire/checkpoints/v1(comment above). Worktrees share the object store, so this works from any worktree:git show entire/checkpoints/v1:<path>/full.jsonl(alsoprompt.txt,metadata.json,content_hash.txt).Candidate sessions, the ones whose prompt opens with
qa <N>. Columns are created_at, issue, path, prompt:sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683 also cites MCP server: add progress notifications for sequant_run #421, bug(hooks): pre-tool.sh regexes for destructive/deployment/reset/workflow commands also match inside quoted gh body content #570, Prevent skill/CLI drift with phase vocabulary docs and optional smoke test #467 and refactor(run): split 3,459-line monolith into focused modules #318, which don't open withqa <N>. Before calling them missing, text-search other checkpoints (git grep -lonentire/checkpoints/v1for the issue number inprompt.txt/full.jsonl).2. Mining strategy: run scripts first, and never
cata wholefull.jsonl. Together they total about 1.3 GB. Usegrep/jqto pull:SEQUANT_ORCHESTRATORwas set.Then read only those windows. Subagents are fine. Commit WIP every ~10 min, because the phase has a 30-min wall.
3. Publication: this repo is PUBLIC, and
docs/publishes itself.content_hash.txt. Paste no transcript excerpts.entire/checkpoints/v1, and nevergit push --all. That branch stays local.4. AC-3 fixture: build it as files in this repo. That means the defect patch, the ground-truth identifier list and a draft fixture issue body. Put them in one directory, e.g.
docs/investigations/qa-seeded-fixture/. Don'tgh repo createor open issues elsewhere. The runner provisions the GitHub side.5. AC-6, AC-7 and AC-8 are runner-executed. They need a live fixture issue and five
sequant run --phases qaruns, which a phase agent can't fit inside the 30-min wall and must not nest. Leave their sections in the doc as clearly marked placeholders. QA: mark them pending-runner, not met.6. AC-5 mutation record:
failedTestmust start with the grader test's FILE path, e.g.scripts/…test.ts > ….7. Don't run the full
npm test. Use targetednpx vitest run <files>,npx tsc --noEmitandnpm run lint:skill-calls. CI runs the suite.8. Format precedent: follow
docs/investigations/qa-gap-signal-to-noise.md, the one prior precision measurement.admarble commentedon Oct 4, 2026
Complexity: Standard (8 ACs, 2 directories:
docs/investigations/,scripts/analytics/)AC Quality Check
lintAcceptanceCriteria: all 8 ACs pass. Every AC is on one line and carries anEvidence:clause.Vacuity check against
main@ cbc2fce: none of the evidence passes today.docs/investigations/qa-second-look-dataset.md, the fixture directory and the graders don't exist yet.Precision notes (not lint failures):
qa <N>checkpoints, some covering more than one issue. Per the runner context, if the real count is below 27, exec reports it as-is and the runner rules on AC-1. Not a SPEC_DIVERGENCE./qaverdict is free-form, so "total findings" needs a deterministic rule (see Open Question 1). The hand-written fixture verdict follows the same rule.Scope Assessment
Non-Goals: given as "Out of scope": the ablation (#1068), any
/qaSKILL.md change, and publishing.Verdict:⚠️ SCOPE_WARNING. There are three distinct deliverables, but they form one dependency chain (the dataset's classes feed the fixture, which the graders score), so splitting would only add handoffs. AC-6/7/8 are already carved out to the runner.
Acceptance Criteria
AC-1: n=27 dataset, one row per case, sourced
Verification: Manual Test, backed by a mining script whose output gets reviewed
Scenario: Given the 26+ pre-study
qa <N>checkpoints on localentire/checkpoints/v1→ When the mining script pulls verdict markers, gap-prompt offsets and the orchestrator flag from eachfull.jsonl→ Then the doc has one row per issue review. Each row has issue, date, first-verdict marker, caught y/n, timing, defect class, and source (<checkpoint path>+content_hash.txt).Assumptions: the checkpoint branch is still intact; worktrees share the object store, so
git show entire/checkpoints/v1:…works from the feature worktree. #421/#570/#467/#318 had 0 hits inprompt.txt(checked during spec), so exec mustgit grepfull.jsonlbefore calling them missing.AC-2: three-way attribution as integer counts
Verification: Manual Test
Scenario: Given the AC-1 rows → When each caught row gets one primary mechanism (de-anchoring / QA weight / human follow-up) → Then a summary table has 3 rows whose integers sum to the caught count.
Assumptions: the signals are mechanical: "QA weight" =
SEQUANT_ORCHESTRATORset or pre-flight skipped; "human follow-up" = the catch lands after an "any gaps"/"fix all gaps" turn; "de-anchoring" = caught in the first verdict of a fresh session after a prior in-orchestrator pass. Write the rule above the table.AC-3: fixture with ≥5 planted defects, classes drawn from AC-1
Verification: Integration Test, as a vitest gate in the grader test file
Scenario: Given
docs/investigations/qa-seeded-fixture/{defects.patch, ground-truth.json, fixture-issue.md}→ When the test reads each identifier → Then each occurs exactly once indefects.patch, ground truth lists every one, and each class appears in AC-1's defect-class column.Assumptions: identifiers are natural code symbols, not
// SEED-03comments (see Design Review Q4).AC-4: recall + precision graders
Verification: Unit Test
Scenario: Given
ground-truth.json(5 ids) and a hand-written verdict naming 3 ids plus 2 unrelated findings → Whennpx tsx scripts/analytics/qa-seeded-grade.ts --verdict <file> --truth <file>runs → Then it printsrecall 0.60andprecision 0.60, and exits 0.AC-5: graders mutation-verified
Verification: Unit Test + PR-body record
Scenario: Remove one identifier from a copy of the ground truth → the recall assertion fails → restore. The PR body carries
Mutation-verified: AC-5 — …plus<!-- SEQUANT_MUTATION: {"ac":"AC-5",…,"failedTest":"scripts/analytics/qa-seeded-grade.test.ts > …"} -->. ThefailedTestvalue must start with the file path.AC-6 / AC-7 / AC-8: runner-executed
Verification: Manual (runner)
Scenario: The doc has a results table (run, recall, precision, cost USD) with a min/max/mean footer, plus the disagreement sentence template, as clearly marked placeholders. QA marks these pending-runner, not met.
Assumptions:
sequant statsaggregates cost per phase×model, not per run (src/commands/stats.ts:407-428). The per-run cost for AC-8 likely needs--sincewindows or the run-logmetrics.costUSD. Record which one in the placeholder so the runner doesn't have to rediscover it.Implementation Plan
Phase 1: Mine (AC-1, AC-2). Commit WIP every ~10 min.
scripts/analytics/qa-second-look-mine.ts, following thegap-signal.ts/ready-backtest.tsshape. Input is the candidate list from the runner comment. Per checkpoint, it streamsgit show entire/checkpoints/v1:<p>/full.jsonlline by line (never loading the whole file) and emits JSONL: verdict markers + turn offsets, the offset of the first "any gaps"/"fix all gaps" user turn, theSEQUANT_ORCHESTRATORflag,content_hash.txt. It alsogit grepsfull.jsonlfor 421/570/467/318.docs/investigations/qa-second-look-dataset.mdin the format ofqa-gap-signal-to-noise.md(Question / TL;DR / Method / table / noise floor). No transcript excerpts. Cite path + hash only. Report the real n.sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683's 12/11/2 split in a short section. If the numbers disagree, say so and don't force them to match.Phase 2: Fixture (AC-3)
docs/investigations/qa-seeded-fixture/:defects.patch(≥5 defects, one per class, top classes from step 2),ground-truth.json([{id, class, file, rationale}]),fixture-issue.md(draft issue body with ACs the patch claims to meet), and a README on provisioning. Nogh repo createand no issues. The runner provisions those.Phase 3: Graders (AC-4, AC-5)
scripts/analytics/qa-seeded-grade.tsexportsgradeRecallandgradePrecisionas pure functions, plus a CLI. Matching is a word-boundary match on the identifier. Findings are extracted per Open Question 1.scripts/analytics/qa-seeded-grade.test.ts: the AC-4 0.6/0.6 case, an AC-3 fixture integrity gate (each id ×1 in the patch, every id in ground truth), and edge cases: 0 findings means precision is undefined, not NaN. Mutation-verify AC-3 and AC-5 and record both in the PR body.Phase 4: Runner placeholders (AC-6/7/8)
⏳ pending-runner. Also record theqa/SKILL.mdsection boundaries (line ranges per##) that the fixture's defects target, which the Notes ask for to make 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 cheaper.Checks:
npx vitest run scripts/analytics/qa-seeded-grade.test.ts,npx tsc --noEmit,npm run lint:skill-calls. Not the fullnpm test.Design Review
scripts/analytics/(offline research scripts with tests, besidegap-signal.tsandready-backtest.ts) anddocs/investigations/. Nothing goes insrc/, because this is not product code.gap-signal.ts, Promotesequant readyfrom experimental: Layer-2 backtest + Layer-3 shadow dogfood, meet promotion gate (#683 follow-up) #689ready-backtest.ts). Neither has a fix-of-a-fix history; chore(#689): ready-gate backtest driver script #691/docs(#689): backtest infeasible (both approaches fail) — recommend descope to Layer-3 #692 declared the backtest infeasible rather than re-patching it. New code with no recurrence, so no class to fix.// SEED-03tag or a suspicious name tells/qawhere to look and inflates recall. Use ordinary-looking symbols (parseRetryWindow,normalizeSlug) that a finding naturally names. Ground truth maps symbol → class.README"12/27 (44%)" claim, feat(cli):sequant ready <issue>— post-resolve A+ QA gate that drives an issue to merge-readiness #683, memory, and 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 (blocked on this one). If the reconstruction gives a different number, the README claim is stale (Open Question 2). Each grader artifact has one producer.No ADR: there's no product design choice here.
Feature Quality Planning
All standard checks pass. Notable items:
docs/self-publishes): no transcript text, prompts or excerpts in the doc. Path + hash only. Never pushentire/checkpoints/v1, and nevergit push --all.full.jsonlfiles into the investigation", and the runner context bans excerpts in a public repo. Resolution in Open Question 3.cat1.3 GB.Open Questions
AC_NOT_METrow. Encode it inextractFindings()with tests and state it in the doc. Impact if wrong: the precision denominator is arbitrary, and 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 inherits it.~/.sequant-archive/1067/<path>/full.jsonl), listed by path + hash in the doc. Not committed. Impact if committed: private transcripts get published.sequant statsis phase×model aggregate. Recommendation: per run,sequant stats --json --sincescoped to each run, or the run-logmetrics.costUSD. The runner picks. Impact: an AC-8 wording mismatch at QA.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: One test file of pure functions with a fixed example. Testgen adds nothing over writing the AC-4 case directly. Most of the work is mining and labeling, not code. AC-6/7/8 are runner-executed afterwards.
Label Review
Current: qa, backlog
Recommended: +
planned. Consider removingbacklog.Quality Loop: won't auto-enable. SCOPE_WARNING would normally enable it, but the plan disables it: three of the ACs are runner-run, and the code surface is small.
admarble commentedon Oct 4, 2026
QA Verdict: NEEDS_VERIFICATION
AC coverage: 5/8 met
Gaps:
Pending ACs:
Needs human review:
fix(#1067): graders read the real /qa template (no Risk Assessment fi…
docs(#1067): grader definitions match the calibrated rules; 44% corre…
admarble commentedon Oct 4, 2026
Runner verification (2026-10-04): PR #1308
QA returned NEEDS_VERIFICATION (5/8). Here is what the runner ran or read:
npx vitest run scripts/analytics/qa-seeded-grade.test.ts(integrity block)sample-verdict.mdrecall 0.60 (3/5)andprecision 0.60 (3/5)✅parseSinceDatefromground-truth.jsonand re-ran the grader--phases qarunsFixed beyond exec's work (
a5465f95,57a876f6):/qatemplate. Risk Assessment bullets are no longer counted as findings, and aPARTIALLY_METrow now is. Before this fix, a template-shaped verdict scored precision 0.00.METrow no longer counts.Follow-up ledger:
~/.sequant-archive/1067/entire-checkpoints-v1.bundle(227 MB, verified) and is not committed.PR #1308 says Part of #1067, not a closing keyword, so this issue stays open for AC-6, AC-7 and AC-8.
docs(#1067): the fixture table and known-bias note say the grader doe…
admarble commentedon Oct 5, 2026
Runner addendum (2026-10-04), PR #1308 @
9ac774f60.0.0.0should be caught. The table now names §6f Trust-Boundary and Code Review Issues. Known bias records that a catch which appears only in §5, or only in the Trust-Boundary**Finding:**line, counts as a recall miss. AC-7 must report that miss per class, starting withsecurity-exposure.git apply --check defects.patchagainst a fresh repo built frombase/exits 0, so the patch is a reviewable diff..sequant/metrics.jsoncost $1.21 to $2.00 each, with a mean of $1.56. Five runs should come to roughly $8, which is an upper bound because the fixture is smaller than this repo.feat(#1067): investigation(qa): seeded-defect ground truth — reconstr…
docs(#1067): calibration results — 5 opus /qa runs catch 5/5 planted …
feat(#1313): investigation(qa): recalibrate the #1067 seeded-defect g…