O2: Gate and retry with failure log #3

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

orch is an orchestrator that runs many hx coding agents (Rust harness, one-shot via hx -p TEXT --mode json = NDJSON events on stdout, or --mode rpc = JSON-RPC over stdio; flags --sandbox, --session FILE, --provider, --yolo; hx stats shows token usage). It must work for work and private use, so it is not tied to any git host. After hx finishes, run the profile gate (tests, lint). On failure feed the gate log (truncated to a size limit) back to hx as a follow-up prompt on the same session (--session), at most N retries, then set state needs-human with the log attached.

Acceptance: test with a fake hx that fixes the code on the second attempt, and one that never does.

orch is an orchestrator that runs many `hx` coding agents (Rust harness, one-shot via `hx -p TEXT --mode json` = NDJSON events on stdout, or `--mode rpc` = JSON-RPC over stdio; flags `--sandbox`, `--session FILE`, `--provider`, `--yolo`; `hx stats` shows token usage). It must work for work and private use, so it is not tied to any git host. After hx finishes, run the profile gate (tests, lint). On failure feed the gate log (truncated to a size limit) back to hx as a follow-up prompt on the same session (`--session`), at most N retries, then set state needs-human with the log attached. Acceptance: test with a fake hx that fixes the code on the second attempt, and one that never does.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/orch#3