Findings against real hx (no login on this box, so no full run):
Exit code is 1 on startup errors (not logged in, --sandbox without bwrap), message on stderr, no NDJSON at all. Harness must treat "no done event" as hx-failed, not only a non-zero exit.
On a normal run the last line is a done event with error (null on success), usage, session. Harness uses done.error as success signal in addition to exit code.
Timeout: orch kills hx; hx's child processes (bash tools) are not killed by this spike. O1 must kill the process group.
hx edits are committed to the task branch even when the gate fails, so work is never lost.
Deliberately skipped: retry (O2), push/PR (O3), locking (O4), permission handling (O5; real hx would prompt for writes, so a real run needs --yolo inside a sandbox or an allowlist).
Closes #1
Python spike (stdlib only): task Markdown -> git worktree `orch/<id>` -> `hx -p BODY --mode json` -> gate -> JSONL telemetry. Results: done, gate-failed, hx-failed, timeout.
Verification: `python3 spike/check.py` (fake hx; covers done, hx error, hx crash exit 2, timeout, gate failure).
Findings against real hx (no login on this box, so no full run):
- Exit code is 1 on startup errors (not logged in, `--sandbox` without bwrap), message on stderr, no NDJSON at all. Harness must treat "no `done` event" as hx-failed, not only a non-zero exit.
- On a normal run the last line is a `done` event with `error` (null on success), `usage`, `session`. Harness uses `done.error` as success signal in addition to exit code.
- Timeout: orch kills hx; hx's child processes (bash tools) are not killed by this spike. O1 must kill the process group.
- hx edits are committed to the task branch even when the gate fails, so work is never lost.
Deliberately skipped: retry (O2), push/PR (O3), locking (O4), permission handling (O5; real hx would prompt for writes, so a real run needs `--yolo` inside a sandbox or an allowlist).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #1
Python spike (stdlib only): task Markdown -> git worktree
orch/<id>->hx -p BODY --mode json-> gate -> JSONL telemetry. Results: done, gate-failed, hx-failed, timeout.Verification:
python3 spike/check.py(fake hx; covers done, hx error, hx crash exit 2, timeout, gate failure).Findings against real hx (no login on this box, so no full run):
--sandboxwithout bwrap), message on stderr, no NDJSON at all. Harness must treat "nodoneevent" as hx-failed, not only a non-zero exit.doneevent witherror(null on success),usage,session. Harness usesdone.erroras success signal in addition to exit code.Deliberately skipped: retry (O2), push/PR (O3), locking (O4), permission handling (O5; real hx would prompt for writes, so a real run needs
--yoloinside a sandbox or an allowlist).