Repository navigation
feat(#1525): one producer for per-AC status — parse the QA phase output, write the state record through updateACStatus, carry acs[] in the run log; unknown is a status - #1619
Merged
admarble merged 6 commits intoOct 28, 2026
Conversation
…ite the record through updateACStatus, carry acs[] in the run log unknown is a status. Entire-Checkpoint: 598e67315a71
… does not declare — warn with the count instead of discarding the producer's ignored[] QA 1 found recordLoopPhaseOutcome discarding the ignored array the producer returns, so "ignored and counted" (AC-2) was true inside the producer and invisible outside it. The hook now destructures ignored and warns through env.warn (not log, which is a no-op in parallel mode, #1342; not noteSuppressed, which is the dropped-error count of #1504 and an undeclared id is not an error). No test is added for the hook: AC-6 forbids test lines beyond ac-status.test.ts and ac-status.integration.test.ts, the hook lives in batch-executor.ts, and the integration case already pins ignored equal to ["AC-9"]. Entire-Checkpoint: a23fe3b11460
…-one-producer-for-per-ac-status-parse-the-
…ES label in expected.json still differs from the pinned parse
QA 3 edited 922 AC-3 from met to unknown in expected.json and the suite stayed green: the overlay replaced the label, so a pinned miss "disappearing" on the fixture side was invisible. The case now asserts, for each pinned id, that expected.json has a label and that it differs from the pinned parse reading. Mutation-verified: the same edit now fails exactly the 922 case ("label equals the pinned parse"); restored, 17 of 17 pass.
Entire-Checkpoint: 52fddde906a7
…-one-producer-for-per-ac-status-parse-the-
… parse reading, so any edit to a pinned label fails its fixture case QA 4 edited 922 AC-3 from met to not_met and the suite stayed green: 36cf2a0 only checked that the label differs from the parse. Each entry now carries { label, reads }; the case asserts the label equals the pinned label and the parse equals the pinned reading. Mutation-verified: 922 AC-3 met to not_met fails exactly the 922 case ("pinned label moved"); 943 AC-3 not_met to met (the recorded marker) still fails exactly the 943 case; restored each time, 26 of 26 across ac-status.test.ts and ac-status-parse-coverage.test.ts. Entire-Checkpoint: afd4b79069f4
admarble
deleted the
feature/1525-feat-run-one-producer-for-per-ac-status-parse-the-
branch
October 28, 2026 13:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I implemented #1525 and pushed it to
feature/1525-feat-run-one-producer-for-per-ac-status-parse-the-(commit b6a47f6). This run is orchestrated, so I opened no PR: the orchestrator opens it from this summary.After every QA phase,
sequant runnow reads a status for each AC from the QA output. It writes each status tostate.jsonthroughStateManager.updateACStatus, which had no caller before. It also puts the same list in the run log's issue entry as an optionalacs[]. An AC the parser cannot read is writtenunknown.Two departures from the AC text, which QA should check:
KNOWN_MISSEStable and checks every other label exactly. If a miss appears or goes away, that fixture's case fails. The owner should confirm this reading of AC-1.chmod 0444state file". As the spec found, setting only the file read-only does not make the write fail, because the write renames a temp file over it. The test also sets the directory to 0555, the same fault feat(run): a dropped error leaves a trace — noteSuppressed() counts into the run log, batch-executor's 25 silent catches converted #1504's test uses. It is skipped when running as root.Decisions the spec left to the owner. No owner answer was available in this run, so I followed the spec's recommendations:
gh issue view, on QA phases only). Without this, most runs would write nothing.SEQUANT_ACmarker. That is the owner's call.Pre-PR AC Verification
npx vitest run src/lib/workflow/ac-status.test.ts -t "fixture"→ 13 passed, 0 failed (12 fixtures, plus a case where an AC id absent from the comment yieldsunknown)npx vitest run src/lib/workflow/ac-status.integration.test.ts→ 6 passed. RealStateManageron a temp dir with no fs mock. Cases: statuses and notes are written; an extra id is ignored and counted; a read-only dir incrementssuppressed.byScope.state; a missing record is created, then written; an untracked issue is a no-op; a QA phase run throughrunIssueWithLoggingfills bothstate.jsonand the run log'sacs[]1(the call is inac-status.ts)grep -c 'acs'returns1;version: z.literal(1)count is10plugin/,.claude/skills/ortemplates/skills/; the only new test files are the two namedMutation-verified: AC-1 — flipped one label in
expected.json; only the 943 fixture case failed (1 failed, 12 passed); restored, and 17 of 17 pass. The marker above parses withparseMutationMarkers.Files changed
src/lib/workflow/ac-status.ts(new): the parser, moved fromscripts/qa/, plusparseAcRows,leadingIdsInBodyandrecordAcStatuses.notes. The declaredevidenceclause is left as it is.noteSuppressed("state", …).batch-executor.ts: one guarded call (phase === "qa" && result.output), placed before the phase result is logged.state-schema.ts:unknownadded toACStatusSchema; an optionalunknowncount in the summary.run-log-schema.tsandlog-writer.ts: an optionalacs[]onIssueLogSchemaand asetAcStatusessetFixes #1525
Follow-ups
🤖 Generated by
sequant runRunner notes (appended after the last QA pass)
Final head:
c6381c7eb(b6a47f6 exec; 87635f3 runner fix; 80ba97d merge oforigin/mainat ec15551 and ba5510b; 36cf2a0 and c6381c7 test tightening; a3f5722 merge oforigin/mainat 4b8da6c, docs only). The summary above is exec's text at b6a47f6 and is cut at the 4,000-character limit (#1582); the items it lists as open were decided by the owner on 2026-10-28:expected.jsonexcept the three labels investigation(qa): per-AC status parse coverage over ≥ 60 QA verdict comments, with a hand-labelled fixture — decides parser-now or marker-first (RD-1) #1524's test pins as known parser misses (922 AC-3, 1265 AC-2 and AC-7)". The parser is unchanged; feat(qa): a SEQUANT_AC marker in the QA skill — one machine-anchored line per criterion, read first by the #1525 producer, prose parse as fallback; retires the 80% parse (PROJECT-DISCUSSION §10) #1622 (theSEQUANT_ACmarker, PROJECT-DISCUSSION §10) retires the prose parse after the freeze lift.chmod 0555state directory (the file-only chmod does not fail the rename-over write) and the register-first case (OQ-2 ratified: an issue with no AC record gets one from its body before the write).grep -c 'acs: z'→1.warnnotlog, fix(run): parallel mode drops per-issue warnings, not just progress — spec-parse failure, PR-after-exec failure and checkpoint-commit failure are silent on every MCP run #1342). No hook test: AC-6 limits test lines to the twoac-statusfiles, and the integration case pinsignoredequal to["AC-9"].unknowninexpected.jsonand the suite stayed green: the overlay replaced the label. 36cf2a0 made the case assert the label differs from the parse; QA 4 showed met → not_met still passed, so c6381c7 pins both sides ({ label, reads }) and asserts the label equals the pinned label. Both edits now fail exactly the 922 case (mutation-verified, restored). TheAcStatusEntryunused-export note is knip-advisory and the type is internal; left as is.sequant readyand--ready-gatedo not call the producer; filed as fix(ready): per-AC status is not recorded on the ready gate's QA phases — sequant ready and --ready-gate skip the #1525 producer, so the AC record goes stale after the gate #1621, blocked by feat(run): one producer for per-AC status — parse the QA phase output, write the state record through updateACStatus, carry acs[] in the run log; unknown is a status #1525. This PR coverssequant run's loop only.Gates on
c6381c7eb: AC-1 13 passed (4 skipped are the parser-coverage script's own cases), AC-2 6 passed, AC-31, AC-41and1, AC-50, AC-60; freeze grep0; no session links in the diff or the commits; mutation for AC-1 reproduced on this head twice (943 AC-3 flipped → exactly the 943 case failed; 922 AC-3 label edited → exactly the 922 case failed on the label check; restored each time, 13 pass); branch 0 behindmain; CItestandcanarygreen on 36cf2a0 and a3f5722, green on c6381c7. QA passes: QA 1 AC_MET_BUT_NOT_A_PLUS 6/6 at b6a47f6; QA 2 NEEDS_VERIFICATION 6/6 at 87635f3 (CI had not run: GitHub marked the PR conflicting until the run mergedorigin/main); QA 3 AC_MET_BUT_NOT_A_PLUS 6/6 at 80ba97d (the pinned-label gap above); QA 4 AC_MET_BUT_NOT_A_PLUS 6/6 at a3f5722 (the label pin and the OQ-3 state, both resolved above); QA 5 READY_FOR_MERGE 6/6 at c6381c7 (its one note, older CLIs and the 2.20.0 MCP pin reject astate.jsoncarryingunknownuntil a release ships, is in the CHANGELOG and inherent to "unknown is a status").