Browse Source

G-061 notes: record 2026-07-19 console-context test-matrix findings

Three tests fail only under a half-attached console (stderr=console,
stdout=file): grepstr highlight tests emit empty SGR and nslist marking
loses its markers - punk::console process-global colour state under
mixed tty-ness. Fully-piped and -jobs runs green; fully-interactive
unverified. Recorded on G-061 (user direction) as a concrete
context-matrix workload for the pseudoconsole harness, alongside the
interim Start-Process selective-redirection repro technique and a
pointer to the related capture_stderr utf-16le fix (913ea749).

Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com
master
Julian Noble 2 weeks ago
parent
commit
03aad5f5ae
  1. 18
      goals/G-061-pseudoconsole-expect.md

18
goals/G-061-pseudoconsole-expect.md

@ -77,4 +77,22 @@ expect-like primitives over a REAL pseudo-terminal:
- ConPTY availability gates the windows side to Win10 1809+ (fine for punkshell's
supported baseline); the capability probe should verify actual ConPTY function, not
windows version.
- Console-context test-matrix findings 2026-07-19 (user console-attached sequential
runtests runs; a concrete workload for this goal's harness): three tests fail ONLY
under a HALF-attached console state (stderr = real console, stdout = redirected file) -
punk/ansi grepstr.test grepstr_return_all_highlight_exact and
grepstr_tab_warning_and_passthrough emit EMPTY SGR (ESC[m) where the expected
term-teal codes should be, and punk/ns nslist.test nslist_marking_exported_imported
loses its markers (0 0 0). Class: punk::console PROCESS-GLOBAL colour state reacting
to mixed tty-ness in singleproc runs (fully-piped and -jobs child-process runs are
green; fully-interactive stdout+stderr-console behaviour is UNVERIFIED - exactly the
context matrix a pseudoconsole harness makes testable deterministically). Interim
repro technique without ConPTY: Start-Process a .cmd wrapper with selective stdio
redirection (stderr left on the spawned console) - used 2026-07-19 to root-cause the
related-but-distinct capture_stderr defect (a chan-push transform on console-backed
stderr receives the driver's utf-16le wide-char bytes; FIXED in the three
capture_stderr helpers, commit 913ea749). The empty-SGR/marker findings remain open;
a pseudoconsole-driven context matrix (fully-attached / half-attached / detached)
over these suites is a natural early acceptance workload alongside the preserve-list
behaviours.
- Archived-goal references in this file: G-001 achieved 2026-07-11 (goals/archive/G-001-pluggable-console-backends.md);G-059 achieved 2026-07-11 (goals/archive/G-059-wsl-test-driving.md).

Loading…
Cancel
Save