Repository navigation
Description
Epic: graph-2026-10-review-surface Tier: mechanical Execution: sequant_run Blocked by: #1525, #1527, #1505
- 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
- Blocked by: feat(cli): cost per run where a user looks — one line in the run summary, cost in the run log and sequant logs, from the metrics record, labelled "SDK estimate" #1527
- Blocked by: chore(lib): convert the remaining ~94 empty catches to noteSuppressed, forbid empty catch bodies by lint, show the count in sequant logs #1505
Problem
The run summary prints phase names and durations; sequant status prints Issue, Title, Status, Phase; sequant logs prints phases per issue. None shows a criterion. The cold reader said the per-criterion verdict is the first thing they want to see and that "a terminal spinner as the first image loses me". With RS-02's record in place, this node renders it in the three places a human looks after a run, from the record only (I-2), replacing the phase line in the per-issue summary rather than adding a flag (RD-E, I-4).
Target shape, one line per AC, in the summary:
#943 3 of 5 met
AC-1 met npx vitest run src/lib/x.test.ts
AC-2 met src/lib/y.ts:120
AC-3 pending browser check
AC-4 pending browser check
AC-5 unknown
Acceptance Criteria
- AC-1: The terminal summary prints one line per AC from the record. Evidence:
npx vitest run src/lib/cli-ui/run-renderer.acs.test.ts→≥ 4 passed, 0 failed(anIssueSummarywithacs: [{id, status, evidence}]rendersN of M metand one line per AC in id order;unknownrenders as the word; an issue withoutacsrenders the previous phase line; nothing in the renderer reads prose) - AC-2:
sequant statushas anACscolumn. Evidence:npx vitest run src/commands/status.acs.test.ts→≥ 2 passed, 0 failed(a tracked issue with 3 of 5 met shows3/5; one with no record shows—) - AC-3:
sequant logs <run>prints the block. Evidence:npx vitest run src/commands/logs.acs.test.ts→≥ 2 passed, 0 failed(a run-log fixture withacs[]prints the lines; one without prints nothing extra) - AC-3 is classified as a gate test by
isGateTestEvidence; the PR body carries itsSEQUANT_MUTATIONrecord (removeacs[]from the run-log fixture → the "prints the lines" case fails; restore). - AC-4: The docs describe the column and the lines. Evidence:
grep -c 'ACs' docs/reference/state-command.md→≥ 1andgrep -cE 'AC-1 met' docs/reference/run-command.md→≥ 1 - AC-5: No renderer imports the parser (I-2; constraint: holds today, binding on every later PR). Evidence:
grep -rl 'ac-status' src/lib/cli-ui src/commands | grep -v test | wc -l | tr -d ' '→0 - AC-6: No skill directory is touched. Evidence:
git diff --name-only $(git merge-base origin/main HEAD)..HEAD | grep -cE '^(plugin/|\.claude/skills/|templates/skills/)'→0(constraint)
Prior fixes / producers
- Producers of the summary:
renderSummaryimplementations insrc/lib/cli-ui/(feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624, fix(cli): #624's duplicate-header fix doesn't catch real log-update/scrollback bug (v2.3.0 regression confirmed) #647, feat(cli): replace start/complete event journal with in-place phase-matrix #672 fixed duplicate headers and seeded cells). Three prior fixes on the renderer; the AC states the outcome (one line per AC on every renderer implementation), not a site. src/commands/logs.tsis refactor(logs): one run-log module — parseLogFile, listLogFiles, resolveLogDir, formatDuration defined once #1471's and chore(lib): convert the remaining ~94 empty catches to noteSuppressed, forbid empty catch bodies by lint, show the count in sequant logs #1505's file; this node lands after both (Blocked-by).
May touch
src/lib/cli-ui/run-renderer-types.ts (optional acs on IssueSummary), the renderer implementations, src/commands/run-display.ts and toIssueSummary in batch-executor.ts (after #1507, via RS-02's edge), src/commands/status.ts, src/commands/logs.ts (one block, after #1505's), their tests, docs/reference/run-command.md and state-command.md (one paragraph each), CHANGELOG.
Non-Goals
- Any new flag (I-4).
- The progress mod and
/qachat output (outside the repo; frozen). - Any edit under
plugin/,.claude/skills/,templates/skills/(I-1).
Done when
The same AC record is visible, identically, in the run summary, status and logs.
Activity