Repository navigation
Description
Context
PR #620 (closes #618) shipped the unified run renderer with two-zone live grid + events log. A real-world transcript from npx sequant run 608 604 -q on 2026-05-10 surfaced four issues not covered by the implemented ACs.
The concurrent-session cause of #604's exec failure is filed separately as a cross-session lock issue. Everything below is about how the renderer presented that failure.
Motivating transcript (fixture)
This transcript is a required test fixture. Any fix must reproduce against it.
(base) tony@Tambras-MacBook-Air sequant % npx sequant run 608 604 -q
SEQUANT WORKFLOW
Stack generic
Phases auto-detect from labels
...
SEQUANT WORKFLOW · 2 issues · 0s
#608 · queued
▸ #608 spec
▸ #604 spec
✔ #604 spec 49s
▸ #604 exec
✔ #608 spec 1m 1s
▸ #608 exec
SEQUANT WORKFLOW · 2 issues · 3m 15s
✔ #608 exec 2m 21s
▸ #608 qa
✘ #604 exec exec produced no changes (no commits, no uncommitted work)
▸ #604 loop
✔ #604 loop 26s
▸ #604 exec
SEQUANT WORKFLOW · 2 issues · 6m 44s
✘ #604 exec exec produced no changes (no commits, no uncommitted work)
▸ #604 loop
✔ #608 qa 4m 35s
SEQUANT WORKFLOW · 2 issues · 8m 9s
✔ #604 loop 52s
▸ #604 exec
SEQUANT WORKFLOW · 2 issues · 10m 38s
✘ #604 excommitted work)
→ #608 PR #623 https://github.com/sequant-io/sequant/pull/623
SUMMARY · 2 issues · 19m 7s · 1 passed · 1 failed
┌──────────┬────────────┬─────...────┐
│ Issue │ Result │ Detail │ Total │
├──────────┼────────────┼─────...────┤
│ #608 │ ✔ passed │ spec → exec → qa · PR #623 │ 7m 58s │
├───────�ing:
sequant merge --check
Items
1. Cap live-zone height so log-update never deals with frame > terminal rows
Render paths affected: TTYRenderer only.
SEQUANT WORKFLOW · 2 issues · Xs appears 5× in the transcript instead of redrawing once. When the live-zone frame (header + N issue rows + events log + summary preview) exceeds terminal rows, log-update loses track of the original cursor row and appends a fresh frame instead of overwriting.
Fix: extend the existing applyRowCap machinery (already added for AC-28 deferral) to enforce a hard ceiling on the live zone, e.g. header + min(active issues, 5) + rollup. Excess issues spill to scrollback via the events log; the live zone stays bounded.
AC:
- Live zone height ≤
max(8, process.stdout.rows - 5)regardless of active issue count. - Test: mock
rows = 20with 5 registered issues across 10 events; assert captured output contains exactly oneSEQUANT WORKFLOW ·line per state, no duplicate frames. - Test: motivating transcript scenario (2 issues, mixed pass/fail, 3-attempt exec loop) produces ≤ 1 header per state in captured TTY output.
2. Diagnose then fix bottom-of-output corruption
Render paths affected: TTYRenderer (summary path) + NonTTYRenderer (table width).
The ├───────�ing: and overlapping sequant merge --check at the end of the transcript indicate one or both of:
- Teardown race:
displaySummary(src/commands/run-display.ts:148-167) emitsconsole.logfor the reflection block and merge-check tip afterrenderer.renderSummary(), without confirminglog-updatehas flushed. - Width overflow:
renderSummaryBlockmay not clamp columns toprocess.stdout.columnsconsistently across TTY and non-TTY paths (NonTTYRenderer.renderSummaryhardcodesNARROW_TERMINAL_THRESHOLDat line 349; TTY path is unclear).
These may be one bug or two. AC starts with diagnosis, then fix.
AC:
- Reproduce the corruption deterministically (2-issue mixed-result run, mocked column width 70 and 100, mocked terminal rows 24 and 50). Document which conditions trigger it.
- Based on repro: if teardown race,
TTYRenderer.renderSummarycallslogUpdate.done()(or equivalent flush) before returning, so subsequentconsole.logfromdisplaySummarylands cleanly. - Based on repro: if width overflow,
renderSummaryBlockusesprocess.stdout.columns ?? 100capped at 110 across both render paths. - Test: motivating-transcript scenario produces captured stdout containing no
\x1b[K, no partial box chars, no U+FFFD, no overlapping content. - Test matrix: {1 issue, 2-issue mixed, 3+ issues} × {columns 70, 100, 140} × {rows 24, 50}.
3. Exec attempt counter
Render paths affected: TTYRenderer events log + live zone, NonTTYRenderer events log. Ink-based --experimental-tui deferred to separate issue.
AC-22 of #618 added qa loop N/3 in the header (test at run-renderer.test.ts:517). For exec retries no counter surfaces. In the transcript, ▸ #604 loop and ▸ #604 exec cycle three times with no (attempt N/M) suffix.
Terminology: loop remains its own phase. The counter applies to the retried exec attempts that the loop drives.
AC:
-
TTYRendererevents log shows(attempt N/M)on the second exec onwards (first attempt unannotated). -
NonTTYRendererevent lines emit the same(attempt N/M)suffix — reuse the existingloopSuffixmechanism (line 307-310). -
TTYRendererlive-zone status cell showsloop N/M · last fail: <short reason>while issue is in retry. - Test: simulate exec → loop → exec failure twice; assert
(attempt 2/3)and(attempt 3/3)appear in event lines in both render paths.
4. Collapse repeated identical failures
Render paths affected: TTYRenderer events log, NonTTYRenderer events log.
Same failure string emitted 3× consecutively. After first, fold to ✘ #604 exec (attempt 2/3, same failure as attempt 1).
AC:
- When
failureSignature(error)(first 80 chars or normalized hash) matches previous attempt's, abbreviate. - Full text emitted on first occurrence per signature AND on the final attempt before giving up (preserves divergence visibility).
- Test: 3 identical failures + 1 divergent → captured output shows full text on attempt 1, abbreviated on attempt 2 (only if signature matches), full text on attempt 3 (last before max-iter).
Out of scope
- Sub-phase visibility inside
loop(analyzing → patching → retrying) — separate feature issue. --experimental-tui(Ink) parity — separate issue tracking the Ink renderer.- Cross-session issue lock — filed separately.
-qsemantics clarification — filed separately as docs/policy issue.- AC-23 (
Phase: detecting…) and AC-26 (stalled-phase warning) deferred from feat(cli): unified run renderer — two-zone live grid + events #618 — file separately if still desired. - SIGWINCH during summary teardown — not observed in transcript; out of scope unless repro surfaces.
Activity
admarble commentedon May 11, 2026
→ PROCEED — Clear scope, detailed ACs across 4 sub-features; ui + enhancement labels add test + testgen phases.
Workflow: spec → testgen → exec → test → qa
Command:
npx sequant run 624 -q --testgen
⚠ Large scope — 4 sub-features (frame stability, summary teardown, attempt counter, failure dedup) across TTY + NonTTY renderers in one issue.
⚠ Touches live-zone layout — coordinate with #543 (nowLine enrichment) or expect #543 to rebase after this lands.
admarble commentedon May 11, 2026
Plan Review — #624
Complexity: Complex (15 ACs, 2 directories)
Verdict from scope check: SCOPE_SPLIT_RECOMMENDED, but proceeding as one issue — all 4 items share one state machine + one file. Splitting would create artificial seams (Item 3's
attemptfield is read by Item 4's dedup signature; Item 1's row-cap math interacts with Item 3's status-cell content).AC quality notes
if teardown race,if width overflow). Plan commits to fixing whichever the repro proves; the other drops to "verified non-issue".Sibling-site finding
Retry/loop suffix is implemented at 3 sites in
run-renderer.ts:(loop N)(loop N/3)loop N/3Item 3 must touch all three. Plan extracts a shared
formatRetrySuffix(phase, kind)helper to prevent drift.Implementation plan
Phase 1 — Test harness (foundational, unblocks Items 1-2):
log-updatestub atrun-renderer.ts:394-413to track frame replacement (not append). Without this, frame-duplication tests can pass while production bug persists.RenderOptions.rows?: number+getRows()accessor.replayTranscript(renderer, events[])test helper.Phase 2 — Item 1 (live-zone height cap):
4. Extend
applyRowCapwith a dynamicmaxRows = max(8, rows - 5), reserving extra room whenthis.banner !== null(drop torows - 7).5. Tests for AC-1.1, AC-1.2, AC-1.3.
Phase 3 — Item 2 (diagnose then fix):
6. Diagnose first. Run AC-2.1 matrix against real log-update via a small repro script. Record findings in a test comment.
7. Likely fix:
NonTTYRenderer.renderSummary(line 344-351) hardcodesNARROW_TERMINAL_THRESHOLD=80regardless of terminal width — replace with sharedgetColumns()helper capped at 110.8. Possible fix:
stdoutWrite("\n")afterlogUpdateDone()inTTYRenderer.renderSummary(line 506) for teardown race.9. Tests for AC-2.2 through AC-2.5.
Phase 4 — Item 3 (exec attempt counter):
10. Add
attempt?: numbertoProgressEvent(parallels existingiteration?). Batch-executor populates it. Simpler than re-counting events in the renderer.11. Extract
formatRetrySuffix(phase, kind)helper used by all 3 sibling sites.12. Add
last fail:to TTYstatusHeaderrunning branch whenstate.failureReason && state.currentPhase === "loop".13. Tests for AC-3.1 through AC-3.4.
Phase 5 — Item 4 (failure dedup):
14. Add
IssueState.lastFailureSignature+attemptCount. Signature =stripAnsi(error).slice(0, 80).toLowerCase().trim().15. Three-state machine in emit paths:
first-seen→abbreviating→final(full text emitted again before max-iter).16. Tests for AC-4.1 through AC-4.3.
Phase 6 — Wiring:
17.
process.stdout.rows→createRunRendererfactory.18.
attemptpropagation frombatch-executor.emitProgressLine.Derived ACs
maxLoopIterationsthreaded from settings → all 3 retry-suffix sites; remove hardcoded/3literals.Open questions
attemptsource: event field vs. derived count? → Event field (Q2 recommendation).max(8, rows-5)and banner: reserve room forsetBannertext? → Yes —rows - 7when banner active.Labels
ui(triggers browser test phase; this is terminal output, not browser).tui(matches scope, parallels--experimental-tuireferenced in feat(cli): unified run renderer — two-zone live grid + events #618).no-browser-test(explicit opt-out).Workflow
spec → testgen → exec → qa (no
testphase — assertions are stdout capture, not browser).Quality loop: enabled (red scope + 15 ACs).
Coordination
nowLinewith per-file / log-tail activity #543 (nowLineenrichment) modifies same status header — land feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624 first; feat(tui): enrichnowLinewith per-file / log-tail activity #543 rebases. Assess already flagged.feature/624-feat-cli-run-renderer-follow-ups-frame-stability-aat f7b1c04 — clean, ready.admarble commentedon May 11, 2026
Test Stubs Generated
Total: 48 stubs across 1 file. All currently fail with
throw new Error("Test stub - implement this test")— the harness expectation for/testgenoutput.Unit Test Stubs
File:
src/lib/cli-ui/run-renderer-624.test.ts(new — does not touch the existing 828-linerun-renderer.test.ts)Verification
npx vitest run src/lib/cli-ui/run-renderer-624.test.ts # → 48 failed (expected — stubs)TypeScript compiles cleanly (
npx tsc --noEmit -p tsconfig.jsonreports zero errors for the new file).Coverage notes
TODO: replayTranscript helpermarker — implementation should add this helper during /exec so all three ACs share one verbatim event stream (perfeedback_motivating_example_regression).formatRetrySuffix(phase, kind)helper from the plan's Phase 4 §11. Stubs assert against all 3 sibling sites independently to prevent drift.\p{Block=Box_Drawing}Unicode property escapes throughout, matching the plan's Windows-runner concern.Out of scope (per /spec)
No browser tests, no manual checklists — workflow is
spec → testgen → exec → qa, labelno-browser-test.Next steps
/exec 624— implement the stubs (replace eachthrowwith real assertions as the production code lands)./qa 624— verify AC literals against final stubs.Generated with Claude Code
admarble commentedon May 11, 2026
/exec Progress Update — #624
PR: #627
AC Coverage Summary
clampFrameHeight+effectiveRowCapgetTestStub()replacement countreplayTranscript()helper across (24,50)×(70,100)logUpdateClear()+logUpdateDone()pre-summarySUMMARY_COLUMN_CAPapplied uniformly(attempt N/M)formatRetrySuffixinappendEventLine(attempt N/M)formatRetrySuffixinemitEventLineloop N/M · last fail: <reason>statusHeaderloop branchdecideDedupdecideDedupfinal-iter overridegetTestStub()+TTYTestStubRenderOptions.maxLoopIterations+formatRetrySuffix[─-╿]rangeFiles Changed
src/lib/cli-ui/run-renderer-types.ts— ProgressEvent.iteration doc, RenderOptions.rows/maxLoopIterations, IssueState dedup statesrc/lib/cli-ui/run-renderer.ts— Items 1-4 implementation; ~361 LOC addedsrc/lib/cli-ui/run-renderer-624.test.ts— 51 new test cases (new file)src/lib/cli-ui/__snapshots__/run-renderer.test.ts.snap— snapshot updates (NonTTY summary now wider)src/lib/workflow/batch-executor.ts— threaditerationon every phase + loop eventsrc/lib/workflow/types.ts—ProgressCallbackextra includesiterationsrc/commands/run-progress.ts— passrows+maxLoopIterationsto renderersrc/commands/run.ts— readmaxLoopIterationsfrom resolved configCHANGELOG.md— Unreleased entry under AddedCheck Results
npm run build: ✅ cleannpm run lint: ✅ cleannpx vitest run: ✅ 3,059 tests pass (51 new inrun-renderer-624.test.ts+ 2 snapshot updates for the NonTTY summary now using real terminal columns)Quality Plan Alignment
getTestStub(),replayTranscript()formatRetrySuffixreplayTranscript()perfeedback_motivating_example_regressioniterationfalls through to no-suffix pathPre-PR Confidence Check
clampFrameHeight()truncation heuristic (3 lines per issue + 8 overhead) is a static estimate. If sub-status lines wrap due to wide content, the heuristic could under-cap. Real-world data should be collected before tightening; current behavior is "ceiling never exceeded" so the failure mode is at-worst showing fewer issues, not stacking duplicate frames.run-renderer-624.test.tsorrun-renderer.test.ts. The wiring layer (run-progress.ts,run.ts) doesn't have dedicated unit tests, but it's verified through the renderer tests that consumeRenderOptions.rows+RenderOptions.maxLoopIterations.Next Steps
/qa 624— verify AC literals + diff for any missed sibling sites.npx sequant runtranscript to confirm clean output in production.admarble commentedon May 11, 2026
QA Review for Issue #624
PR: #627
HEAD:
6cf9b6cMode: standalone, Standard QA (diff size 1358+/-69 across 9 files — above SMALL_DIFF threshold)
AC Coverage
max(8, rows-5)regardless of issue countgetMaxLiveRows()returnsmax(8, rows-5)(orrows-7with banner);clampFrameHeight()enforces. Test asserts ≤max(8, 20-5).SEQUANT WORKFLOW ·per stategetTestStub().replacementCount ≥ 10andlastFramecontains exactly 1 header.replayTranscript()over (24,50)×(70,100); asserts ≤ 1 header AND height cap respected.\x1b[Kleak / no U+FFFD across (70/100, 24/50). Both candidate fixes implemented (column cap + flush).renderSummaryflushes log-update before summary textTTYRenderer.renderSummarycallslogUpdateClear()+logUpdateDone()at lines 672-673 beforerenderSummaryBlock.min(columns, 110)in both render pathsSUMMARY_COLUMN_CAP = 110applied uniformly: TTY renderSummary (684), NonTTY renderSummary (439),renderRunSummary(1392).\x1b[K, no U+FFFD, no partial box)describe.each×it.each, all green.(attempt N/M)from 2nd exec onwardsformatRetrySuffix(iter, M, "events")returnsempty for `iter ≤ 1. Test asserts attempt 1 unannotated, 2/3 + 3/3 present.(attempt N/M)suffixloop N/M · last fail: <reason>loop ${iter}/${M} · last fail: ${truncated}. Test asserts/loop 1\/3 · last fail: exec produced no changes/.(attempt 2/3)+(attempt 3/3)drive()test.decideDedupreturns"abbreviated"whenfirstAttempt < currentAttemptand not at max-iter.decideDedupreturns"full"whencurrentAttempt >= maxIterations. Test verifies failLines[2] (attempt 3/3) re-emits full error.errA, errA, errB, errBwith maxIter=4 — verifies first-seen full, abbreviated, divergence full, final-iter full. Combined with AC-4.1/AC-4.2 the contract is fully covered, but it's not a verbatim 3+1 with maxIter=3.TTYTestStubinterface exported;getTestStub()returns{replacementCount, lastFrame}.maxLoopIterationsthreaded through all 3 retry-suffix sitesRenderOptions.maxLoopIterations→ 3 callsites + statusHeader loop branch (which usesthis.maxLoopIterationsdirectly). Verified withmaxLoopIterations=5test.[─-╿]is U+2500..U+257F. Test passes on macOS; assertion is Windows-safe pattern.Coverage: 18/18 ACs met (15 original + 3 derived)
Original ACs: 15/15 met
Derived ACs: 3/3 met
Quality Plan Verification
Quality plan present in /spec comment.
formatRetrySuffixgetTestStub()+TTYTestStubexportedreplayTranscript()helper consumed by AC-1.3 + AC-2.4[─-╿]/urange covers U+2500..U+257Fiterationfalls throughformatRetrySuffixreturns "" for undefined/≤1; iteration optional onProgressEventDerived ACs: 3/3 addressed
Quality Plan Status: Complete
CI Status
build (20.x)build (22.x)validate-skillsvalidate-plugintypecheckCI Summary: 5 passed, 0 pending, 0 failed
Mergeable: MERGEABLE
CI-related AC items: none explicitly listed, but
npx vitest run(3,059 tests) was claimed green during exec; renderer (85), workflow (816), and commands (8) re-run in this QA all pass.Quality Metrics
any) on added linesBuild Verification
N/A —
npm run buildpasses cleanly in the worktree (tsc, zero diagnostics).Test Coverage Analysis
src/lib/cli-ui/run-renderer.tsrun-renderer.test.ts+run-renderer-624.test.tssrc/lib/cli-ui/run-renderer-types.tssrc/lib/workflow/batch-executor.tsextrapayloads; covered by existing batch-executor tests (816 pass) + renderer-side iteration assertions. No dedicated test ofemitProgressLineextra.iterationfield.src/lib/workflow/types.tssrc/commands/run-progress.tssrc/commands/run.tsresolved.config.maxIterationsCHANGELOG.mdsrc/lib/cli-ui/__snapshots__/run-renderer.test.ts.snapCoverage: 7/7 changed source files have test coverage (direct or transitive via consumer).
Critical paths without dedicated tests:
batch-executor.tsiteration-propagation lines — covered indirectly via 51 renderer tests asserting(attempt N/M). Acceptable since the change is data-pipeline plumbing (add field toextraobject) and the consumer assertions verify end-to-end flow.Code Review
Strengths:
formatRetrySuffix(iteration, maxIterations, kind)cleanly factors the three retry-suffix sites identified in the spec plan; the spec's sibling-site finding is honored.decideDedupis a small, pure function with explicit three-state machine (first-seen → abbreviated → final-full) and clear ordering comment about whyfirstAttemptForSignatureis set inapplyEventbefore the emit checks it.failureSignatureis normalized exactly per plan (ANSI strip → trim → lowercase → 80-char prefix) — exported for direct unit tests, no crypto import.clampFrameHeightis a belt-and-braces clamp that adds an overflow indicator (… N more lines (terminal too short)) so the cap is observable from the rendered output rather than silently truncating.getTestStub()is the right level of abstraction for AC-D1 — tests assert onreplacementCountinstead of parsingbuf.out.replayTranscript()consumes the verbatim motivating-transcript events at the correct iteration numbers and error strings (perfeedback_motivating_example_regression).Issues:
Suggestions (non-blocking):
clampFrameHeightshort-circuits whenrowsOverride === undefined. In production this is fine (run-progress.ts always passesprocess.stdout.rows), but the back-compat gate means tests that omitrowscan't exercise the clamp. Consider switching to "skip only whengetRows()returns the default 24 unconditionally", which is closer to AC-1.1's literal "regardless of issue count". Not blocking — the production path is correct.errA, errA, errB, errBwith maxIter=4. The combined coverage of AC-4.1 (abbreviation) + AC-4.2 (final-iter full) + AC-4.3 (divergence full) exhaustively verifies the dedup state machine, but the literal AC sequence (errA, errA, errA, errB with maxIter=3) is not directly asserted. Consider adding a one-shot test against the literal sequence for completeness.Test Quality Review
describe("error handling")blocks.stdoutWrite,now,wallClockinjected — minimal surface. No module mocks.now: () => FIXED_NOW+liveTickMs: 0+noSignalListeners: trueremoves timing flakiness. No setTimeout polling.Issues Found: None.
Anti-Pattern Detection
Dependency Audit: N/A —
package.jsonnot modified.Code Patterns:
/* progress errors must not halt */catches inbatch-executor.tsare pre-existing and intentional).eval/innerHTML.liveTimer,heartbeatTimer) areunref()'d and cleaned up inonDispose.onDispose(line 703-705).Critical Issues: 0
Warnings: 0
Call-Site Review
New exported functions detected: 2 (
formatRetrySuffix,failureSignature) + 1 type (TTYTestStub).formatRetrySuffixevent.phase !== "loop"guardsfailureSignatureTTYTestStubstdoutWriteis overridden)Loop awareness: TTY status header's
loop-branch (line 1007) deliberately hardcodesloop ${iter}/${this.maxLoopIterations}rather than callingformatRetrySuffixbecause AC-3.3 requires the counter to show on the first loop iteration (iter=1), whereasformatRetrySuffixsuppresses at iter ≤ 1. The denominator still usesthis.maxLoopIterations(D2 ✓).Findings: None. All call-site conditions match AC constraints.
Execution Evidence
This is a renderer/wiring change with no new user-facing CLI flag. Smoke verification:
npx vitest run src/lib/cli-ui/run-renderer-624.test.ts src/lib/cli-ui/run-renderer.test.tsnpx vitest run src/lib/workflownpx vitest run src/commands/__tests__npm run buildEvidence status: Complete (test-driven feature; no new bin/cli.ts surface to /verify).
CLI Registration Verification
N/A — no
RunOptionsfield added tobin/cli.tssurface. The newRenderOptions.rowsandRenderOptions.maxLoopIterationsare renderer-internal, wired fromrun-progress.tsconsumingprocess.stdout.rowsandresolved.config.maxIterations(an existing settings key).Skill Command Verification
N/A — no
.claude/skills/**/*.mdfiles modified.Detection Pattern Verification
N/A — no skill markdown adding/modifying grep/awk/jq/sed/regex.
Smoke Test
Not Required — no skill / script / CLI-surface changes; renderer changes are exercised by 51 dedicated unit tests including the verbatim motivating-transcript replay.
Manual Test ACs
N/A — Spec plan does not declare any AC with
**Verification:** Manual Test. ACs are all unit-test assertable (assert captured output contains ...,assert frame respects cap,produces clean captured stdout). AC-2.1 is the closest to investigative but is operationalized as a deterministic test matrix in AC-2.1's test case.CHANGELOG Verification
feat(#624)commit)[Unreleased]entry### Addedsection, detailed 7-bullet entry covering Items 1–4, D1, and tests)(#624)issue reference, structured per-item description)Result: CHANGELOG requirements met.
Risk Assessment
clampFrameHeightskips whenrowsOverride === undefined. In production,run-progress.tsalways passesrows: process.stdout.rows. If a future caller bypasses that wiring (e.g., a new entry point that constructsTTYRendererdirectly without rows), the height cap silently disengages. Today this is theoretical — there's only one caller. The staticmultiIssueRowCap(default 10) still bounds extreme cases.batch-executor.ts'siterationpropagation throughemitProgressLineextra.iteration(only verified transitively via renderer assertions). Acceptable — change is mechanical and the receiving side is heavily tested.formatRetrySuffix. The 4thloop N/Msite instatusHeader(line 1007 loop branch) deliberately keeps a specialized format (counter visible at iter=1) — checked and intentional. No cross-file siblings: all retry-suffix logic lives inrun-renderer.ts.\x1b[K/ box-corruption call sites in the samerenderSummarypath were audited — bothTTYRenderer.renderSummaryandNonTTYRenderer.renderSummaryand the legacyrenderRunSummaryhelper all apply the sameSUMMARY_COLUMN_CAP. No drift surface remains.Adversarial Re-Read
npx sequant run 608 604 -qpayload) is consumed byreplayTranscript()and exercised in AC-1.3 (4-case row×col matrix) + AC-2.4. Errors, durations (49s, 1m 1s, 2m 21s, 26s, 52s), and the 3 identical failure strings are reproduced verbatim. ✓6cf9b6cmatches PR HEAD; no uncommitted changes; 0 commits behind origin/main; mergeable=MERGEABLE. Clean.run-renderer.ts. Intra-file: 3 sites converged onformatRetrySuffix; 4thloopbranch is intentionally specialized (visible at iter=1) and verified against AC-3.3.--experimental-tuiparity, cross-session lock,-qsemantics, deferred AC-23/26, SIGWINCH during summary teardown). Diff stays within scope: no Ink changes, no lock changes, no-qsemantics, no SIGWINCH-during-summary handling. AC-23 (Phase: detecting…) and AC-26 (stalled-phase warning) code inrun-renderer.tspre-existed from #618 and was not modified.Findings: No gaps surfaced. The implementation matches the plan's Phases 1–6, every AC has a corresponding test, the motivating-transcript fixture is reproduced verbatim, and the sibling-site convergence on
formatRetrySuffixeliminates the drift risk the spec plan flagged.Status: Clean
Behavior-Rule Survival Check
N/A — no AC in #624 triggers the behavior-rule heuristic (≥2 of
default/always/never/rule/behavior/skip). ACs are dimensional (height cap, attempt counter, dedup) rather than rule-replacement (e.g., "default becomes X").Verdict: READY_FOR_MERGE
All 18 ACs (15 original + 3 derived) literally satisfied, quality-plan dimensions all complete, CI fully green, mergeable, CHANGELOG entry present, motivating-transcript fixture replayed verbatim, sibling-site drift surface converged on a shared helper, adversarial re-read clean. Two non-blocking improvement notes (clampFrameHeight back-compat gate; AC-4.3 literal sequence) are recommendation-level, not unmet ACs.
Documentation
[Unreleased] / Added(feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624 reference, per-item description)Next Steps
errA, errA, errA, errBwithmaxLoopIterations=3) to harden the dedup behavior against the exact AC wording.nowLinewith per-file / log-tail activity #543 (nowLine enrichment) per spec — feat(tui): enrichnowLinewith per-file / log-tail activity #543 rebases on top of this once merged.fix(#624): post-QA hardening — per-phase dedup, frame-cap always on, …
feat(#624): run renderer follow-ups — frame stability, attempt counte…
admarble commentedon May 11, 2026
Documentation Generated
File:
docs/features/run-renderer.md(combined with #618)The #624 follow-ups (frame stability cap,
(attempt N/M)counter on exec retries, failure-signature dedup, summary teardown fix) are documented inline with the parent renderer doc rather than as a separate page, since they refine the same surface.Sections Where #624 Behavior Appears
(attempt N/M)and⏱ still running:heartbeatNext Steps
Ready to merge.
docs: backfill user-facing docs for issues since v2.2.0
feat(#647): AC-1 instrumentation + AC-2 harness scaffolding + AC-3 gr…
feat(cli): replace start/complete event journal with in-place phase-m…
feat(tui): upgrade `sequant ready` to the boxed Ink TUI + harden TUI (#…
feat(#624): run renderer follow-ups — frame stability, attempt counte…
fix(#624): post-QA hardening — per-phase dedup, frame-cap always on, …
feat(tui): upgrade `sequant ready` to the boxed Ink TUI + harden TUI (#…
feat(#647): scrollback harness scaffolding for duplicate-header AC-2
feat(#647): AC-1 debug instrumentation + AC-2 harness extension + AC-…
feat(cli): replace start/complete event journal with in-place phase-m…