O0: Python spike - one task end to end #1

Closed
opened 2026-11-12 23:12:58 +00:00 by hermes · 0 comments
Collaborator

Throwaway Python (stdlib only) script spike/orch.py to validate the approach before the Rust rewrite (O1).

Flow: read one task from a Markdown file (title = first heading, body = rest) -> git worktree add on branch orch/<task-id> -> run hx -p BODY --mode json in the worktree, parse NDJSON, collect done usage -> run a gate command (default sh tests/all.sh, configurable) -> append one JSONL telemetry line (task, tokens, duration, exit codes, result) -> leave the branch locally. No push, no PR.

Acceptance:

  • Runs against a fake hx script (in spike/fake_hx.py) so it needs no subscription; one assert-based self-check spike/check.py passes.
  • Documents findings in the PR description: hx exit codes, event format surprises, how abort or timeout behaves.
  • Result values: done, gate-failed, hx-failed, timeout.
Throwaway Python (stdlib only) script `spike/orch.py` to validate the approach before the Rust rewrite (O1). Flow: read one task from a Markdown file (title = first heading, body = rest) -> `git worktree add` on branch `orch/<task-id>` -> run `hx -p BODY --mode json` in the worktree, parse NDJSON, collect `done` usage -> run a gate command (default `sh tests/all.sh`, configurable) -> append one JSONL telemetry line (task, tokens, duration, exit codes, result) -> leave the branch locally. No push, no PR. Acceptance: - Runs against a fake `hx` script (in `spike/fake_hx.py`) so it needs no subscription; one assert-based self-check `spike/check.py` passes. - Documents findings in the PR description: hx exit codes, event format surprises, how abort or timeout behaves. - Result values: done, gate-failed, hx-failed, timeout.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/orch#1