add black-box debug harness #1
Reference in New Issue
Block a user
Delete Branch "harness-crystalline-tome"
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?
Adds a black-box PTY/MCP debug harness for patterm.\n\nChanges:\n- add internal/harness with hermetic XDG/runtime setup, PTY + Ghostty observation, MCP JSON-RPC client, scenario runner, recorder, and input helpers\n- add patterm debug-harness --scenario for CLI-driven ad hoc runs\n- ship deterministic harness scenarios covering palette process spawn, switching, child exit, MCP send_input, and trust-required errors\n- ignore harness artifact output\n\nValidation:\n- go test ./internal/harness/...\n- go test -race ./internal/harness/...\n- go test ./...\n- go test -count=10 ./internal/harness/...\n- ./bin/patterm debug-harness --scenario internal/harness/scenarios/spawn_process_via_palette.json