Skip to content

fix(#1119): parseQaVerdict records the last verdict heading - #1134

Merged
admarble merged 4 commits into
mainfrom
feature/1119-bug-qa-parseqaverdict-records-the-first-verdict-me
Sep 21, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1119-bug-qa-parseqaverdict-records-the-first-verdict-me

Conversation

@admarble

@admarble admarble commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • parseQaVerdict now returns the last line-anchored ### Verdict: / **Verdict:** match, falling back to the last mention of any form, instead of the first mention in the transcript.
  • Run 6ee4ad05 qa stdout tail committed as src/lib/workflow/__fixtures__/qa-stdout-tail-1070-run-6ee4ad05.txt; property test added in phase-executor.property.test.ts.

Acceptance criteria

  • AC-1: met. last verdict heading case in phase-executor.test.ts is green.
  • AC-2: met. run 6ee4ad05 fixture cases are green. The prefixed case is the discriminating one; the bare tail already parsed READY_FOR_MERGE on main.
  • AC-3: partial. npm run build and npm run lint pass, and the three named files pass (329 tests). Full npm test not run in the worktree per the runner context; the runner runs it.

Hook verdicts changed: none (no pre-tool.sh change).

Mutation-verified: first-match restored (matches[0]) failed 4 tests, then restored.

Closes #1119

🤖 Generated with Claude Code

Runner verification (post-release, 2026-09-21)

  • qa transcript verdict: AC_MET_BUT_NOT_A_PLUS; the run recorded AC_NOT_MET — the first-match artifact this PR fixes, produced by the still-installed 2.16.0 parser. Treated per the transcript.
  • The one real gap folded in (0d3fab8a): isHeadingForm sliced a fixed 12-character window, so ### Verdict: with extra spaces degraded to the bare-mention fallback; the slice now spans the whole match. New case mutation-verified (window restored → exactly that case fails).
  • Runner ran AC-1/AC-2 (5 cases, incl. the verbatim run-6ee4ad05 tail) and the property file (187 total); marker classifier-valid; qa's 38-sample differential over recorded transcripts: 36 identical, 2 corrected.
  • Full npm test from a clean shell on 0d3fab8a: 336 files, 8337 passed, 1 expected fail, 3 skipped, 506 s.

@admarble
admarble merged commit 0cb5713 into main Sep 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant