Commit Graph
29 Commits
Author SHA1 Message Date
Johannes KresnerandClaude Opus 5.5 db80d15ba2 fix: an hx error asks the user instead of taking the state's first catch
build / version (push) Successful in 12s
build / build (aarch64-apple-darwin) (push) Successful in 5m20s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m45s
build / release (push) Successful in 24s
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>
2026-11-17 15:52:40 +01:00
Johannes KresnerandClaude Opus 5.5 71f58d7b30 fix: interactive sessions run with yolo under the sandbox, auto without
build / version (push) Successful in 12s
build / build (aarch64-apple-darwin) (push) Successful in 5m44s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m2s
build / release (push) Successful in 23s
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>
2026-11-17 15:17:36 +01:00
Johannes KresnerandClaude Opus 5.5 20f88d88df feat: orch up starts issue sessions in existing worktrees
build / version (push) Successful in 1m20s
build / build (aarch64-apple-darwin) (push) Successful in 5m55s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m1s
build / release (push) Successful in 21s
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>
2026-11-16 15:56:58 +01:00
johannesandClaude Sonnet 5.5 f652e607f6 fix: diff view lists files in new folders and shows untracked content
build / version (push) Successful in 9s
build / build (aarch64-apple-darwin) (push) Successful in 4m27s
build / build (x86_64-unknown-linux-musl) (push) Successful in 3m47s
build / release (push) Successful in 19s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 23:13:12 +01:00
johannes db7ef65e4a fix: sandbox mode not working
build / version (push) Successful in 9s
build / build (aarch64-apple-darwin) (push) Successful in 3m56s
build / build (x86_64-unknown-linux-musl) (push) Successful in 3m47s
build / release (push) Successful in 17s
2026-11-15 22:51:24 +01:00
johannesandClaude Sonnet 5.5 e50f90d299 feat: restart a failed or escalated session at the state where it stopped
build / version (push) Successful in 10s
build / build (aarch64-apple-darwin) (push) Successful in 4m5s
build / build (x86_64-unknown-linux-musl) (push) Successful in 3m34s
build / release (push) Successful in 16s
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>
2026-11-15 22:36:10 +01:00
johannesandClaude Sonnet 5.5 a4df9c3b01 feat: open the session in hx with --session from the TUI
build / version (push) Successful in 10s
build / build (aarch64-apple-darwin) (push) Successful in 4m30s
build / build (x86_64-unknown-linux-musl) (push) Successful in 3m44s
build / release (push) Successful in 25s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 22:23:05 +01:00
johannes 8539e0308d feat: add local profiles inspection before global
build / version (push) Successful in 9s
build / build (aarch64-apple-darwin) (push) Successful in 3m57s
build / build (x86_64-unknown-linux-musl) (push) Successful in 3m35s
build / release (push) Successful in 20s
2026-11-15 22:05:56 +01:00
johannes 8ecbd504a2 feat: set hx to yolo in sandbox mode else auto mode
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 5m13s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m21s
build / release (push) Successful in 20s
2026-11-15 16:12:54 +01:00
johannesandClaude Sonnet 5.5 ea1856e473 Add nix flake, CI build and release workflow with bin.json
build / version (push) Successful in 10s
build / build (aarch64-apple-darwin) (push) Successful in 4m51s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m8s
build / release (push) Successful in 20s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:12:25 +01:00
johannesandClaude Sonnet 5.5 cfb735cdb3 TUI hosts sessions: new-session form, named worktrees, resume, faster permissions
- 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>
2026-11-14 18:04:41 +01:00
johannes f1ab948bb4 Merge branch 'feat/tui-implementation' 2026-11-14 14:08:40 +01:00
johannesandClaude Sonnet 5.5 d4c6e9133b Add orch session --resume to continue an unfinished session
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 14:07:49 +01:00
hermes 39a2e74742 Allowlist: readonly entry, on_deny = continue, tokens of stopped runs (#20) 2026-11-14 12:54:15 +00:00
johannesandClaude Sonnet 5.5 1f2486a599 Route hx limit stops to on_budget, accept _hx/ methods, send catches
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>
2026-11-14 13:13:49 +01:00
johannesandClaude Haiku 4.5 bf609c2e0e Add loop detector, budgets, and live session control
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>
2026-11-14 12:55:44 +01:00
johannesandClaude Sonnet 5.5 7bf0986640 Add Needs-you queue and goal view with acceptance checks
- 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>
2026-11-14 12:38:46 +01:00
hermes 9ce4756fad claude_cli: guard denies before the tool runs (hx#182) (#19) 2026-11-14 11:19:51 +00:00
johannesandClaude Sonnet 5.5 5b659fa8ba Add ACP agent steps, JUnit reports and session detail screen
- acp.rs: ACP client for hx serve --acp, hx/* events into the event table
- tests/fake_acp_hx.py: Python fake hx for the runner tests
- runner.rs: agent steps, blocked catches, failure context, junit test events
- junit.rs: JUnit XML parser (counts, failing tests, locations)
- detail.rs + tui/session.rs: session detail screen with machine view
- tui: enter/esc navigation, pagers for test output, diff and transcript

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:14:25 +01:00
johannesandClaude Sonnet 5.5 d66a014bc5 Add state-machine sessions, event table and TUI overview
- 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>
2026-11-14 11:58:23 +01:00
hermes a76c0ac16f Allowlist with claude_cli: fail closed until hx#182; record provider mode (#18) 2026-11-14 10:32:32 +00:00
hermes 374cf28aed Count cache tokens in telemetry, budget and report (#16) 2026-11-13 18:30:06 +00:00
hermes 193c6cd9eb default profile falls back to built-in defaults 2026-11-13 18:22:33 +00:00
hermes b2d72f2dc9 O6: telemetry report and eval task set (#14) 2026-11-13 00:19:52 +00:00
hermes bea07e82bb O5: safety - allowlist guard, credential separation, audit log (#13) 2026-11-13 00:09:31 +00:00
hermes 06662a085f O4: parallel workers, locks, provider quota (#12) 2026-11-12 23:52:22 +00:00
hermes afafc41376 O3: task sources and result sinks (#11) 2026-11-12 23:25:08 +00:00
hermes 2f79b69977 O2: gate retry with failure log (#10) 2026-11-12 23:21:21 +00:00
hermes fb434c670c O1: Rust crate, profiles, persistent run state (#9) 2026-11-12 23:19:05 +00:00