Shipyard's governed delivery pipeline — converge the mission, synthesize a durable spec, decompose vertical-slice tickets with blocking edges, run the frontier in parallel via team, close with verification, and report with a full decision log. Two entry gates — the yard gate (drydock audit) and the fog gate (an effort whose destination is unclear is routed to /ask-navigator before this pipeline starts). Humans own the checkpoints where there is no unique answer or the error cost is severe; ag...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Launch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/robinnorberg-launch)
---
name: launch
description: Shipyard's governed delivery pipeline — converge the mission, synthesize a durable spec, decompose vertical-slice tickets with blocking edges, run the frontier in parallel via team, close with verification, and report with a full decision log. Two entry gates — the yard gate (drydock audit) and the fog gate (an effort whose destination is unclear is routed to /ask-navigator before this pipeline starts). Humans own the checkpoints where there is no unique answer or the error cost is severe; agents continuously run everything repeatable and acceptable-by-evidence.
argument-hint: "<mission brief | path to existing spec> [--serial] [--team]"
level: 3
disable-model-invocation: true
pipeline: [deep-interview, launch]
---
# Launch
Launch is the shipyard's delivery run: from mission brief to shipped, verified change. It stands on the verifiability boundary — **agents continuously run everything repeatable and acceptable-by-evidence; humans decide what cannot be judged by the system or what fails expensively.** The goal is not maximum automation — it is maximum delegation of verifiable work, so the human's time is spent only on the decisions only a human can make.
The verifiability test, applied to every step: *if this is done wrong, can the system detect it? Can it redo or roll back automatically?* Both yes → agent. No unique answer, system cannot judge, or expensive to get wrong → human.
Launch assumes the shipyard exists — and refuses to run if it does not. The yard gate is the first action of every invocation, before document-language resolution and before reading any supplied spec:
The audit report includes `contractVersion: 2`; missing required day-one faces use `shipyard.yard.unlaid`, and consumers must not interpret retired `shipyard.surface.missing.*` IDs as optional-surface failures.
- **Run the full drydock `--check` audit** — require the day-one base faces `CLAUDE.md` and `GLOSSARY.md` (a recognizable legacy glossary `CONTEXT.md` is accepted until drydock migrates it); beyond those, audit only adopted optional surfaces, so an absent optional surface is not a finding. The audit also checks a missing or invalid glossary `documentLanguage`, dead paths, glossary terms unused in code, and standards never referenced. This is the single criterion: Launch performs no separate facility inventory of its own.
- **Actionable / high-confidence findings hard-block the run:** list every such finding verbatim, point at `/drydock`, state that the run never started and no artifacts were produced, and stop. Without an explicit override, treat any finding as blocking.
- **Narrow override (explicit intent only):** low-confidence findings, findings explicitly classified as false positives in the drydock report, or a scratch/throwaway repository explicitly declared by the user may be overridden only with deliberate, per-invocation user intent — the override must name the finding(s) or the throwaway scope and must never silently swallow a high-confidence actionable finding. No general bypass flag.
- **Current audit contract (version 2):** the mechanical subset of `--check` is executable — `node scripts/shipyard-audit.mjs [repoRoot]` emits a versioned JSON report and checks the required yard base faces, duplicate glossary authority, a missing/invalid `documentLanguage` tag, dead paths in `CLAUDE.md`, project-skill triggers, and intent statuses. Absence of an optional surface is not a finding; `shipyard.surface.missing.*` IDs are retired in contract version 2. Exit 0 = clean, 1 = high-confidence actionable findings present. The gate consumes that exit: 0 admits the run, 1 lists the findings verbatim and blocks. The heuristic classes (glossary terms unused in code, standards never referenced) stay in the drydock prose audit — low-confidence by construction, override rules unchanged.
- **A clean audit (or an explicitly overridden low-confidence/false-positive/scratch scope) admits the run.** The day-one faces are present; `docs/adr/` and `docs/business/` appear on first use — the slot is there when a decision settles, and if it is not, Launch triggers its first use (per drydock's deferred-surface table) and sediments into it immediately. Launch fills the paper trail as decisions settle and never creates a slot speculatively.
- The rules entry is `CLAUDE.md` — the shipyard map recognizes no substitute.
## The boundary
| Human checkpoints (the critical 20%) | Agent continuous run (the mechanical 80%) |
|---|---|
| C1 author the mission brief (objective + scope) | fact-finding and repo exploration, self-served |
| C2 approve acceptance criteria + test seam list | interview preparation: frontier questions batched with recommended answers |
| C3 approve ticket decomposition (granularity, blocking edges) | spec and ticket drafting, mechanical validation (independence, demonstrability, fits-one-context) |
| C4 answer irreversible decisions that emerge mid-run (batched, async) | tdd implementation at agreed seams, builds, tests, regressions |
| C5 accept the completion report; veto via Open Assumptions and the per-line sediment list | code-review, verify across the change, team frontier scheduling, the whole paper trail |
Between checkpoints the pipeline never idles: agents keep working every frontier ticket that does not depend on a pending human answer.
## Lifecycle posture
Launch is a **stateless composition over OMC's existing lifecycle** — it owns no runtime state machine:
- Team owns task statuses, transitions, cancellation, and runtime cleanup; Launch never mutates them outside Team's contract.
- The canonical `plan` → `execute` → `review` → `verify` surfaces own their existing lifecycle behavior. Launch-authored artifacts are limited to `GLOSSARY.md`, `docs/adr/`, and `docs/business/` — plus, only after C5 approval, the sediment slots named in the Phase 5 table. The spec and its tickets live only in the tracker — **the spec is the parent issue, the tickets are its native sub-issues** — and Launch never creates or writes local spec or ticket files; downstream readers take the spec and tickets from the tracker, never from a local tree.
- Launch has no automatic resume. After interruption, re-read the artifacts and current Team status, but continue only through a new explicit Launch invocation after the owning Team lifecycle has reached a supported terminal/cleanup boundary. Never infer a human approval or replay an `in_progress` task.
- Foggy efforts are the navigator's jurisdiction: when the fog gate routes to `/ask-navigator`, the run never started — no artifacts, no partial state. The navigator's map is the only carrier across sessions; launch resumes only from the mission brief it hands back.
- **Factory mode** (selected in Phase 3): the `omg factory` engine owns delivery state — run state, gates, PRs, the `factory:*` labels. Launch only reads it (`omg factory check`, `omg factory run status`) and never edits it or merges. Its tracker writes for tickets go through `omg factory enqueue` only, because enqueue is the code path that keeps re-runs idempotent and writes the edges the engine reads.
- Launch adds no approval receipt, revision counter, replay log, cancellation path, rollback mechanism, or cleanup lifecycle of its own.
Any durability claim in this skill is a claim about explicit tracker records or repository files, not about a hidden runtime.
## Phase 0 — Entry
A run reaches this phase only through a clean yard gate. Before reading a supplied spec or entering Phase 1, resolve the document language per the **drydock document-language contract** — the `shipyard-document-language-contract` block in `/drydock` is the single authority for the resolution order (explicit human choice wins; otherwise the `GLOSSARY.md` frontmatter `documentLanguage` tag; otherwise unanimous high-confidence inference from `CLAUDE.md` then `README.md`), the Chinese script-qualification rule (`zh-Hans` / `zh-Hant`), and the ask-once conditions (missing, mixed, conflicting, low-confidence, invalid-explicit, or script-ambiguous evidence asks one batched question; never guess). A legacy yard that still has only `CONTEXT.md` reads its tag from `CONTEXT.md` during the entry checks below and is migrated by the drydock legacy glossary migration (rename to `GLOSSARY.md`, content preserved) only after the brief self-check, fog gate, and map check admit the run and before the first Launch-authored write; a run that stops at those checks leaves the repository untouched. Never create a second glossary beside it. Launch-specific requirements: persist the resolved normalized tag back to `GLOSSARY.md` before any Launch-authored artifact so a fresh explicit invocation can read it without hidden conversation state. The human reads and maintains these artifacts; agents are language-agnostic.
Localize prose and human-facing labels/localizable scalar values only. Paths, slash commands, flags, code fences, placeholders, frontmatter keys and machine-semantic values, YAML/JSON keys, lifecycle tokens (`plan`, `execute`, `review`, `verify`), status enums (`pending`, `in_progress`, `completed`, `failed`, `ready-for-agent`), IDs, ticket `blockedBy`, public Team `blocked_by`, and all parser/control tokens remain byte-for-byte stable. Reference language companions are mutually exclusive: emit exactly one selected rendering, never bilingual duplicate headings or labels.
- Brief self-check before anything else: does the brief name an objective, a scope boundary, and non-goals? If two or more are missing, say so and ask for one sharpening pass — running the pipeline on a soft brief converts ambiguity into confident-looking output.
- **Fog gate**: after the sharpening pass, apply the navigator's fog test — **Q1**: can the destination be stated in one sentence (the spec, decision, or change this effort is finding its way to)? **Q2**: can the first three decisions be stated precisely right now, even though none can be answered yet? Either answer no → the run never starts: state that plainly, note that no artifacts were produced, recommend `/ask-navigator` (the shipyard's navigator charts fog as a map of decision tickets and hands back a mission brief), and stop. Hand over the residual questions and any vocabulary already settled, so the navigator's W1 does not re-ask them.
- **Map check**: before reading a supplied spec or entering Phase 1, look for an open `navigator:map` (tracker label). One exists and this invocation supplies no new brief → recommend `/ask-navigator` to work the next decision on that map, and stop. One exists and a new brief is supplied → ask one question — continue the open map, or start a new effort — before proceeding. If no tracker map exists but a legacy local map is present, stop and route through ask-navigator's one-time tracker migration instead of starting a duplicate effort.
- Spec path supplied → read it, jump to Phase 2.
- Mission brief → Phase 1. An accepted intent (`docs/intents/<slug>/intent.md`, `status: accepted`, latest round — see `/intent`) is a valid mission brief: its five sections carry the objective, scope, and open questions.
- Single-point fix → hand off to execute, exit.
## Phase 1 — Converge (human decides, agent prepares)
Run the interview with the design-tree protocol: map decisions and their dependencies, then work in **frontier rounds** — batch every currently-askable question into one round, numbered, each with a recommended answer. The human answers; the tree reshapes; recompute the frontier. Facts are always self-served by sub-agents from repo evidence — the human is asked only what no amount of exploration can settle.
**Comprehension reset.** Before a settled decision is presented for signature, restate it back in one short paragraph of plain technical prose, using the yard's own vocabulary — the terms as `GLOSSARY.md` defines them, no borrowed jargon. A restatement the captain cannot follow sends the decision back to the frontier, not forward on a guess: signing what was understood, not what was said, is how misreads become load-bearing. The same discipline repairs a message that did not land mid-flight: when the captain's reply shows a misunderstanding of what was sent, re-send it shorter and plainer in the GLOSSARY.md vocabulary, one misunderstanding at a time, before the conversation continues — compounding a misread is how two different conversations end up sharing one thread.
Paper trail, written the moment each item settles:
- domain vocabulary → `GLOSSARY.md` at repo root (one entry per term)
- decisions passing the ADR test (hard to reverse, surprising without context, real tradeoff) → `docs/adr/NNNN-<slug>.md`
- business rules and background discovered during convergence → `docs/business/` (one article per business question, opening paragraph states why it matters)
Before surfacing a proposal, check the paper trail (ADRs, `docs/business/`) for a prior rejection of the same concept: a concept-similar re-proposal must state what changed, or it is declined — a new name for a rejected idea is not a new idea.
The glossary is policed during the interview, not after it: a term that collides with `GLOSSARY.md` is challenged on the spot; a fuzzy term is pressed until it holds one exclusive name; business relationships are stress-tested against a concrete scenario; claims about system behavior are checked against the code, and a contradiction goes on the table instead of passing. A term the interview needs but the glossary lacks is itself a finding — either the word is being invented for this ship (withdraw it) or the glossary has a real gap (write the entry now).
Non-convergence here is normal work, not a failure: if the frontier will not empty, present the residual questions ranked — this is C2's input, not an error. If the residual questions themselves cannot be stated precisely (fog test Q2 fails), the destination itself is unsettled and that is beyond C2's authority: stop, note what already settled (vocabulary in `GLOSSARY.md`, answered questions), recommend `/ask-navigator`, and exit — the pipeline never invents a destination.
**Loft detour.** A residual question that is precise but cannot settle in prose — it needs to be seen or clicked, not described (how the UI should look, whether a state model feels right) — is answered with an artifact, not more questions: call the Skill tool with "loft", let the captain react, and fold that reaction back into the interview. The lofted artifact is C2's input; the captain signs what they saw, not what they were told.
**Harbor briefs.** A mission brief handed over by `/harbor` carries signed decisions with links and applicable conditions: consume them as already-made — do not re-ask unchanged business goals. If the code has moved since the evidence was gathered (new head, changed base), re-verify the affected technical evidence; new implementation scope beyond the signed brief still gets its own approval.
**Settled-consensus exit.** When this invocation arrives from a conversation whose decision tree is already worked — every frontier question answered, vocabulary and decisions already settled (by a live interview, a decision questionnaire, or the latest tracker handoff comment) — Phase 1 collapses to a **consensus audit**: read what the session settled, verify each settled decision against the evidence it names, restate the whole set once (the comprehension reset above), and draft the spec directly. No questions are re-asked; the fog gate and C2 still gate the run — skipping the interview never skips a signature. Consensus quality is verified, never assumed: any settled decision that fails its restatement re-opens, and the interview resumes from there.
## Phase 2 — Spec synthesis (agent drafts → C2 approves)
Synthesize the spec as a **parent tracker issue**. When the mission is an accepted intent, follow the four-step contract from the intent skill: read the accepted intent (latest round), combine with the existing codebase, follow the Rules pillar (`CLAUDE.md` + `docs/standards/` + `docs/business/`), and list every doubt and rule conflict — graded into the spec's pending-confirmation section; intent open questions carry into the spec verbatim, keeping their pending status:
```
# <Feature> Spec
## Problem
## Solution
## User Stories (numbered, each with testable acceptance criteria)
## Implementation Decisions
## Testing Decisions (external behavior only)
## Out of Scope
```
Draft all of it, then stop at **C2**: present the acceptance criteria and the test seam list for human approval. When the mission is an accepted intent, the C2 presentation also carries the intent-flavor checklist: does the spec still solve the intent's original problem, are the carried open questions accounted for, and do high-risk items get a tech-lead consult before approval. Seams are selected by repo evidence and the deep-module discipline (public interfaces, existing test seams, depth analysis; the vocabulary is seeded in `docs/standards/architecture.md`); the human confirms or corrects the list — a seam the human has not approved gets no tests. Each seam entry declares its **boundary class** — in-process, locally substitutable, owned-remote (a port with a production and a test adapter), or true-external (an injected substitute) — because the class decides how the seam is tested.
**Tender rule.** When the interface's shape is itself contested — two plausible designs, neither settleable by talk — C2 signs *between* alternatives, never on the only proposal on the table: draft the candidate shapes in parallel sub-agents, each under a different emphasis (smallest interface surface · widest future fit · smoothest default path for the most common caller · cleanest cross-boundary adapter), present them side by side compared on depth, locality, and seam placement, and let the captain pick one or fold a hybrid.
Durability gate (agent-enforced, no approval needed): spec and tickets carry contracts, never coordinates — no file paths, no line numbers. Fragments encoding a decision better than prose (state machines, reducers, schemas) are the exception and state their origin (usually a loft).
Testing decisions retire orphans: when a seam is deepened or replaced, the tests pinned to the old interface retire with it — new tests write to the new interface only. The testing rules themselves are seeded in `docs/standards/process.md`.
## Phase 3 — Ticket decomposition (agent drafts → C3 approves)
**Mode selection (first action of Phase 3; the spec issue exists).** Run `omg factory check --parent <spec> --json`:
- exit 5 (no compatible forge, which includes no factory config: `omg factory setup` writes it), a JSON `forge` other than `github` (enqueue supports GitHub only on this release), or `--team` on this invocation → **team mode**: Phases 3–5 run as written, and the factory-mode paragraphs do not apply.
- otherwise → **factory mode**: the factory-mode paragraphs in Phases 3–5 replace the text they name. Factory mode does not need `factory.intake.source`: the `--parent` and `--spec` commands below name the spec. When the source is not a label, the enqueue dry run warns that the children are not added to it; show that warning at C3.
State the selected mode in the C3 presentation, so the captain signs the delivery path along with the tickets.
Split into vertical slices as **child tracker issues** (native sub-issues of the parent spec issue), dependency-ordered, each declaring `blockedBy: [ids]`. Native sub-issues are required in team mode only. In factory mode the factory handoff below replaces how the children are created: enqueue creates them, and native sub-issues are optional.
- each ticket crosses every layer, is independently demonstrable, and fits one fresh context
- **blocking edges are load-bearing declarations**: a ticket states what it waits on — which decisions, artifacts (specs, ADRs, loft results), or other tickets — not just which ticket numbers. The declaration is C3's input: granularity wrong here misroutes every dependency, and a ticket whose waits are undeclared cannot be scheduled honestly on the frontier.
- wide refactors go expand-contract: add the new form, migrate in batches, remove the old — each batch a ticket
Agent-side mechanical validation runs first (independence, demonstrability, context fit). Then **C3**: present granularity, blocking edges, and proposed merges/splits for human approval. Iterate until approved. Mark every ticket `ready-for-agent`. The C3 bar: a fresh worker can start any ticket without a question back — a ticket that must ask sends the flaw up to the spec, not to the worker.
Integration-wiring rule: every vertical slice includes its own wiring and a smoke assertion — a slice whose output nothing mounts, serves, or imports is not done. Cross-slice seams that no single slice owns (route mounting, static serving, entry-point wiring) get an explicit integration ticket as the last frontier item.
**Factory handoff (factory mode).** The tickets reach the tracker through `omg factory enqueue`, never through hand-written `gh` calls:
1. Draft each ticket so a factory lane can run it. Lanes run network-off and cannot read the spec issue, so the body is self-contained: the user stories it serves, its seams with boundary class, and pointers to in-repo ADRs. Each acceptance item names its contract in backticks (`TokenStore.refresh()`), which passes both the durability gate (no paths) and the factory's vague-AC check. Done when every ticket is self-contained and has at most `factory.check.maxAcceptanceItems` acceptance items.
2. Write the ticket file to the session scratchpad, never the repo: `{ "schemaVersion": 1, "spec": <spec>, "tickets": [{ "key", "title", "body", "acceptance": [...], "blockedBy": [...], "priority" }] }` (`blockedBy` and `priority` 1–4 optional). `key` is the slug signed at C3 (`[a-z0-9-]{3,60}`) and the idempotency key, so a re-run keeps every key unchanged; `blockedBy` names keys in the file or `#<n>` for an existing item. Done when the file exists.
3. Run `omg factory enqueue --spec <spec> --file <path> --dry-run` and present its output at C3 with granularity and edges. The C3 signature covers everything the dry run lists: the created and updated issues, the intake label, and the mark step that adds `factory.intake.marker` to the runnable children. Exit 2 means the file was refused and nothing was written: fix the file and dry-run again. Done when the captain signs C3 on that output.
4. Run the same command without `--dry-run` and with `--json`. Parse the JSON and post one table built from its `items` (key, id, action, bucket, reasons) plus its `mark.failed`, if any, on the spec as the execution-result comment. Done when the comment exists.
5. Exit 1 means a tracker read or write, or the mark step, failed part-way: post the table for what the JSON shows, then re-run step 4 with the same file. The re-run is idempotent by `key`, but wait a minute before it: a create that landed without its task-list write is found only through GitHub search, which is eventually consistent. Done when a run exits 0.
In factory mode `ready-for-agent` is enqueue's mark step — no separate label. `kept-claimed` means a factory run holds the item and it was not edited. An `orphaned` item (its key left the file) is never closed by enqueue, and launch does not close it either: list it in the C3 presentation and in the execution-result comment. The captain closes it by hand or leaves it open. Native sub-issue and `blockedBy` links stay optional; the factory reads the `Part of #<spec>` and `Blocked by #<n>` lines and the spec's task list that enqueue writes.
A single-slice item routed from `/harbor` is its own spec: the ticket file holds one ticket and `spec` is that item. Enqueue creates one child carrying the acceptance criteria and never writes them into the item. Enqueue exits 2 when the item's author is not an OWNER, MEMBER or COLLABORATOR; then open a spec issue of launch's own that links the item, and enqueue against that.
## Phase 4 — Run the frontier
The frontier is every ticket whose blockers are all complete.
**Factory mode.** This paragraph replaces the scout pass, integration topology, repair rule, Team dispatch, and C4 text below. Delivery is serial (one engine per repository). Loop on `omg factory run --next --parent <spec> --json` and branch on each exit code:
- exit 0 with `"next": null` (message `nothing runnable`) → the loop ends.
- exit 0 otherwise → the picked run parked at the `merge` gate (or reached a terminal phase). Continue with the next `--next`.
- exit 4 → the picked run parked at another `awaiting-human` gate. Record its id and gate for C4 and continue with the next `--next`.
- exit 1 (a run failed) or exit 2 (usage, such as missing forge config) → stop the loop and report it with `omg factory run status <n>`.
A parked run's item checks as `blocked` with reason `run-active:<phase>/<gate>`, so `--next` never re-picks it and moves to the next independent ticket. Then report the frontier from `omg factory check --parent <spec> --json` (bucket and reason per child) and stop — launch does not wait for merges. The C4 surface is the exit-4 gates recorded above: read each with `omg factory run status <n> --json` and batch those questions at the next launch invocation. Done when the loop ended on `nothing runnable` or a stop, and the frontier report is posted.
**Team mode** runs everything from the scout pass to the end of this phase.
**Scout pass.** Exploration shared by two or more tickets runs once, before dispatch: an explore subagent resolves the shared questions and reports the findings into the session — notes stay in the conversation, never written to disk. The findings fold into the relevant tracker tickets at dispatch; workers never re-explore what a ticket already settles. A question only one ticket needs stays in that ticket.
**Integration topology.** Worker output converges on one surface that outlives the workers: an integration branch created at Phase 4 start — on a PR platform, opened as a draft PR referencing the spec and every ticket. Worker branches start from the integration branch's tip — a worker based on a stale base merges into conflicts nobody owns — and are merged through team's merge coordination (`checkMergeConflicts` → `mergeWorkerBranch`) only after the two-axis review gate passes for that ticket; C5 verify runs against the integration surface. The draft PR opens after the first worker merge lands on the integration branch — an empty branch has nothing to show a reviewer. This stays inside Team's contract: the branch is topology, not a new launch state machine.
**Repair rule.** Two-axis review findings are repaired by a single repair worker and re-passed through the same gate. The reviewer judges and never repairs; the implementer never self-approves.
**Parallel (default, 2+ tickets).** Hand tickets to team: each ticket becomes a team task, `blockedBy` edges carry over — team's claim mechanics pick only frontier tasks. Spawn N workers. Each worker implements with the tdd discipline at the seams approved in C2, applying `/minimal-code-discipline` as the writing-time discipline (it stays opt-in); a ticket closes only after code-review passes on the diff, declared by the reviewer — the implementer never self-approves.
**Serial (single ticket, or `--serial`).** Delegate one ticket at a time to an executor subagent; same review gate.
**Two-axis review gate.** The closing review runs along two axes, in parallel, reported separately — never merged or cross-ranked, because a change can pass one axis and fail the other (standards-conforming but wrong behavior; faithful but convention-breaking). The reviewer fails the ticket when either axis fails:
- **Standards axis** — the diff against the matching `docs/standards/` volume, plus a judgement-call-only smell baseline (a documented repo standard overrides the baseline; anything tooling already enforces is skipped). This is the standing consumer that keeps the standards surfaces referenced.
- **Spec axis** — the diff against *this ticket's* acceptance criteria (the spec is the total ledger the tickets were decomposed from; it is consulted only to trace where a criterion came from and to rule on smuggled scope — behavior no ticket asked for): requirements missing or partial, behavior nobody asked for, and requirements that look implemented but look wrong — each finding quoting its source line.
**C4 — decisions that emerge mid-run.** When a parallel Team worker hits a decision passing the ADR test, it stops before decision-dependent mutation, records the question (options, recommendation, reversibility note) in the failed transition's `error` field and as a comment on the parent spec issue, and exits through Team's supported `in_progress` → `failed` transition. This is a terminal Launch outcome: do not reopen the task, create an in-run successor, force cleanup, or start another Team from this invocation. Surface the blocker with pointers to the failed task and decision artifact.
On a later explicit Launch invocation, first require the owning Team lifecycle to be terminal and cleaned up through its supported owner. Then batch every pending C4 question for the human, record the answers in the decision log/ADRs, and rebuild the ticket frontier before starting execution. All ticket dependencies are declared before dispatch: ticket `blockedBy` metadata maps to the public Team `blocked_by` field with numeric task IDs when tasks are created through the Team task API. Team's existing task-ID dependency resolution rejects early claims and makes dependents eligible only after their predecessors complete. The team lead never claims a task unless it is explicitly registered as a Team worker. Launch never dynamically mutates a claimed task's dependencies and never promises automatic re-dispatch after C4.
**Serial C4 (`--serial`).** The executor stops before decision-dependent mutation and returns the question without claiming completion. Record and resolve the human question at the batch boundary, then start a fresh executor successor with the recorded answer and remaining acceptance criteria. Do not replay or resume the interrupted executor context, and do not manufacture Team tasks when Team is not active.
**Repeated failure stop.** The same verification failure surviving three repair attempts halts that lane with a root-cause hypothesis for the human. This is the one condition that interrupts C4's batching immediately.
## Phase 5 — Closeout (agent reports → C5 accepts)
**Factory mode.** Closeout is a new explicit launch invocation, and it starts only when `omg factory check --parent <spec> --json` reports every child with reason `closed`, `merged`, or `run-finished:merged`. Verify runs on `ship.base`. Run numbers come from the engine's outcome comments on each child and its rollup comments on the spec. There is no integration PR, so the `/pr` step is skipped; every other step below applies unchanged.
- all tickets terminal with evidence → run verify across the whole change
- reconcile the paper trail: GLOSSARY.md accurate, ADRs complete, spec updated where implementation taught it something
- yard re-check: re-run the drydock `--check` audit; any new findings since entry are reported as **yard drift**, with a pointer to `/drydock`
- **sediment pass — answer: what did this ship teach the yard?** Consume a **structured retro** first — what was built (the shipped scope in one line per slice), what broke (every failure that surfaced: three-strike root causes, verify findings), what taught (C4 answers, review rejections, and any map resolutions or deferred-sediment lines from a source map this run followed), and where the **environment dragged** (wayfinding friction, checks that ran too slow or too late, standards gaps that forced guesswork, tools that no-op'd, information that was harder to reach than it should have been) — then answer. Propose every lesson as `lesson → slot → intended change` against the slot table below, or decline it explicitly with a reason; a ship with nothing to teach must say so verbatim as "no new lessons". This requirement blocks non-answers, never empty answers — inventing lessons to have one is the same violation as skipping the question. The lesson list rides in the completion report next to the Open Assumptions, each line individually vetoable; approved lessons are written to their slots only after acceptance, and the report records each landing's file location. Before writing any lesson into a slot, call the Skill tool with `agent-doc-discipline` and apply its rules; the sediment pass is complete only after the skill's verification checklist passes.
| Lesson kind | Slot |
|---|---|
| terms and boundaries settled mid-run | `GLOSSARY.md` glossary |
| checkable behavior rules (carry a why) | `docs/standards/` matching volume (architecture / data / process) |
| most-violated conventions (thin-entry grade) | `CLAUDE.md` body — propose only |
| hard-to-reverse decisions | `docs/adr/` (C4 answers already land here) |
| ruled-out directions (concept + why rejected) | `docs/adr/` (a rejection is a decision too; the why is the load-bearing part) |
| business rules / background | `docs/business/` |
| UI patterns / component contracts | `design-system/` |
| reusable craft | `.omg/skills/` (through the skillify gate) |
| repeatedly needed automation / integrations | `scripts/` or `.mcp.json` |
| no slot fits | decline explicitly with the reason |
- **thin-entry budget:** the `CLAUDE.md` body carries at most five hot entries. A lesson is thin-entry grade only when the source checklist evidences the same violation at least twice in this run, or the captain marks it load-bearing. Entries are listed most-recently-promoted first; the coldest entry is deterministically the last one listed, and a promotion over budget must demote exactly that entry in the same proposal, moving its full text back to `docs/standards/` — nothing is deleted, only re-tiered. Bloat is rebalanced ship by ship and is deliberately not a `--check` finding.
- state the **run numbers** in the completion report: tickets completed, C4 decisions surfaced, three-strike halts, and sediment lines proposed — plain facts in the report text, no telemetry system, no state files
- emit the **completion report**: shipped scope, verification evidence, paper-trail locations, yard-drift findings (if any), the sediment list (each line vetoable), and Open Assumptions ranked by how much a human would likely want to veto them
- when the platform reviews through PRs and Phase 4 opened a draft PR, draft the PR body per `/pr` from the report's evidence and linked ADRs, and mark the PR ready only after C5 acceptance
## Context hygiene
- Phases 1–3 in one unbroken context window; compact at phase boundaries only (HUD high water is the signal).
- **Canonical artifacts are the primary source; conversation memory is secondary.** Re-read tracker issues and comments for the spec, tickets, and handoff, and repo files for the paper trail; never continue from remembered state alone.
- **The four-way boundary choice:** continue (context still fits and is unpolluted) → re-enter from canonical artifacts (tracker issues/comments or repo files, as appropriate) → hand off (pointer, never content) → compact (approaching the limit, at the phase edge). Take the first that fits.
- Long headless runs: prefer `--output-format stream-json` (or periodic progress markers) so the orchestrator sees liveness — plain text mode emits nothing until the turn ends.
- Phase 4 runs in fresh contexts per ticket by construction (team workers or subagents).
- Handoffs pass pointers, never content. The tracker handoff comment carries three things only: **pointers** (where the material and the decisions live — never copies), **the next watch** (what the next phase does, and which skills to call), and **the warning lines** (red lines already ruled out; credentials redacted). When a compact is unavoidable, pass an instruction with it, so the summary keeps what the next phase needs.
- **Planned session handoff**: when a session must end mid-effort by design — context budget, scheduled boundary, a deliberate pause — update the parent spec issue with a tracker comment containing pointers to settled decisions, the open frontier, Team task states, the next watch, and warning lines (credentials redacted). Record each resolution in its child issue; the parent issue, child issues, and latest handoff comment are the complete re-entry source. Do not create a local handoff artifact, transcript, or copy of tracker content.
- Session died mid-run: preserve the tracker state and stop. A later explicit invocation may continue only after the owning Team lifecycle reaches its supported terminal/cleanup boundary; it must re-read the parent issue, native child issues and their status/dependency/evidence, plus the latest handoff comment, then ask rather than infer where pointers or decisions are missing. Team remains authoritative for runtime state.
## Completion definition
All tickets terminal with evidence, verify clean on the whole change, paper trail reconciled, report emitted — and every decision the agents made on the human's behalf is answerable with one pointer to where it was recorded.