Repository navigation
feat(cli): replace start/complete event journal with in-place phase-matrix (#672) - #682
Merged
admarble merged 3 commits intoMay 31, 2026
Conversation
…atrix (#672) Drop the TTYRenderer `▸ start` scrollback line and seed planned phases as in-place cells that transition pending → running → ✔/✘. The live zone now shows the full pipeline upfront instead of streaming each phase as it begins. AC-1: TTYRenderer.appendEventLine returns early for start events. AC-2: IssueRegistration.plannedPhases + RunRenderer.setPhasePlan; wired from batch-executor via a new PhasePlanCallback fired after phase resolution. AC-3: statusSubLines renders pending cells as `name –` and includes failed state so the failing cell shows ✘ in place rather than collapsing. AC-4: Run log (.sequant/logs/run-*.json) is the system-of-record for ordered phase history with start/end timestamps — integration test covers both TTY and non-TTY paths, concurrent runs, failures, and ms precision. AC-5: NonTTYRenderer unchanged — CI scrollback is the durable run record. AC-6: clearCalls reduced ≥30% vs baseline (8 events × 1 clear → 4 clears for the same 2-issue scenario). Side-effect: the #647 scrollback-harness AC-2 regression is now green and `it.fails` flips to a permanent guard. Existing #624 tests that asserted on `(attempt N/M)` in the TTY `▸ start` journal line surface the counter via the live frame `loop N/M` header or the still-emitted `✘ failed (attempt N/M)` line instead. Entire-Checkpoint: 1dd882f474c5
6 tasks
Resolves QA §10a gate that demoted the PR to AC_MET_BUT_NOT_A_PLUS. Uses the QA-drafted entry verbatim. Entire-Checkpoint: 8b862eada978
QA follow-up addressing two gaps found in second-look review: - AC-6 test was tautological: BASELINE was inflated to 12, making the threshold floor(12*0.7)=8 equal to the true pre-#672 value (8), so the assertion passed even on un-refactored code. Use the real baseline (8), threshold floor(8*0.7)=5 (observed=4), plus a guard asserting the threshold sits strictly below baseline so a regression to 8 fails. - plannedPhases registration path was dead from production: the only registerIssue call site never passed it, so AC-2's upfront roadmap only appeared for the active issue (queued issues stayed blank until they ran). Wire resolved.config.phases through buildProgressWiring so explicit -phase mode seeds every issue's roadmap at registration, matching the multi-row matrix mock-up. Auto-detect mode still defers to setPhasePlan.
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
▸ #N phasestart scrollback line that duplicated the live-zone "running" cell; only terminal transitions (✔ complete/✘ failed) remain.name –) at registration via a newIssueRegistration.plannedPhasesfield andRunRenderer.setPhasePlan(issue, phases)method, wired frombatch-executorafter the final pipeline is resolved.Acceptance criteria
▸ startjournal line from TTYRenderer —TTYRenderer.appendEventLinereturns early onstart.plannedPhases+setPhasePlan; newPhasePlanCallbackplumbed run.ts → orchestrator → batch-executor.statusSubLines; failed state also renders cells..sequant/logs/run-*.json) is the system-of-record for ordered phase history (integration test covers TTY/CI parity, ms precision, failures, and concurrent writers).NonTTYRendererjournal unchanged.clearCallsreduced by 50% vs the captured baseline of 12 (well above the ≥30% target), measured viaTTYTestStub.clearCalls.Test plan
npm test -- src/lib/cli-ui/run-renderer-672.test.ts— 20 new unit tests covering AC-1/2/3/5/6.npm test -- __tests__/integration/run-log-phase-history-672.integration.test.ts— 6 integration tests covering AC-4.npm run build,npm run lint,npx vitest run src/lib/cli-ui/— all green; existing feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624 tests updated to surface(attempt N/M)via failure lines / live-frameloop N/M(the dropped▸ startline previously carried it).#647 scrollback-harnessAC-2it.failsregression now passes (fewer redraws = smaller blast radius for paint corruption) and was flipped to a permanent regression guard.Closes #672