Skip to content

feat(#1313): investigation(qa): recalibrate the #1067 seeded-defect grader before #1068 (identifier choice, precision definition, heading noise) - #1318

Merged
admarble merged 4 commits into
mainfrom
feature/1313-investigation-qa-recalibrate-the-1067-seeded-defec
Oct 5, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1313-investigation-qa-recalibrate-the-1067-seeded-defec

Conversation

@admarble

@admarble admarble commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The recalibrated grader now agrees with the human label on all 25 cases when re-run on the five stored #1067 /qa reviews (was 10 of 25). Recall is 1.00 in every run. This is in-sample: I picked the aliases while reading those same five reviews. #1068 should grade new runs.

I committed and pushed the branch (eb030791). I opened no PR, as the orchestrator does that. Build, lint and npx vitest run scripts/analytics pass (50 tests). I did not run the full npm test; CI runs it.

What changed

  • Defect identifiers (AC-1):
    • ground-truth.json now gives each defect a list of identifiers; any one naming it counts as caught. An old single id still loads.
    • The two helper names are gone. The error defect uses empty catch, empty `catch` and catch {; the format defect uses "markdown" and export.ts:25; the mock defect uses vi.mock and export.test.ts.
    • A bare catch was dropped because it also matched "no try/catch" in an unrelated serve-handler finding.
    • Matching is now case-insensitive.
  • Precision is now "planted share" (AC-2): it dedupes restatements of one defect, and real non-planted findings go into an unmatched list instead of counting as mistakes. The CLI prints both.
  • Template noise (AC-3): the ## QA Review for Issue #N title no longer opens an issues section, and ❌ only counts inside a table whose first header cell starts with AC.
  • Fixture and docs: the five reviews are committed as docs/investigations/qa-seeded-fixture/reviews/run-N.md, with no machine paths or private repo names. The dataset doc and README describe the new metric and re-grade results. CHANGELOG.md: N/A (internal investigation tooling).

AC verification

AC Status Evidence
AC-1 ✅ Disagreement is 0 of 25, against a limit of ≤ 2. A test asserts the ≤ 2 bound.
AC-2 ✅ The AC-2 (#1313) tests in scripts/analytics/qa-seeded-grade.test.ts, plus the metric definition in the dataset doc.
AC-3 ✅ The AC-3 (#1313) tests use a template-shaped verdict.

Pre-PR confidence check

  • Weakest part: the aliases fit the five reviews I tuned them on.
  • Coverage gaps: none. The grader and its test file are both in the diff.

Mutation records

Each mutation failed the intended test and was restored. Mutations 2 and 3 failed more than one test; the marker lists the intended one. The markers have not been run through parseMutationMarkers.

Runner note

This body was written by the runner from exec's final ## Summary (run 5780a94a). The run's own body was the placeholder, because of the #1311 cause: the driver joins assistant text blocks with no separator, so the ## Summary heading was not at the start of a line. The body has no sequant run trailer, so the post-QA update leaves it alone.

QA (run 6ae838c3)

AC_MET_BUT_NOT_A_PLUS, 3/3 ACs met. QA's probes showed the aliases over-count on made-up findings: export.test.ts, export.ts:25, empty catch used outside export.ts, and case-folded "Markdown". The integrity rule doesn't constrain the extra aliases either. None of these occurs in the five real reviews. The runner wrote the risk into the dataset doc, with a requirement that #1068 check each grader catch by hand (a361b72d).

Fixes #1313

🤖 Generated with Claude Code

@admarble
admarble merged commit 7740d4e into main Oct 5, 2026
7 checks passed
@admarble
admarble deleted the feature/1313-investigation-qa-recalibrate-the-1067-seeded-defec branch October 5, 2026 14:17
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.

investigation(qa): recalibrate the #1067 seeded-defect grader before #1068 (identifier choice, precision definition, heading noise)

1 participant