You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Matrix harness: 'storyboard run --webhook-receiver' subprocess hangs to 120s when invoked via spawnSync #1237
Reproducible across multiple verify-mode runs against a clean workspace (no zombie agents, ports 4900/4950 confirmed clear via lsof).
Hypothesis
--webhook-receiver boots a local HTTP listener. The grader's exit path may not always close it cleanly, so on subsequent harness-driven runs the bind leaks. From outside the harness it works because each direct invocation gets a fresh address. The harness's spawnSync may be hanging on the listener's open socket.
Other possibilities:
The receiver waits for an inbound webhook that the agent never sends (storyboard has a webhook step, agent's response is async, harness's grader timeout is hit before the webhook arrives).
stdio buffering in spawnSync that the direct shell flushes differently.
Why this matters now
The matrix harness's verify step relies on runGrader returning a parseable JSON result. Empty stdout + ETIMEDOUT makes the harness misreport storyboard=fail regardless of actual storyboard outcome. Concretely: the matrix-blind-fixtures validation run reports storyboard=fail, traffic=façade when running via the harness; running the grader directly against the same agent produces overall_status: passing with a full traffic profile.
The traffic-check signal is independent and still works (which is the whole point of the redesign). But the harness's secondary signal — storyboard pass/fail — is unreliable until this is fixed.
Workaround
runGrader could fall back to spawning without --webhook-receiver when the storyboard track doesn't require webhook conformance. Or the receiver's port could be passed in explicitly so the harness can guarantee a clean port per run.
code-reviewer: spawnSync is the root cause — it blocks the parent event loop while the CLI's webhook-wait step hangs indefinitely. Option A (async spawn + Promise, close event for parsing) is correct; no changeset required since scripts/ is not in the published files array.
dx-expert: Silent storyboard=fail with empty stdout is the worst error class — no attribution between harness hang and agent failure. Async spawn eliminates the structural problem; kill-timer diagnostic log with storyboard ID and reproduction command closes the DX gap.
My take: Both experts agree on the fix. Opened draft PR #1241 replacing spawnSync with async spawn + Promise in runGrader, adding a SIGTERM→SIGKILL escalation, and a one-line doc note in VALIDATE-YOUR-AGENT.md. No changeset needed.
Activity
refactor(matrix): build/verify split + harness diagnostics
fix(harness): replace spawnSync with async spawn in runGrader to prev…
bokelley commentedon May 1, 2026
Triage
Classification: Bug
Bucket(s): conformance
Status: drafting-pr
What the experts said:
spawnSyncis the root cause — it blocks the parent event loop while the CLI's webhook-wait step hangs indefinitely. Option A (asyncspawn+ Promise,closeevent for parsing) is correct; no changeset required sincescripts/is not in the publishedfilesarray.storyboard=failwith empty stdout is the worst error class — no attribution between harness hang and agent failure. Asyncspawneliminates the structural problem; kill-timer diagnostic log with storyboard ID and reproduction command closes the DX gap.My take: Both experts agree on the fix. Opened draft PR #1241 replacing
spawnSyncwith asyncspawn+ Promise inrunGrader, adding a SIGTERM→SIGKILL escalation, and a one-line doc note inVALIDATE-YOUR-AGENT.md. No changeset needed.Triaged by Claude Code. Session: https://claude.ai/code/session_01UmeaV8QBFCrPvjqPdgEkqp
Generated by Claude Code
fix(harness): close stdin on grader spawnSync to prevent 120s hang
fix(harness): close stdin on grader spawnSync to prevent 120s hang
chore: empty changeset for harness-only #1237 fix
fix(harness): close stdin on grader spawnSync to prevent 120s hang
chore: empty changeset for harness-only #1237 fix
fix(matrix): blind-fixture testing + façade detection (caught real fa…
fix(harness): convert runGrader to async spawn — resolves #1237 same-…
fix(harness): close stdin on grader spawnSync to prevent 120s hang (a…