Files
donlucasandClaude Opus 5 45c0049cfa An external audit was right about the method and wrong about the answer
Ran the packet past agent Kimi as a fourth pass, with the charge to treat my
own two fixes as claims to check rather than as given. Its top finding was
aimed at me and it landed: notes/anchorprobe measured the alternate screen's
anchoring with NO scroll region and NO origin mode, while production runs
DECSTBM 1..N + DECOM. A resize with an active region is a different path in a
terminal, so the first measurement was a fact about the region-free case only.

That is the same defect class I wrote up this morning after the AltScreen
false harness -- an instrument that never enters the mode production runs in
-- committed again inside the probe built to close it.

Gap closed, and the answer did not move: `-region` pins the band exactly as
band_control.go does and parks the cursor inside it. Grow +30, cursor stays on
row 12 (anchored-bottom predicts 42). Shrink -30, cursor comes back on row 24,
the clamp of 27 (anchored-bottom predicts 1). The scroll region does not change
the anchoring. So the terminal does NOT move the agent's content, the audit's
leading hypothesis for report 3 is refuted, and whatever moved that banner is
ours or the agent's.

Also challenged: the F1 fix's "safe because DECRC restores the agent's SGR",
an unmeasured assumption about Terminal.app. It cannot be measured directly --
Terminal.app does not answer DECRQSS, and notes/sgrprobe's control asked with
a known rendition in force and got nothing, so that is "unsupported" rather
than "default". The running system settles it instead: BeginPaint/EndPaint
bracket the scape's writes the same way and every scape line ends in ESC[0m,
twelve times a second. If DECRC did not restore SGR, Claude Code's UI would be
colourless. The comment now argues from that rather than from the spec.

Both probes are kept in notes/ so neither fact rots.

Report 3 remains NOT DETERMINED. The audit eliminated the host with line
citations -- no host write can move content down 31 rows -- and the terminal
is now eliminated by measurement. That leaves the agent's own fresh-session
redraw, which XSCAPES_TRACE will show directly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R1u8vp8AgrTuaCCcLv6HVi
2026-09-03 14:17:25 -07:00
..