Repository navigation
Conversation
…uce Symptom A Diagnose-first investigation per spec. /exec cannot drive AC-1 autonomously (real-run capture is HITL); this commit ships the AC-D1 deliverable so the work parks with verifiable artifacts and a clear next step. Static analysis (spec phase 2): audited every process.stdout.write / console.log reachable from `npx sequant run … -q`. In non-verbose mode the renderer is the sole stdout writer — phase-executor:675 is gated on config.verbose, heartbeat is NonTTY-mode only. There is no second-writer mechanism in the source tree. Synthetic reproduction (spec phase 1): the #647 scrollback harness already exists. This commit adds one further lock-in test driving the motivating issue's exact event sequence (complete `loop` → failed `loop` for the same issue) at 100-col stream + 80-col physical width + pause/resume between events. The overlay detector (a row containing both the green ✔ marker AND the error string) asserts that no Symptom A row is produced. Passes today; its purpose is to catch any future regression that makes Symptom A reachable synthetically. The forensic byte math from the issue body (`complete[0:8] + failed[col 9+]` on the same row) therefore points to: terminal-emulator-side rendering, a writer the static read missed, or a measurement artifact in the original transcript. Discriminating between these requires AC-1 evidence from a real corrupted run. Instrumentation (SEQUANT_DEBUG_RENDERER=1, run-renderer.ts: 557-606) is unchanged and ready; reproduction instructions are in the negative-result write-up. No production code changes. AC-1..4 remain unmet, deferred until a real trace lands. Artifacts: - docs/incidents/655/negative-result.md - src/lib/cli-ui/scrollback-harness.test.ts (new lock-in test) Entire-Checkpoint: 7dbee3a19aa4
4 tasks
…screpancy QA review of PR #657 surfaced two doc precision gaps in the negative-result write-up (`AC_MET_BUT_NOT_A_PLUS`, non-blocking): 1. The `LivenessHeartbeat` row in the static-analysis table claimed "NonTTY-mode only", but the actual gating in `run-progress.ts:46-49` is `quiet && !tuiEnabled` — i.e. quiet-mode only (TTY or non-TTY). 2. The "How to capture AC-1" section didn't acknowledge that the renderer (sole source of the `✔` glyph in the corrupted line) is NOT wired in `-q` mode (see `run-progress.ts:59-60`), contradicting the issue body's claim that the motivating transcript was `-q`. While correcting (1), the renderer row in the same table was found to have the inverse error — listed as "Yes, sole intended writer" for `-q`, despite the renderer not being wired in `-q`. Both rows are now corrected for internal consistency. The AC-1 capture instructions now lead with a mode-discrepancy callout and drop `-q` from the example command, so the next HITL capture exercises the code path that actually produces the corruption. No production code or tests changed. Entire-Checkpoint: 5210a64609c5
12 tasks
Follow-up to ba35122. QA re-review surfaced two surviving sites in `docs/incidents/655/negative-result.md` where the pre-correction framing — "`-q` mode" / "non-verbose mode" — outlived the substantive table fix: 1. TL;DR (line 10) said "the renderer is the sole stdout writer in non-verbose mode", which directly contradicts the corrected §2 table (in `-q` mode the heartbeat — not the renderer — owns stdout; `-q` is non-verbose). 2. §2 heading and opening sentence scoped the static analysis to "`-q` mode", but the corrected table actually covers both modes — that is how it establishes the mode-discrepancy callout in §"How to capture AC-1". Both now describe both run modes explicitly and reference the gating callsites (`run-progress.ts:46-49` and `:59-60`). Grepped the file for "non-verbose" / "NonTTY" / "stdout writers in `-q` mode" / "renderer ... sole" framings; zero surviving instances of the false claim. No production code or test changes.
This was referenced May 17, 2026
Closed
admarble
added a commit
that referenced
this pull request
Sep 9, 2026
…screpancy QA review of PR #657 surfaced two doc precision gaps in the negative-result write-up (`AC_MET_BUT_NOT_A_PLUS`, non-blocking): 1. The `LivenessHeartbeat` row in the static-analysis table claimed "NonTTY-mode only", but the actual gating in `run-progress.ts:46-49` is `quiet && !tuiEnabled` — i.e. quiet-mode only (TTY or non-TTY). 2. The "How to capture AC-1" section didn't acknowledge that the renderer (sole source of the `✔` glyph in the corrupted line) is NOT wired in `-q` mode (see `run-progress.ts:59-60`), contradicting the issue body's claim that the motivating transcript was `-q`. While correcting (1), the renderer row in the same table was found to have the inverse error — listed as "Yes, sole intended writer" for `-q`, despite the renderer not being wired in `-q`. Both rows are now corrected for internal consistency. The AC-1 capture instructions now lead with a mode-discrepancy callout and drop `-q` from the example command, so the next HITL capture exercises the code path that actually produces the corruption. No production code or tests changed. Entire-Checkpoint: 5210a64609c5
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
Diagnose-first investigation for #655 (Symptom A renderer corruption, column-mismatch hypothesis refuted in #654, real cause unknown).
/execcannot drive AC-1 autonomously — real-run capture is HITL. This PR parks the work with the AC-D1 deliverable (negative result + reproduction instructions) so the next iteration can pick up from a real-run trace instead of relitigating the static analysis.process.stdout.write/console.logreachable fromnpx sequant run …(both default mode and-q). There is no second stdout writer in either mode — the renderer owns stdout in default mode (gated on!quiet && !tuiEnabled,run-progress.ts:59-60), the heartbeat owns it in-qmode (gated onquiet && !tuiEnabled,run-progress.ts:46-49), and they are mutually exclusive.phase-executor.ts:675is gated onconfig.verbose, so it does not write in non-verbose runs. No second-writer mechanism in the source tree, in either mode. The corrected static-analysis table also surfaces a contradiction with the issue body's "-qmode" claim: the✔glyph in the corrupted line is produced only by the renderer, which is not wired in-q. Seedocs/incidents/655/negative-result.md§"How to capture AC-1" for the mode-discrepancy callout.loop→ failedloopfor the same issue) at a 100-col stream + 80-col physical width + pause/resume between events. The overlay detector (single row containing both✔andClaude Code returned) asserts no Symptom A row is produced. Passes today — purpose is to catch any future regression that makes Symptom A reachable synthetically.SEQUANT_DEBUG_RENDERER=1instrumentation (run-renderer.ts:557-606) is unchanged and ready; capture instructions are indocs/incidents/655/negative-result.md.AC coverage
SEQUANT_DEBUG_RENDERER=1instrumentation in placedocs/incidents/655/negative-result.md+ lock-in test inscrollback-harness.test.tslogUpdateClear; not reachedTest plan
npm test -- --run src/lib/cli-ui/— 92 passed, 1 skipped (the deferred mechanism feat: Complete remaining v1.0 features (AC-10, AC-13, AC-14) #1 scaffold from fix(cli): #624's duplicate-header fix doesn't catch real log-update/scrollback bug (v2.3.0 regression confirmed) #647)npm run build— cleannpm run lint— cleanSEQUANT_DEBUG_RENDERER=1 script -q artifact/terminal.typescript npx sequant run … 2> artifact/debug.jsonlagainst a scenario known to produce Symptom A (default mode — no-q, since the renderer that emits the✔glyph is not wired in-q); commit captures underdocs/incidents/655/captures/<date>/Closes only AC-D1. Issue #655 remains open for AC-1..4.
🤖 Generated with Claude Code