runner
Asserts that each ADLC phase's required manifest evidence is present, and fails closed when reviewed content changes.
runner
ADLC phase: cross-phase (P0–P7 assertions) · Gate: a phase is only complete when its required manifest evidence exists and still matches the reviewed content.
What it defends against
"A command ran" is not a gate. An orchestrator can call a tool, ignore its result,
and march on, or edit the code after it was reviewed. The runner refuses that: it
reads .adlc/manifest.jsonl and asserts the specific evidence each phase requires,
scoped to a ticket for P0–P6. P5 and P6 bind to the current content fingerprint and
fail closed if reviewed content changes after the fact, so committing the exact
content reviewed at P5 keeps P6 green while any tampering turns it red. It gives CI
and Codex skills one stable command for asserting phase completion.
Usage
The runner ships as the adlc-runner binary and also dispatches through the
umbrella CLI as adlc run and adlc accept.
adlc run <phase> [--dir .adlc] [--ticket <id>] [--revision <rev>] [--json]
adlc accept --ticket <id> --packet .adlc/packet.json [--before .adlc/before.json] [--after .adlc/after.json] [--dir .adlc] [--revision <rev>] [--json]| Flag | Description |
|---|---|
--dir <path> | ADLC control directory (default .adlc). |
--ticket <id> | Ticket to scope evidence to. Required for phases p0, p1, p2, p3, p4, p5, p6. |
--revision <rev> | Offline selector for recorded manifest/artifact evidence; verifies recorded hashes without comparing against the live worktree. Omit for normal worktree use. |
--packet <path> | (accept) Path to the P6 acceptance packet to record. Must live under .adlc/ or .omo/evidence/. |
--before <path> / --after <path> | (accept) Behavior snapshot paths recorded and re-verified at P6. |
--json | Machine-readable result. |
--help | Print help and exit 0. |
Phases run p0 through p7; p0–p6 require --ticket.
adlc run p2 is ticket-scoped and validates the ticket's coldstart record exactly as
adlc run p0 does (no unresolved gaps, ticket definition unchanged since the audit), and its
merge-forecast must belong to the same ticket. adlc run p4 binds p4-build to the files it
covers: record it with --files <changed files>, and the run is rejected (exit 2, naming the
file) when any of those files has changed since. flail-check is bound the same way: record it
with flail-detector --record --files <changed files>, and the run is rejected (exit 2, naming the
marker and file) when it binds no files or any of them has changed since. The latest entry of each
marker is judged, in any order.
Per-phase required evidence
| Phase | --ticket required | Required manifest markers | How recorded |
|---|---|---|---|
p0 | yes | coldstart | adlc coldstart <id> --prompt-only --record-verdict <file|-> |
p1 | yes | spec-lint, premortem, spec-approval | adlc spec-lint <spec.md> --record --ticket <id>, adlc premortem <spec.md> --prompt-only --record-verdict <file|-> --ticket <id>, adlc gate-manifest record spec-approval --ticket <id> --files <spec.md> --data '{...}' |
p2 | yes | coldstart, merge-forecast | adlc coldstart <id> --prompt-only --record-verdict <file|->, adlc gate-manifest record merge-forecast --ticket <id> |
p3 | yes | rails-red, hollow-test, rails-frozen | adlc gate-manifest record rails-red --ticket <id>, adlc hollow-test --record --ticket <id> ..., adlc gate-manifest record rails-frozen --ticket <id> |
p4 | yes | p4-build, rails-check, flail-check | adlc gate-manifest record p4-build --ticket <id> --files <changed-files>, adlc rails-guard --record --ticket <id> ..., adlc flail-detector <log> --record --ticket <id> --files <changed-files> |
p5 | yes | p5-complete | adlc prosecute --input <passes.json> (after dry-pass convergence across >=3 lenses) |
p6 | yes | p5-complete, p6-acceptance-packet | adlc accept --ticket <id> --packet .adlc/packet.json [--before ... --after ...] |
p7 | no | lesson-foundry, rejection-mining, skill-rot | adlc gate-manifest record lesson-foundry, adlc gate-manifest record rejection-mining, adlc gate-manifest record skill-rot |
Exit codes
--ticket, bad input).2: required phase evidence is missing.Example
$ adlc run p5 --ticket T1 --dir .adlc
adlc p5: missing evidence: prosecution-transcript
exit 2
$ adlc run p6 --ticket T1
adlc p6: required evidence present
exit 0Go deeper
consensus-fix
Fans N independent LLM fixes at a failing test, gates each against the rails, and picks the smallest consensus winner.
fleet
Parallel ticket orchestration. Dispatches ready tickets to sandboxed Claude Code workers in isolated worktrees, gates and prosecutes each, and merges to a per-run integration branch with deterministic control flow.