Docs / SDLC phases

SDLC phases

Reference for every child issue type the Lead creates under a mission root: who runs it, what it produces, and what signals completion.

Every agent interaction in the factory is a child issue of the mission root; there are no "Phase" or "Epic" entities (ADR 0001). The role-to-phase map and completion markers are authoritative in registry/phase-contracts.json. Which phases a mission runs depends on its kind: — see Mission kinds.

Issue types#

Issue Run by Produces Done signal Notes
[mission] lead Decomposition plan; every child Lead sets the root done The container; only the Lead closes it
[discovery] pm-agent PRD: goal, user stories, acceptance criteria, non-goals [HANDOFF] Skippable for bug-fix with a reproducer
[plan] tech-architect Task breakdown, decomposition tier (0/1/2), ui_surface flag [HANDOFF] Unconditional on kind:feature (ADR 0036)
[design-ux] ux-designer UX spec + prototype [HANDOFF] UI-surface missions only
[review-ux] ux-reviewer Browser-verified verdict on the UX spec + prototype [VERDICT-UX] Independent of the designer
[design-tech] tech-architect Tech spec: system design, flows, data contracts, API shapes [HANDOFF] Skipped by tech-excellence, dependency-bump, trivial bug-fix
[review-design] arch-, security-, perf-, data-reviewer Pass/fail verdict with gaps [VERDICT] per reviewer Design Review Committee (DRC): four issues in parallel
[fix-design round:N] tech-architect Revised tech spec [HANDOFF] One per failed DRC round
[qa-plan] qa-consultant Pre-build test plan [HANDOFF] Build-chain phase
[build] fullstack-engineer (or mobile-engineer) Implementation on the mission branch; PR [HANDOFF] with branch + PR URL
[review-code] pr-reviewer + pr-reviewer-techspec Diff review; tech-spec fulfilment check [VERDICT-CODE] Reviews the diff, not the spec
[qa-review] qa-consultant Adversarial E2E run, functional + visual [VERDICT-QA]
[fix round:N] fullstack-engineer Fixes for QA or code-review failures [HANDOFF] Same branch
[deploy] devops-engineer Runbook + staged rollout [VERDICT-DEPLOY] Merge gate under deployment_phase: 1 (below)
[onboard-build] onboarding-engineer Paved-road substrate; seeds .agents/knowledge/ [HANDOFF] Prepended for non-ready repos (ADR 0052); passes when readiness.py --gate <slug> exits 0
[monitor] oncall-engineer Post-deploy observation, incident triage Stays open for the observability window Only once a live runtime exists

Handoffs and verdicts are structured JSON comments (schemas/handoff.schema.json, schemas/verdict.schema.json). On each child-done wake the Lead runs the deterministic validator (reconcile.py --validate-handoff) and routes on its exit code — a structurally incomplete handoff bounces back to todo (ADR 0051).

DRC fan-out#

[review-design] is always a four-way parallel fan-out. The Lead creates all four issues together and does not advance until all four are done.

  • All pass → advance toward [build].
  • Any fail → [fix-design round:N] for the tech-architect, then all four re-run.
  • Three failed rounds → [NEEDS_INPUT] for a human decision.

Fix rounds#

Fix rounds reuse the mission branch and PR; the title carries round:N.

[build]          → pushes the mission branch, opens PR
[qa-review]      → FAIL: "empty state crashes"
[fix round:1]    → engineer fixes on the same branch
[qa-review]      → re-run (new issue, same branch) → FAIL: "mobile viewport breaks"
[fix round:2]    → engineer fixes again
[qa-review]      → PASS

Merge gate (deployment_phase: 1)#

registry/factory.yaml sets deployment_phase: 1: there is no live runtime, so [deploy] degrades to a merge gate and no devops-engineer is dispatched.

  1. The Lead posts [NEEDS_INPUT] with pending-approval:merge on the mission root and sets metadata.resume_to to itself.
  2. The root is labelled blocked + needs-human + pending-approval:merge and reassigned to a human.
  3. You review and merge the PR, then comment approved on the root (use mission-responder).
  4. needs-human-requeue sees the reply, clears needs-human, and resumes the Lead (status=todo).
  5. The Lead confirms the merge and closes the mission.

At deployment_phase 2 or 3 the real devops-engineer path replaces the merge gate.

Labels#

phase:<name> on each child is the machine-readable phase; the validator stamps it if missing. Build-chain children also get kind:build or kind:review; planning and design children inherit the mission's kind:. On Tier 1 fan-outs, build-chain children carry feature:F<n> and milestone:M<n> labels to group each feature's pipeline on the board.

Source: docs/yantra/sdlc-phases.md