ADLC
Toolkit

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]
FlagDescription
--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.
--jsonMachine-readable result.
--helpPrint 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 requiredRequired manifest markersHow recorded
p0yescoldstartadlc coldstart <id> --prompt-only --record-verdict <file|->
p1yesspec-lint, premortem, spec-approvaladlc 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 '{...}'
p2yescoldstart, merge-forecastadlc coldstart <id> --prompt-only --record-verdict <file|->, adlc gate-manifest record merge-forecast --ticket <id>
p3yesrails-red, hollow-test, rails-frozenadlc gate-manifest record rails-red --ticket <id>, adlc hollow-test --record --ticket <id> ..., adlc gate-manifest record rails-frozen --ticket <id>
p4yesp4-build, rails-check, flail-checkadlc 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>
p5yesp5-completeadlc prosecute --input <passes.json> (after dry-pass convergence across >=3 lenses)
p6yesp5-complete, p6-acceptance-packetadlc accept --ticket <id> --packet .adlc/packet.json [--before ... --after ...]
p7nolesson-foundry, rejection-mining, skill-rotadlc gate-manifest record lesson-foundry, adlc gate-manifest record rejection-mining, adlc gate-manifest record skill-rot

Exit codes

0: required phase evidence is present (and still matches the reviewed content).1: operational error (unknown phase, missing --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 0

Go deeper

packages/runner

On this page