Skip to content

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

Closed

Description

@admarble

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.

⚠️ Source transcripts live under ~/.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.md has ≥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 -c for 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 /qa verdict 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: /qa runs ≥5 times on the fixture via sequant 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 /qa run on the fixture is recorded from that run's metrics.costUSD in .sequant/metrics.json (SDK modelUsage, not the transcript hook). sequant stats aggregates 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, not claude 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 /qa SKILL.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

Activity

  1. added
    qa
    backlog
    on Sep 16, 2026
  2. admarble commented on Sep 16, 2026

    @admarble
    ContributorAuthor

    Follow-on measurement issue, blocked by this one: #1068

  3. admarble commented on Sep 18, 2026

    @admarble
    ContributorAuthor

    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 .entire conversation logs (2026-05-30)." Checked:

    Recovery path, in order: entire login → entire checkpoint search for the 05-30 qa <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 at AC_MET_BUT_NOT_A_PLUS, (3) de-anchoring is secondary. The reconstruction should confirm those counts, not rediscover them.

  4. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    Source found (2026-10-04): the pre-study qa <N> transcripts survive, locally, in git

    The 09-17 correction was right that they aren't under ~/.claude/projects/. They are on the local entire/checkpoints/v1 branch 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 a prompt.txt.

    Recover with: git show entire/checkpoints/v1:<path>/full.jsonl

    created_at (UTC) issue(s) checkpoint path opening prompt
    2026-02-22T08:21:29 313 f9/389daebb2d/0 qa 313. use sub agents or agent teams if needed. Use qa skil
    2026-02-22T09:42:13 299 a8/8566fd523c/0 qa 299 300. USe sub agents or agent teams if needed. use qa
    2026-03-11T22:21:39 336 1e/43716fecdd/2 qa 336
    2026-03-11T22:42:44 172 1e/43716fecdd/3 qa 172
    2026-03-11T23:47:37 248 1e/43716fecdd/4 qa 248
    2026-03-12T20:07:29 327 78/781336ea85/0 qa 327
    2026-03-13T21:13:26 94 78/781336ea85/1 qa 94 352
    2026-03-23T05:21:54 368 78/781336ea85/12 qa 368
    2026-03-23T05:31:09 372 78/781336ea85/14 qa 372
    2026-03-23T05:59:09 369 78/781336ea85/15 qa 369
    2026-03-23T13:54:33 370 78/781336ea85/18 qa 370
    2026-03-24T16:39:56 395 78/781336ea85/22 qa 395
    2026-03-26T06:14:22 447 a9/ea4586305f/1 qa 447
    2026-03-26T06:14:22 448 a9/ea4586305f/0 qa 448
    2026-03-26T06:17:58 448 80/f7c4e77624/0 qa 448
    2026-03-26T13:35:32 461 37/2c9c4e609f/3 qa 461
    2026-03-26T15:00:43 460 f7/450c494650/3 qa 460
    2026-04-07T13:48:04 484 5b/588313b1b7/1 /qa 484
    2026-04-09T03:28:55 503 7a/86e4a2ac1f/1 qa 503
    2026-04-09T03:35:37 503 d0/9462ed63c7/1 qa 503
    2026-04-18T23:33:41 528 27/f002f3c8e8/0 qa 528
    2026-04-18T23:51:19 528 dc/ef697be3a1/0 qa 528
    2026-04-25T16:30:29 529 44/b04e8aa7a7/1 qa 529 531
    2026-05-09T23:08:32 616 4a/267c526c78/0 qa 616
    2026-05-13T02:11:42 605 e4/b2f746d002/0 qa 605
    2026-05-13T02:11:45 543 e4/b2f746d002/1 qa 543

    The 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.jsonl files into the investigation before anything prunes them.

  5. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    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 branch entire/checkpoints/v1 (comment above). Worktrees share the object store, so this works from any worktree:
    git show entire/checkpoints/v1:<path>/full.jsonl (also prompt.txt, metadata.json, content_hash.txt).
    Candidate sessions, the ones whose prompt opens with qa <N>. Columns are created_at, issue, path, prompt:

    2026-02-22T08:21:29	313	f9/389daebb2d/0	qa 313. use sub agents or agent teams if needed. Use qa skill
    2026-02-22T09:42:13	299	a8/8566fd523c/0	qa 299 300. USe sub agents or agent teams if needed. use qa skill even if using agents. Do we need t
    2026-03-11T22:21:39	336	1e/43716fecdd/2	qa 336
    2026-03-11T22:42:44	172	1e/43716fecdd/3	qa 172
    2026-03-11T23:47:37	248	1e/43716fecdd/4	qa 248
    2026-03-12T20:07:29	327	78/781336ea85/0	qa 327
    2026-03-13T21:13:26	94	78/781336ea85/1	qa 94 352
    2026-03-23T05:21:54	368	78/781336ea85/12	qa 368
    2026-03-23T05:31:09	372	78/781336ea85/14	qa 372
    2026-03-23T05:59:09	369	78/781336ea85/15	qa 369
    2026-03-23T13:54:33	370	78/781336ea85/18	qa 370
    2026-03-24T16:39:56	395	78/781336ea85/22	qa 395
    2026-03-26T06:14:22	447	a9/ea4586305f/1	qa 447
    2026-03-26T06:14:22	448	a9/ea4586305f/0	qa 448
    2026-03-26T06:17:58	448	80/f7c4e77624/0	qa 448
    2026-03-26T13:35:32	461	37/2c9c4e609f/3	qa 461
    2026-03-26T15:00:43	460	f7/450c494650/3	qa 460
    2026-04-07T13:48:04	484	5b/588313b1b7/1	/qa 484
    2026-04-09T03:28:55	503	7a/86e4a2ac1f/1	qa 503
    2026-04-09T03:35:37	503	d0/9462ed63c7/1	qa 503
    2026-04-18T23:33:41	528	27/f002f3c8e8/0	qa 528
    2026-04-18T23:51:19	528	dc/ef697be3a1/0	qa 528
    2026-04-25T16:30:29	529	44/b04e8aa7a7/1	qa 529 531
    2026-05-09T23:08:32	616	4a/267c526c78/0	qa 616
    2026-05-13T02:11:42	605	e4/b2f746d002/0	qa 605
    2026-05-13T02:11:45	543	e4/b2f746d002/1	qa 543
    2026-06-04T05:36:49	713	2b/39247ae40a/0	qa 713
    2026-06-04T05:36:53	709	2b/39247ae40a/2	qa 709
    2026-06-04T05:36:53	711	2b/39247ae40a/1	qa 711
    2026-07-15T14:08:42	762	63/31fb4954a3/0	qa 762
    2026-07-15T14:09:04	760	63/31fb4954a3/2	qa 760
    2026-07-16T03:26:37	763	c2/1818744f09/0	qa 763
    2026-07-19T02:33:01	785	5f/1698fbc6f5/0	qa 785
    2026-07-28T05:08:32	817	e0/c289d6e717/0	qa 817
    2026-07-28T05:08:39	819	e0/c289d6e717/1	qa 819
    

    2. Mining strategy: run scripts first, and never cat a whole full.jsonl. Together they total about 1.3 GB. Use grep/jq to pull:

    • the verdict markers;
    • the turn offset of any "any gaps" / "fix all gaps" human prompt;
    • whether SEQUANT_ORCHESTRATOR was 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.

    • Rows cite the checkpoint path plus content_hash.txt. Paste no transcript excerpts.
    • Never push entire/checkpoints/v1, and never git 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't gh repo create or 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 qa runs, 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: failedTest must start with the grader test's FILE path, e.g. scripts/…test.ts > ….

    7. Don't run the full npm test. Use targeted npx vitest run <files>, npx tsc --noEmit and npm 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.

  6. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    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 an Evidence: 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):

    • AC-1 "≥27 rows": the source has 26 pre-study 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.
    • AC-2 "counts summing to the catch total": this only works if each catch gets exactly one primary mechanism. The three mechanisms can overlap. Exec records one primary mechanism per caught row, plus an optional "contributing" column. The summary table counts only the primary.
    • AC-4 "findings": a real /qa verdict 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 /qa SKILL.md change, and publishing.

    Metric Value Status
    Feature count 3 (dataset, fixture, graders); calibration is runner-run ⚠️
    AC items 8, of which 3 are runner-executed ✅
    Directory spread 2 ✅

    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 local entire/checkpoints/v1 → When the mining script pulls verdict markers, gap-prompt offsets and the orchestrator flag from each full.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 in prompt.txt (checked during spec), so exec must git grep full.jsonl before 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_ORCHESTRATOR set 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 in defects.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-03 comments (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 → When npx tsx scripts/analytics/qa-seeded-grade.ts --verdict <file> --truth <file> runs → Then it prints recall 0.60 and precision 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 > …"} -->. The failedTest value 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 stats aggregates cost per phase×model, not per run (src/commands/stats.ts:407-428). The per-run cost for AC-8 likely needs --since windows or the run-log metrics.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.

    1. scripts/analytics/qa-second-look-mine.ts, following the gap-signal.ts / ready-backtest.ts shape. Input is the candidate list from the runner comment. Per checkpoint, it streams git show entire/checkpoints/v1:<p>/full.jsonl line 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, the SEQUANT_ORCHESTRATOR flag, content_hash.txt. It also git greps full.jsonl for 421/570/467/318.
    2. Read only the windows around the verdict and gap turns to label caught / defect class / primary mechanism. Subagents are fine. Write docs/investigations/qa-second-look-dataset.md in the format of qa-gap-signal-to-noise.md (Question / TL;DR / Method / table / noise floor). No transcript excerpts. Cite path + hash only. Report the real n.
    3. Reconcile against feat(cli): 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)

    1. 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. No gh repo create and no issues. The runner provisions those.

    Phase 3: Graders (AC-4, AC-5)

    1. scripts/analytics/qa-seeded-grade.ts exports gradeRecall and gradePrecision as pure functions, plus a CLI. Matching is a word-boundary match on the identifier. Findings are extracted per Open Question 1.
    2. 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)

    1. Results table + disagreement-sentence template + the per-run cost method, all marked ⏳ pending-runner. Also record the qa/SKILL.md section 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 full npm test.


    Design Review

    1. Where does this belong? scripts/analytics/ (offline research scripts with tests, beside gap-signal.ts and ready-backtest.ts) and docs/investigations/. Nothing goes in src/, because this is not product code.
    2. Simplest correct approach? One mining script plus hand labeling of narrow windows, and one grader module. Rejected: having an LLM label the 27 (that brings back the grader-calibration problem AC-7 measures), and a separate fixture repo (the runner said in-repo files).
    3. Existing pattern and re-patch count? It follows the analytics-script + investigation-doc pattern (investigate(metrics): gap-check signal-to-noise — does flagged → action rate justify cumulative QA prompt cost? #608 gap-signal.ts, Promote sequant ready from experimental: Layer-2 backtest + Layer-3 shadow dogfood, meet promotion gate (#683 follow-up) #689 ready-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.
    4. What would a senior reviewer challenge?
      • "Grep-able identifiers tip off the reviewer." A // SEED-03 tag or a suspicious name tells /qa where to look and inflates recall. Use ordinary-looking symbols (parseRetryWindow, normalizeSlug) that a finding naturally names. Ground truth maps symbol → class.
      • "Verdicts paraphrase." A reviewer may describe the defect without naming the symbol, and recall then under-counts. That disagreement is exactly what AC-7 measures, so state it as a known grader bias in the doc and don't fuzzy-match it away.
      • "Is 26 the 27?" The doc says it's a reconstruction and gives the reconciliation.
    5. Producers / consumers (whole-repo grep for the 44% claim): the producer was the 2026-05-30 analysis (lost). Consumers are the 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:

    • Publication hygiene (repo is PUBLIC, docs/ self-publishes): no transcript text, prompts or excerpts in the doc. Path + hash only. Never push entire/checkpoints/v1, and never git push --all.
    • Perishability vs. publication: the 19:19 comment says to "copy the needed full.jsonl files into the investigation", and the runner context bans excerpts in a public repo. Resolution in Open Question 3.
    • 30-min wall: streaming mining + WIP commits. Don't cat 1.3 GB.

    Open Questions

    1. What counts as a "finding" for precision? Recommendation: each top-level list item under the verdict's issue-bearing sections (blockers / issues / gaps / findings headings), plus each AC_NOT_MET row. Encode it in extractFindings() 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.
    2. If reconstructed n or rate ≠ 12/27, does the README change here? Recommendation: no. Report it in the doc and file a follow-up, because publication is out of scope. Impact: the README stays stale until the follow-up lands.
    3. Where do the preserved transcripts go? Recommendation: a gitignored local archive (e.g. ~/.sequant-archive/1067/<path>/full.jsonl), listed by path + hash in the doc. Not committed. Impact if committed: private transcripts get published.
    4. Per-run cost source (AC-8): sequant stats is phase×model aggregate. Recommendation: per run, sequant stats --json --since scoped to each run, or the run-log metrics.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 removing backlog.
    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.

  7. added
    planned
    on Oct 4, 2026
  8. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    QA Verdict: NEEDS_VERIFICATION

    AC coverage: 5/8 met

    Gaps:

    • Precision finding extraction is miscalibrated for sequant's real /qa template, which would make AC-6 precision numbers meaningless
    • Recall over-counts neutral mentions of planted identifiers that are common function names; the documented bias covers only under-counting
    • Follow-up to correct the 44% claim names the wrong file and has no terminal state

    Pending ACs:

    • AC-6
    • AC-7
    • AC-8

    Needs human review:

  9. added 2 commits that reference this issue on Oct 4, 2026
  10. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    Runner verification (2026-10-04): PR #1308

    QA returned NEEDS_VERIFICATION (5/8). Here is what the runner ran or read:

    AC Checked by the runner Result
    AC-1 Read the dataset table 30 rows (27 independent reviews plus 3 repeats), and every row has a checkpoint path and content hash ✅
    AC-2 Read the attribution table 7 + 3 + 0 = 10, which matches the caught count ✅
    AC-3 npx vitest run scripts/analytics/qa-seeded-grade.test.ts (integrity block) Each identifier occurs once, the classes are distinct, and every class appears among the caught rows ✅
    AC-4 The grader CLI on sample-verdict.md recall 0.60 (3/5) and precision 0.60 (3/5) ✅
    AC-5 Dropped parseSinceDate from ground-truth.json and re-ran the grader Recall went from 0.60 (3/5) to 0.50 (2/4). Restored ✅
    AC-6/7/8 — ⏳ pending-runner. Needs a live fixture issue and five --phases qa runs

    Fixed beyond exec's work (a5465f95, 57a876f6):

    • Grader against the real /qa template. Risk Assessment bullets are no longer counted as findings, and a PARTIALLY_MET row now is. Before this fix, a template-shaped verdict scored precision 0.00.
    • Recall. It now counts an identifier only when it is named inside a finding, so a neutral mention in a MET row no longer counts.
    • Tests. A new real-template test block covers both changes. Reverting either change makes it fail.

    Follow-up ledger:

    PR #1308 says Part of #1067, not a closing keyword, so this issue stays open for AC-6, AC-7 and AC-8.

  11. added a commit that references this issue on Oct 5, 2026
  12. admarble commented on Oct 5, 2026

    @admarble
    ContributorAuthor

    Runner addendum (2026-10-04), PR #1308 @ 9ac774f6

    • Grader vs. the fixture table. After the grader fix, the grader no longer reads §5 Risk Assessment. The fixture table had named §5 as a place 0.0.0.0 should 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 with security-exposure.
    • AC-3 check. git apply --check defects.patch against a fresh repo built from base/ exits 0, so the patch is a reviewable diff.
    • AC-6 cost estimate. The last 12 opus QA phases in .sequant/metrics.json cost $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.
  13. added a commit that references this issue on Oct 5, 2026
  14. added 2 commits that reference this issue on Oct 5, 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

    backlogplannedqa

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions