Skip to content

feat(#1067): 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 - #1308

Merged
admarble merged 9 commits into
mainfrom
feature/1067-investigation-qa-seeded-defect-ground-truth-recons
Oct 5, 2026

Conversation

@admarble

@admarble admarble commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

AC Status Evidence
AC-1 ✅ (n=27 independent, 30 rows) Dataset table; every row has a source
AC-2 ✅ Attribution table: 7 + 3 + 0 = 10 caught
AC-3 ✅ Integrity tests in qa-seeded-grade.test.ts; grep -c = 1 for each of the 5 identifiers
AC-4 ✅ Sample verdict scores 0.60 / 0.60 (unit test and CLI test)
AC-5 ✅ Mutation record below
AC-6 / AC-7 / AC-8 ⏳ pending-runner Placeholders in the doc

Mutation-verified: AC-5 — removed the parseSinceDate entry from ground-truth.json, and the grader output changed from recall 0.60 (3/5) to recall 0.50 (2/4). The recall test failed, along with the other tests that read the same file (3 at first; 5 after the runner's real-template tests were added). Restored.
Mutation-verified: AC-3 — added a second line naming readNotesFile to defects.patch. Only the uniqueness test failed. Restored. A third mutation, relabeling one defect class as vacuous-test, failed only the dataset-class test.

Both markers parse with parseMutationMarkers.

Checks: the targeted vitest tests (14 after the runner's fixes) pass. tsc --noEmit (both configs), eslint on the new scripts and lint:skill-calls are clean, and the tautology check is OK. The full npm test was not run, per the runner instructions; CI runs it. No CHANGELOG entry: this is internal research with no user-facing change.

Pre-PR Confidence Check

  • Weakest part: four read-only subagents assigned the labels (caught, timing, class), not a human, and some carry medium confidence. The 10/27 figure and the 7/3/0 split rest on them. The doc says so, and asks for a human spot-check of the 10 caught rows before AC-7.
  • Coverage gaps: the miner's git-streaming and gh calls are only exercised by the real run, not by tests. Its signal rules (mineLines) are unit-tested.

Runner notes (after QA)

QA's verdict was NEEDS_VERIFICATION. The runner checked the dataset rows, the attribution counts and the fixture integrity tests, then fixed QA's findings in a5465f95 and 57a876f6:

  • Precision against the real /qa template. Risk Assessment is no longer a finding section, because every review fills it in. A PARTIALLY_MET row now counts as a finding. Before this fix, a template-shaped verdict scored precision 0.00.
  • Recall over-counting. Recall now counts only identifiers named inside a finding, so a MET row that mentions formatNotes is not a catch.
  • Tests. A new describe block, graders read sequant's real /qa template, pins both fixes. Mutation-checked: re-adding risks? to the section heading rule failed both of its cases, and reverting recall to the whole verdict failed the neutral-mention case. Both restored. The sample verdict still scores 0.60/0.60. The AC-5 mutation, re-run after the fix, still moves recall from 0.60 (3/5) to 0.50 (2/4).
  • Follow-up for the 44% claim: filed as docs: correct the fresh-session second-look figure (44% → 10/27, mostly after the human follow-up) #1309, naming the four docs that cite it. The README has no such claim.

This PR delivers deliverables A to C. Deliverable D (AC-6, AC-7, AC-8) needs a live fixture issue and five sequant run --phases qa runs, which the runner does after merge. So this PR does not close the issue.

Part of #1067

QA verdict: NEEDS_VERIFICATION — acceptance criteria met, pending external verification (e.g. CI or a manual test). See the QA review comment.


🤖 Generated by sequant run

Entire-Checkpoint: 6a8ea55121d5
Entire-Checkpoint: 1fba470f09cd
Entire-Checkpoint: 34617ba0e16a
…sion graders

Entire-Checkpoint: ac0162b1c6d9
…ndings, PARTIALLY_MET counts, recall reads findings only)
…s not read Risk Assessment

Entire-Checkpoint: 88d9f097ad26
@admarble
admarble merged commit 79808fa into main Oct 5, 2026
7 checks passed
@admarble
admarble deleted the feature/1067-investigation-qa-seeded-defect-ground-truth-recons branch October 18, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant