design(sdlc): archon-lifecycle composes ship, runtime and holdout verification, discoveries, merge and deploy into one unattended run
Problem
Every SDLC path ends at "PR flipped ready" and the pieces after it (runtime verification, a holdout, discovery handling, merge, deploy) exist or are designed as separate workflows. Nothing composes them into one run that takes an issue to a merged, deployed change. A consumer that wants that today writes its own stage dispatcher in Python and re-learns every failure mode the pack already handles.
Why
The factory model is one submitted run per tick, with the scheduler outside the engine and no stage policy in the consumer. That only works if the pack owns the composition. It is also where the invariants that make an unattended merge trustworthy have to live in one place: verification runs against the delivered revision, a holdout runs only after the visible scenario passes, a failed verification gets exactly one repair with independent review, and a merge waits on a verified candidate.
Desired outcome
A shared archon-lifecycle workflow that composes existing pack workflows in YAML with no engine change: archon-ship, runtime verification on the delivered PR head, an independent holdout, one bounded repair through archon-deliver on the same branch followed by fresh verification, discovery handling in preview by default, the merge queue in approval mode by default, and optional deployment after a confirmed merge. An empty target selects the oldest untouched open issue deterministically; nothing found completes the run with nothing to do.
Acceptance
- One run takes an explicit issue from triage to a merged PR with runtime and holdout evidence attached, in approval mode, with a human deciding the merge.
- A verification failure at the PR head gets one repair round with independent review, then fresh runtime and holdout verification; a second failure holds the handoff.
- Missing evidence, moved identity or infrastructure failure holds the handoff rather than passing.
- A skipped discovery-publish sink (preview mode) does not skip the merge; a failed discovery node still blocks it.
- Backlog intake: with an empty target and publish on, consecutive runs select different issues, and a run that finds nothing completes with nothing to do.
- Fixtures cover nothing-to-do and preview-discoveries-still-merge; a live unattended lap proves the whole path.
Constraints and related work
- Must remain true: the scheduler stays outside the pack (#998). Every agent is a visible command node. The consumer submits one whole workflow and reads its typed result.
- Must remain true: the composition changes nothing in the workflows it includes; a fix belongs in the owning workflow.
- Scope boundary: composition only. Runtime verification, discovery publication, the merge queue and deployment are each their own issue.
- Known prerequisites or blockers: runtime verification (its own issue), #3215 (discovery publication), #3211 (merge queue, itself blocked on a forge merge op in #3040), deployment (its own issue), #3127.
- Related issues or PRs: #3246 carried a working version (closed to re-open after the prerequisites land). A live version runs on
cleanup/sdlc-workflows-only, the branch coleam00/ai-software-factory pins: on 2026-09-09 a systemd timer tick selected issue coleam00/snip-vps#7 via intake, built PR #8, verified runtime and holdout, merged and deployed in 21 minutes at $5.14, and the next tick found nothing untouched. #3248 (nested include boundary rename) was found by this composition and is required by it. - Solution steering: Hint, the graph on that branch is the proposal. Known follow-up:
qualify-runtimestill runs (and returns not-ready) when nothing was delivered. Backlog intake also needsarchon-shipto forward apublishinput to triage so the state label marks the issue touched (raised on #3224).
Source: coleam00/Archon