agb run
Execute a ticket DAG: build, gate, prosecute and merge every ticket in plan.json.
agb run executes a compiled plan.json: each ticket is built in its own git worktree, gated, prosecuted and merged. The plan defaults to plan.json in the current directory.
Synopsis
agb run <plan.json>Execute a ticket DAG (build → gate → prosecute → merge).
| Flag | Argument | Description |
|---|---|---|
| --driver | <local|remote-sdk> | execution driver |
| --dry-run | — | preview remote-sdk waves without spawning |
| --interactive | — | pause flailing Strike-2 ticket for /grill-me rescue without aborting siblings |
| --merge | — | verify and merge remote-sdk branches locally |
| --reset-rescue | — | clear rescue locks |
| --resume | — | skip already-merged tickets |
| -c | <n> | cap concurrent workers |
Besides the plan path and the global --project flag, agb run accepts -c <n> to cap concurrent workers at runtime (C9), --resume to skip already-merged tickets cleanly across restarts, and --reset-rescue to clear .booster/rescue-<ticketId>.lock files after an interactive rescue (without --reset-rescue, unresolved rescue locks fail closed). Per-pool runtime concurrency is also bounded by the plan's caps field (while concurrencyCap is an advisory fan-out forecast written by adlc merge-forecast). See Plan schema.
What it does
- Loads the plan and validates it with the same checks as
agb validate(loadPlan). - Builds each ticket in a worktree at
.worktrees/agb-<id>on branchagb/<id>, where<id>is the ticket id lowercased (C5). - Runs post-merge gates in a disposable integration worktree named
agb-integration-<first 8 characters of the run token>(integration worktree). - Prints the run report as JSON on stdout.
The lifecycle is described in Run lifecycle.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Every ticket merged (failed is empty and compromised is null). |
| 1 | The plan is invalid (errors printed to stderr) or an internal error occurred. |
| 2 | At least one ticket failed (failed map is not empty) or compromised is set. |
Evidence: C10.