- 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>
67 lines
1.7 KiB
TOML
67 lines
1.7 KiB
TOML
name = "docs"
|
|
on_abort = "aborted"
|
|
on_budget = "escalated"
|
|
|
|
[[state]]
|
|
name = "plan"
|
|
kind = "start"
|
|
steps = [ { name = "draft-plan", run = "agent", sets = "planning", prompt = "plan" } ]
|
|
catch = { PlanInvalid = "plan" }
|
|
next = "write"
|
|
|
|
[[state]]
|
|
name = "write"
|
|
steps = [ { name = "write", run = "agent", sets = "writing", prompt = "implement" } ]
|
|
catch = { ToolDenied = "review" }
|
|
next = "lint"
|
|
|
|
[[state]]
|
|
name = "lint"
|
|
steps = [ { name = "markdownlint", run = "computer", sets = "linting", cmd = "markdownlint ." } ]
|
|
catch = { LintFailed = "write" }
|
|
next = "links"
|
|
|
|
[[state]]
|
|
name = "links"
|
|
steps = [ { name = "check links", run = "computer", sets = "checking links", cmd = "lychee --offline ." } ]
|
|
catch = { LinksBroken = "write" }
|
|
retry = { LinksBroken = { max = 3, then = "escalated" } }
|
|
next = "review"
|
|
|
|
[[state]]
|
|
name = "review"
|
|
kind = "gate"
|
|
steps = [
|
|
{ name = "open-diff", run = "computer" },
|
|
{ name = "wait-approval", run = "human", sets = "waiting" },
|
|
]
|
|
catch = { ChangesRequested = "write" }
|
|
next = "merge"
|
|
|
|
[[state]]
|
|
name = "merge"
|
|
kind = "exit"
|
|
steps = [
|
|
{ name = "rebase-main", run = "computer", cmd = "git rebase main" },
|
|
{ name = "mark-merged", run = "computer", sets = "merged", cmd = "git -C {{repo}} merge --ff-only {{branch}}" },
|
|
]
|
|
catch = { RebaseConflict = "write" }
|
|
end = "merged"
|
|
|
|
[[state]]
|
|
name = "escalated"
|
|
kind = "exit"
|
|
only_on = ["LinksBroken x3", "budget"]
|
|
steps = [
|
|
{ name = "snapshot-worktree", run = "computer" },
|
|
{ name = "notify", run = "computer", sets = "needs you" },
|
|
]
|
|
end = "escalated"
|
|
|
|
[[state]]
|
|
name = "aborted"
|
|
kind = "abort"
|
|
only_on = ["abort"]
|
|
steps = [ { name = "remove-worktree", run = "computer", sets = "aborted" } ]
|
|
end = "aborted"
|