on_deny=continue (soft vs hard denies), denies counter, tokens of stopped runs

This commit is contained in:
hermes committed 2026-11-14 12:18:55 +00:00
1 parent e668eb1b0d
commit 8c76da90e8
11 files changed
+310 -87

No files matched your search

+5
View File
@@ -30,6 +30,11 @@ sandbox = true # hx --sandbox (bwrap); required for yolo = tru
`.ssh`, `.aws`, `auth.json`, `*.pem`, `*.key`, ...), file tools outside the worktree (reads may also use
`read_roots`), writes to `.git` and `.hx`.
- A denied call ends the run as `needs-human` with `reason = "policy: ..."`; the branch keeps what was done so far.
- `on_deny = "continue"` (default `"stop"`): a call that is merely **not in the allowlist** is answered to the agent
(`orch-guard-soft: ... Use another way`), the tool does not run and the run goes on; the gate decides in the end.
**Hard** denies always stop the run: credential-looking paths, paths outside the worktree, `git push`, writes to
`.git`/`.hx`. Every deny is audited (`decision: deny`, `hard: true|false`) and counted (`denies` in the run state,
telemetry and the `denies` column of `orch report`).
Enforced twice: `orch guard` runs inside hx as an extension (installed as the worktree's `.hx/config.toml`, removed
after each attempt, rewritten before the next) and blocks the call before it executes. orch also checks every