You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(qa): the posted verdict comment publishes a miscounted AC coverage — "0/1 met" on an 8-AC issue under an AC_MET verdict #1073
The QA verdict comment posted to an issue publishes an AC count that contradicts its own verdict.
On #1059 — 8 ACs, all met — the posted comment reads:
## QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 0/1 met
The run log agrees, so this is a parse result and not a rendering slip:
"acMet": 0,
"acTotal": 1
Cause
parseQaSummary (src/lib/workflow/phase-executor.ts:595) counts only markdown table rows matching:
/^\s*\|\s*\*?\*?AC-\d+/
and then scans right-to-left for a MET|NOT_MET|PARTIALLY_MET|PARTIAL|PENDING|N/A cell. Any AC the phase reported in another shape — a checklist, a prose paragraph, a table whose first cell is not AC-N — is invisible to it. Round 3 gave it exactly one parseable row, which was not MET, hence 0/1.
buildQaVerdictComment (batch-executor.ts:772) then prints that pair unconditionally whenever a summary exists. There is no consistency check against the verdict, so AC_MET_BUT_NOT_A_PLUS and 0/1 met can ship in the same comment.
Why it matters
Per #1070 this comment is the only QA output that reaches the issue, and only for passing verdicts. Publishing a confidently wrong number is worse than publishing nothing: a reader who trusts it sees a merge-ready PR with zero ACs met, and a reader who doesn't has no reason to trust the gaps list underneath it either.
Also in the same payload
summary.gaps contained each finding twice on that run — once as a one-line description and once as the full paragraph — so the comment lists ten bullets for seven findings. Same parse path, lower stakes.
Suggested fix
Two independent hardenings:
Widen the AC row match (checklist form - [x] **AC-1**, at minimum), or take the counts from the structured SEQUANT_QA_GAPS payload the phase already emits instead of re-deriving them from prose.
Refuse to publish a count that contradicts the verdict: acMet === 0 under an AC_MET* verdict means the parse failed, so omit the line rather than assert it.
Evidence: .sequant/logs/run-2026-09-16T01-49-04-bed4118c-*.json (rotates at 100 files), and the comment itself on #1059 at 2026-09-16T01:58:42Z.
Absorbed by #1095 (graph guard-2026-09, wave 1): its AC-2 lands the checklist-shape count (- [x] **AC-1**: …) and AC-3 the consistency rule (no acMet === 0 count line under an AC_MET* verdict — the line is omitted). #1095's PR carries Closes #1073. No separate fix. Plan: docs/internal/graph-2026-09-guard/PLAN.md D-10.
Activity
admarble commentedon Sep 20, 2026
Absorbed by #1095 (graph
guard-2026-09, wave 1): its AC-2 lands the checklist-shape count (- [x] **AC-1**: …) and AC-3 the consistency rule (noacMet === 0count line under anAC_MET*verdict — the line is omitted). #1095's PR carriesCloses #1073. No separate fix. Plan:docs/internal/graph-2026-09-guard/PLAN.mdD-10.