add black-box debug harness #1

Merged
harry merged 1 commits from harness-crystalline-tome into main 2026-05-14 16:38:04 +01:00
Owner

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

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
harry added 1 commit 2026-05-14 16:37:58 +01:00
harry merged commit 40b1694dcf into main 2026-05-14 16:38:04 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: harry/patterm#1