NS10 slice: Add terminal control-byte snapshots and golden policy #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OBJECTIVE: Make terminal E2E failures debuggable by adding stable snapshot artifacts that expose LF/CR/ESC/control bytes with visible glyphs and a clear golden-update policy.
AUTHORITY: Parent #65; recent terminal regressions; src/terminal_debug.zig; REQUIREMENTS.md req: testing/001-004 and coding/001; AGENTS.md.
AGENT AUTHORITY:
PARENT: #65 NS10 via explicit parent link and parent checklist.
SCOPE: terminal E2E harness artifacts; src/terminal_debug.zig or adjacent test-support code; small documentation in harness help/output if needed.
BOUNDARIES:
REGRESSION CLASS: catches invisible terminal-control regressions where LF, CR, ESC, tabs, or control bytes are normalized away in logs and make browser-terminal failures hard to diagnose.
EVIDENCE ARTIFACTS: visible-control semantic snapshots, normalized transcripts, failing-fixture output, and golden-policy text.
REQUIREMENT IMPACT: protects existing testing and coding requirement authority; update requirement authority only if visible-control snapshots become a durable verification obligation beyond this harness.
ACCEPTANCE:
\r,\n,ESC, tabs, and other control bytes are rendered visibly (for example␍,␊,␛).VERIFICATION:
zig build terminal-e2e(after #66 lands)zig build testzig build v1-smokeredgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdBLOCKERS: depends on the harness seam from #69.
SLICE_CONTRACT:
objective: Add visible control-byte snapshots and golden policy to terminal E2E artifacts.
authority: #65, src/terminal_debug.zig, REQUIREMENTS.md testing/coding rows.
acceptance: CR/LF/ESC/control bytes are visible in semantic artifacts and bare-LF regressions fail diagnosably.
verification: terminal-e2e plus unit/build gates.
non_goals: user runtime debug mode, huge golden pile, pixel-only testing.
blockers: PTY/browser harness seam must exist.
Implemented and committed #70 as
86af6d7 Add terminal E2E control snapshots.What changed:
tools/terminal_e2e.pynow writes stable semantic artifacts:manifest.tsvwith scenario facts, artifact list, raw hash, saved hash, and bare-LF statusvisible-controls.normalized.txtwith normalized volatile temp paths␍), LF (␊), ESC (␛), tab (⇥), and other controls.tools/TERMINAL_E2E.mddocumenting artifact roles and golden update policy.Verification:
zig build terminal-e2ezig build testzig buildzig build v1-smokeredgate list /opt/repositories/mim/REQUIREMENTS.mdredgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.mdEvidence artifacts from the run are under ignored
.zig-cache/terminal-e2e/raw-key-chrome-crlf/.