hx reports its own failures (API, login, ...) as blocked with reason
"error" and no catch. orch then fell back to the state's first catch,
so with code's ToolDenied = "review" a failed agent looked like "review
ready" with no code written. Now the error lands in Needs-you; a reply
runs the step again with the reply as hint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orch dropped --yolo for ACP sessions (TUI, orch up), so hx started with a
bare --sandbox and asked for every edit. Interactive sessions now use the
same flags as batch runs: --sandbox --yolo when a sandbox is available,
--auto when not. A sandbox with yolo = false gets --sandbox --auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orch up MANIFEST reads an issue manifest (a path, or NAME in manifest_dir,
default <config>/manifests, set in <config>/config.toml) and starts one
detached session per listed worktree, across repos. Each worktree brings its
own machine, profile and .hx/task.md; the task text now reaches the agent.
Sessions live in <state>/issues.db; orch issues shows them grouped by issue.
Also: liveness checks use kill(pid, 0) instead of /proc (broken on macOS),
the same branch name in two repos no longer counts as the same place, and
the merge queue column ticket is renamed to issue (migrated on open).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds orch session --restart sN and R in the TUI. A restart event gives the
session fresh budgets and retry counts.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Use the terminal's own colors and background; the key bar and the Needs-you
panel wrap, fixed-width panels shrink on narrow terminals.
- Sessions run on threads of the TUI (tui/host.rs), capped by the profile's
`workers`; quitting asks for `yes` and suspends them. New `suspend` command
keeps the state so a session can be resumed.
- `N` opens a new-session form: machine, name, --after, a named branch or
worktree (place.rs; never deleted by orch), and a "keep for a PR" option.
- `u` resumes suspended sessions and ones whose process died.
- `A` allows identical permission requests across sessions, `P` saves an allow
rule to the profile with toml_edit (comments kept).
- Fix clippy lint in report.rs so tests/all.sh passes; add GLOSSARY.md.
Includes the already staged `orch init` work (init.rs, example profile).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A blocked step result with reason "limit" and no catch now takes the same
path as an orchestrator budget stop. Other blocked reasons keep the normal
catch path. hx/step context now lists the state's catch names so hx can pick
a valid one.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Milestone 8: the loop detector alerts when test failures repeat, budget
caps limit context/cost/wall-time per session with compaction support,
and live control lets you interrupt, message, or kill a running session
from the TUI. Decisions can now be vetoed, which sends hx/message and
rewinds the session to code. All 82 tests pass.
- src/budget.rs: pure functions for active time, budgets and loop detect
- src/runner.rs: Ctl control object polls for commands ~100ms, handles
interrupt/message/abort/stop at every blocking point, re-runs on
hints, and compacts when context is high
- src/db.rs: commands table for TUI→runner control
- src/detail.rs, src/goal.rs, src/tui/: loop detector box, budget caps,
session keys (i/m/s/k/r), goal keys (v for veto), state forcing
- tests/fake_acp_hx.py: slow mode and hx/message, hx/compact log
- examples/machines/task.toml: [budget] with wall_secs, cost, compact_at
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- needs table: human steps, permission requests and agent questions wait
for an answer written to the database; a/c/d, y/Y/n, r keys in the TUI
- goal view (g): task graph, critical path, decisions, acceptance checks;
e edit goal, + add check, R run all checks on main
- checks.rs: acceptance checks on a branch or on main in a clean worktree
- runner: wait for --after dependencies, one session in merge at a time,
all checks again on main after each merge
- orch goal / check / checks commands, ORCH_DB and {{repo}} for machine steps
- example machines merge with git merge --ff-only
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- machine.rs: TOML machine parser/validator, four example machines
- db.rs: per-goal SQLite (.hx/orch.db) with append-only events
- runner.rs: session runner for computer steps (catches, retries, resume)
- view.rs + tui/: sessions overview built from events; bare `orch` opens it
- orch session: create and run a session from the CLI
- devenv with git and sqlite
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>