Repository navigation
Description
Epic: field-2026-09-28 (downstream non-Node adoption) Tier: mechanical Graph: tracker #1203
Problem. The status matcher (phase-executor.ts:609) only accepts rows that start with ✅ ❌ | AC-1 | **MET** | … | or | AC-1 | **PENDING** | … | gives acTotal === 0. Then parseQaSummary returns null (:681) before it reads the findings marker (:691). The skill's own examples use ⏳ PENDING and 🔄 Overridden, and the matcher accepts neither.
Field evidence. A qa phase ended ### Verdict: NEEDS_VERIFICATION with a well-formed SEQUANT_QA_GAPS marker carrying 4 findings (2 pause_for_human). Its AC table used **MET** / **PENDING**. The run log recorded summary: null, and the posted verdict comment was only the heading and the verdict marker. The operator had to open the transcript to learn what needed verifying. In the same batch, two other qa phases with the same skill and the same sequant parsed fine. So the skill's status formatting varies from issue to issue, and the parser has to accept every form the skill's own examples use.
AC
- AC-1: An AC table using bold status words with no emoji (
**MET**,**PENDING**,**NOT MET**) parses to the correct acMet/acTotal. Evidence:npx vitest run src/lib/workflow/phase-executor.test.ts - AC-2: A valid SEQUANT_QA_GAPS marker is returned as findings even when no AC row parses. Evidence:
npx vitest run src/lib/workflow/phase-executor.test.ts - AC-3: The skill's documented status forms (
⏳ PENDING,🔄 Overridden) parse. Evidence:npx vitest run src/lib/workflow/phase-executor.property.test.ts - AC-4: The verdict comment for NEEDS_VERIFICATION lists the PENDING ACs and the
pause_for_humanfindings; a findings-only summary (no parsed AC rows) never prints "0/0 met" (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 class). Evidence:npx vitest run src/lib/workflow/batch-executor.test.ts
Fixture: the shape above with generic text (bold statuses, 4-finding marker).
Related: #937, #972, #1095, #1119.
Graph metadata
May touch
src/lib/workflow/phase-executor.tssrc/lib/workflow/batch-executor.ts.claude/skills/qa/SKILL.mdskills/qa/SKILL.mdtemplates/skills/qa/SKILL.md
File overlap (don't run in the same wave; merge one first):
- fix(run): spec runs in the main checkout, which the skills pre-flight never checks — a stale checkout silently degrades spec (#933 regression) #1193:
src/lib/workflow/phase-executor.ts - fix(worktree): TS provisioning runs
npm ci/pip install -qin repos with no manifest to install from — the shell path guards, TS doesn't #1196:.claude/skills/qa/SKILL.md,skills/qa/SKILL.md,templates/skills/qa/SKILL.md - feat(logs): run log records each phase's model and the sequant version #1198:
src/lib/workflow/batch-executor.ts
Activity
admarble commentedon Sep 29, 2026
Context for wave 2 (graph-run #1203) — main now includes #1193 (PR #1211) and #1196 (PR #1212). Both change
src/lib/workflow/phase-executor.tsand the qa skill neighbourhood, so the line refs in this issue have moved. On current main:parseQaSummaryis atphase-executor.ts:608and the earlyif (acTotal === 0) return null;is at:671. Work from the symbols, not the old line numbers.Launch constraints (read before starting) — all phases, including the
qaphase:execandqaphases must NOT run the fullnpm test. Every MCP phase has a hard 30-minute wall, and wave-1 exec phases ran 25–29 min. Run only the AC Evidence commands and the test files next to the code you change, in the foreground withtimeout. CI runs the full suite.failedTestfield in<!-- SEQUANT_MUTATION: … -->must start with the test file path (src/…/x.test.ts > describe > case). A describe name or bare test title there floors /qa §6i to AC_NOT_MET.Refs #1203or "tracker tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203". Never put a closing verb (Fixes/Closes/Resolves) next to tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203 anywhere in the PR body, tables included. The PR should close only this issue.admarble commentedon Sep 29, 2026
Complexity: Standard (4 ACs, 1 directory)
AC Quality Check
extractAcceptanceCriteriareturns 0 items for this issue body — it expects checkbox form (- [ ] AC-N:), and this issue uses plain- AC-N:bullets, so the programmatic linter couldn't run. Inline review of all 4 AC:Evidence:clause naming a concretevitest runcommand, and makes a falsifiable claim. No vague/unmeasurable/open-ended language found.**NOT MET**(space) while the codebase's existing vocabulary usesNOT_MET(underscore) — not a lint defect, but a concrete implementation detail called out in Open Questions below.main): all four cited test files exist today (phase-executor.test.ts,phase-executor.property.test.ts,batch-executor.test.ts) and pass onmainas a whole file — but the specific behaviors AC-1–AC-4 describe are new assertions that don't exist yet (confirmed by readingparseQaSummary/buildQaVerdictCommentsource below: bold-no-emoji,⏳/🔄, and the acTotal===0-with-marker path are all unhandled). The Evidence commands only become meaningful once the implementer adds the new cases to those files — flag this for/exec: running the existing file unmodified proves nothing.Non-Goals:⚠️ Not found in the issue body. Consider adding scope boundaries (e.g. "not fixing verdict-determination logic, not touching SKILL.md wording").
Scope Assessment
src/lib/workflow/)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: Bold status words with no emoji parse correctly
Verification: Unit Test
Scenario: Given a QA output containing
| AC-1 | ... | **MET** | ... |(and**PENDING**,**NOT MET**rows) → WhenparseQaSummaryruns → ThenacTotal/acMetcount them same as the emoji forms.Assumptions:
STATUS_CELL(phase-executor.ts:613-614) must tolerate a**-wrapped cell in addition to the existing optional-emoji prefix;"NOT MET"(space) must resolve to the same bucket as"NOT_MET"(underscore) — see Open Question 1.AC-2: A valid
SEQUANT_QA_GAPSmarker survivesacTotal === 0Verification: Unit Test
Scenario: Given QA output with no parseable AC row but a well-formed
SEQUANT_QA_GAPSmarker (findings array non-empty) → WhenparseQaSummaryruns → Then it returns a summary object (notnull) withfindingspopulated, rather than short-circuiting at theif (acTotal === 0) return null;guard (phase-executor.ts:671).Assumptions:
parseQaGapsMarker(output)must be computed before theacTotal === 0guard so its result (marker present vs. absent) can gate the early return, not just feed the post-guard code path at line 680. A marker with an explicitly empty{"findings":[]}array (still!== null) is a judgment call — see Open Question 2 on whether that alone should also suppressreturn null.AC-3:
⏳ PENDINGand🔄 OverriddenparseVerification: Unit Test (property-based)
Scenario: Given a status cell
⏳ PENDING(U+23F3, no variation selector) or🔄 Overridden(U+1F504) → WhenparseQaSummaryruns → Then the row is counted (not silently skipped).Assumptions:
⏳must be added to theSTATUS_CELLemoji alternation."Overridden"is not in the current keyword set (MET|NOT_MET|PARTIALLY_MET|PARTIAL|PENDING|N/A) and needs a new bucket — see Open Question 3 on whether it counts towardacMet.AC-4: NEEDS_VERIFICATION comment lists PENDING ACs and
pause_for_humanfindings; never prints "0/0 met"Verification: Unit Test
Scenario: Given a
NEEDS_VERIFICATIONverdict with a summary containing PENDING AC rows and findings markedrecommendedAction: "pause_for_human"→ WhenbuildQaVerdictComment(batch-executor.ts:764) runs → Then the comment enumerates which ACs are PENDING and surfaces thepause_for_humanfindings distinctly (not just folded into the genericgapslist); and given a findings-only summary (acTotal === 0, from the AC-2 fix) → Then the comment never prints anAC coverage: 0/0 metline.Assumptions: The
QaSummaryschema (run-log-schema.ts:211-227) has no per-AC id/status tracking today — only aggregateacMet/acTotalcounts. Listing "which ACs are PENDING" requiresparseQaSummaryto additionally return something likependingAcIds: string[](new optional schema field). The existingcountsUsableguard (batch-executor.ts:778-779) already structurally prevents "0/0 met" onceacTotal === 0, so that half of AC-4 needs a regression test more than new logic — confirm it isn't broken by the AC-2 change, don't assume it's free.Implementation Plan
Phase 1: Extend
STATUS_CELLmatching (phase-executor.ts)**(bold, no emoji) in addition to the existing emoji alternation, mirroring howparseQaVerdict's regex already tolerates a run of non-alphanumeric characters between label and value (line 506-509 comment explains the precedent).⏳(U+23F3) to the emoji alternation."NOT MET"(space) and"NOT_MET"(underscore) resolve identically — decide the exact keyword-normalization approach (regex alternation vs..replace(/\s+/g, "_")before matching)."OVERRIDDEN"keyword resolving per Open Question 3's decision (recommend: counts as MET-equivalent).Phase 2: Let a valid marker survive
acTotal === 0(phase-executor.ts)const rawFindings = parseQaGapsMarker(output);above theif (acTotal === 0) return null;guard (currently line 671; marker parse currently at line 680).if (acTotal === 0 && rawFindings === null) return null;.gaps/suggestions/findingsfromrawFindingsas today.Phase 3: Track PENDING AC ids and expose them (run-log-schema.ts, phase-executor.ts)
pendingAcIds: z.array(z.string()).optional()toQaSummarySchema.parseQaSummary's table-row and checklist-item loops, when a row/item resolves toPENDING, record itsAC-Nid (both loops already extract the id fortableIds/listIds— reuse that).pendingAcIdson the summary object (only when non-empty, matching the existing...(findings && {findings})pattern).Phase 4: Render PENDING ACs and
pause_for_humanfindings in the verdict comment (batch-executor.ts)buildQaVerdictComment, whenverdict === "NEEDS_VERIFICATION"andsummary.pendingAcIds?.length, add a line/list naming them.summary.findingsforrecommendedAction === "pause_for_human"and render them in a distinct labeled block (not merged into the generic**Gaps:**list, which already unions marker + prose text).countsUsablesuppression logic (line 778-779) unchanged; add a regression test proving it still holds for a findings-only (acTotal === 0) summary underNEEDS_VERIFICATION.Phase 5: Tests
phase-executor.test.ts(describe("parseQaSummary", …)at line 258): add cases for bold-no-emoji (AC-1), acTotal-0-with-marker (AC-2).phase-executor.property.test.ts(describe("parseQaSummary (property)", …)at line 78): add⏳/🔄 Overriddencases (AC-3).batch-executor.test.ts: add cases for PENDING-AC listing,pause_for_humansurfacing, and the 0/0-met regression (AC-4).No dependencies between phases 1-2 (same function, sequential edits) and phase 3-4 (schema + consumer) — do 1-2 first since 3-4 build on the same function's output shape.
Design Review
phase-executor.ts(parseQaSummary) andbatch-executor.ts(buildQaVerdictComment) — the existing owners of QA-output parsing and verdict-comment rendering. No new module needed.pendingAcIds) rather than a general per-AC status map, since AC-4 only asks to list PENDING ids, not track full per-AC history."Overridden"should count towardacMetat all (Open Question 3) — an incorrect default here could silently flip a verdict fromNEEDS_VERIFICATIONtoREADY_FOR_MERGEon a table that was actually flagging a human-approved exception, not a clean pass.Feature Quality Planning
All standard checks pass. Notable items:
pendingAcIdsoptional field) is additive/backward-compatible — no migration needed for existing.sequant/logsrecords.Open Questions
"NOT MET"(space) need to parse identically to"NOT_MET"(underscore)? AC-1's own example text uses the space form. Recommendation: yes, normalize before matching. Impact if wrong: AC-1's own fixture fails to parse, since the issue's chosen example isn't the underscore form the rest of the codebase uses.{"findings":[]}array (still non-null) also suppressreturn nullwhenacTotal === 0? Recommendation: yes — treat "valid marker present" (parses, regardless of array length) as the signal, not "has findings", since the SKILL.md explicitly instructs emitting{"findings":[]}on a clean pass and that's the more consistent contract. Impact if wrong: a clean-pass QA turn with zero AC rows and zero findings still returnsnull, and downstream/loop/logging can't distinguish "marker ran, found nothing" from "marker never ran."🔄 Overriddencount towardacMet? SKILL.md:3120 describes it as "An approved Section 11a override is documented" — an accepted resolution, not a failure. Recommendation: count it as MET-equivalent. Impact if wrong: a Manual Test row using the skill's own documentedOverriddenstatus could push a verdict towardNEEDS_VERIFICATION/AC_NOT_METwhen the override was already human-approved, or the reverse (falselyREADY_FOR_MERGE) if treated as unconditionally MET without checking that it really was approved — either way, worth a one-line confirmation from the issue author before/execlocks it in.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning:
buglabel only, SCOPE_OK, single-directory mechanical fix with concrete Evidence commands per AC — targeted tests written directly in/execare sufficient; testgen adds ceremony without benefit here. Not UI-facing, not security-sensitive, no CI-dependent AC.Label Review
Current: bug, qa, graph-2026-09-field
Recommended: bug, qa, graph-2026-09-field, planned
Reason: No complexity/UI/security label warranted; scope and AC support the existing labels as-is.
Quality Loop: Won't auto-enable — SCOPE_OK, no complex/refactor/breaking label, no yellow/red scope signal.
→
gh issue edit 1194 --add-label plannedDependencies / Conflict Risk
src/lib/workflow/batch-executor.ts. No worktree is currently active for feat(logs): run log records each phase's model and the sequant version #1198, so there's no live collision today, but checkgh issue view 1198 --json stateagain before merging this PR — if feat(logs): run log records each phase's model and the sequant version #1198 lands first, re-diffbuildQaVerdictCommentfor conflicts before this PR merges.npm ci/pip install -qin repos with no manifest to install from — the shell path guards, TS doesn't #1196 (qa SKILL.md, all 3 mirrored dirs) are both already merged (PR fix(#1193): run checks the main checkout spec runs in; spec without a SEQUANT_SPEC marker fails #1211/fix(#1196): worktree provisioning, pip install, merge-check skip non-Node repos #1212) per the issue's own wave-2 context comment — line numbers in this plan were read fresh off currentmain, not the stale issue text./Users/tony/Projects/worktrees/feature/1194-fix-qa-parseqasummary-returns-null-when-ac-statusewith no commits yet (HEAD ==origin/main) — clean to build on.--- DRAFT GITHUB ISSUE COMMENT (PLAN) ---
Spec: Implementation Plan
Complexity: Standard (4 ACs, 1 directory) · Scope: ✅ SCOPE_OK · Workflow: exec → qa (quality loop disabled)
AC Checklist
**MET**,**PENDING**,**NOT MET**) parse to correctacMet/acTotal. Evidence:npx vitest run src/lib/workflow/phase-executor.test.tsSEQUANT_QA_GAPSmarker returns asfindingseven whenacTotal === 0. Evidence:npx vitest run src/lib/workflow/phase-executor.test.ts⏳ PENDINGand🔄 Overriddenparse. Evidence:npx vitest run src/lib/workflow/phase-executor.property.test.tspause_for_humanfindings; findings-only summary never prints "0/0 met". Evidence:npx vitest run src/lib/workflow/batch-executor.test.tsImplementation Plan (5 phases)
STATUS_CELL(phase-executor.ts:613-614): accept**-bold prefix, add⏳(U+23F3), normalizeNOT MET↔NOT_MET, addOVERRIDDENkeyword.parseQaGapsMarkerabove theacTotal === 0guard (line 671) so a valid marker (even{"findings":[]}) prevents the earlyreturn null.pendingAcIds: z.array(z.string()).optional()toQaSummarySchema(run-log-schema.ts:211); populate it from the existing table/checklist id-extraction loops.buildQaVerdictComment(batch-executor.ts:764): listpendingAcIdsand surfacerecommendedAction === "pause_for_human"findings distinctly when verdict isNEEDS_VERIFICATION; regression-test the existing 0/0-met suppression against the new acTotal-0-with-marker case from step 2.Key Decisions Needing Confirmation
"NOT MET"(space) normalizes to the same bucket as"NOT_MET"— recommended, since AC-1's own fixture uses the space form.{"findings":[]}(empty but present) also counts as "marker found" for the acTotal-0 guard — recommended, matches the skill's clean-pass convention.🔄 Overriddencounts as MET-equivalent (an approved override per SKILL.md §11a is a resolution, not a failure) — recommended, but flagging for explicit sign-off since a wrong default here can flip a verdict silently.Conflict Risk
#1198 (open) also touches
batch-executor.tsper this issue's "May touch" list — no active worktree conflict today; re-check before this PR merges.admarble commentedon Sep 29, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 4/4 met
Gaps:
fix(#1194): table status cell must hold the keyword alone; list pause…
admarble commentedon Sep 29, 2026
Runner follow-up (graph-run #1203) — QA verdict
AC_MET_BUT_NOT_A_PLUShid two defects that would have shipped. Both fixed on PR #1214 @f50de5f9:| AC-1 | desc | ✅ MET | Not met in first pass; fixed |parsed 0/1. A table status cell must now hold the keyword alone, bold, or followed by a separator; the checklist fallback is unchanged.pause_for_humanfinding twice (Gaps + Needs human review). Now listed once. The new test builds the summary withparseQaSummaryinstead of hand-writinggaps.Closes #1194;closingIssuesReferences= [1194].Executed:
npx vitest run src/lib/workflow/phase-executor.test.ts src/lib/workflow/phase-executor.property.test.ts src/lib/workflow/batch-executor.test.ts→ 301/301. Both fixes mutation-verified (markers in the PR body).admarble commentedon Sep 29, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 4/4 met
Gaps:
fix(#1194): count an AC repeated across tables once; real characters …
admarble commentedon Sep 29, 2026
Runner follow-up, round 2 (graph-run #1203). The second QA pass returned
AC_MET_BUT_NOT_A_PLUS. Fixed on PR #1214 @2e5111d7:\u2014escapes in comments are replaced with the real characters.Documented, not fixed: a notes cell written as
Not met — fixedstill reads as the status, because the em dash stays a separator for✅ MET — verified. Mutation-verified. The three test files pass 302/302, and CItest= success.fix(#1194): parseQaSummary parses bold/emoji-less status words and su…