Skip to content

Phases and Stages

The AI-DLC lifecycle is organized into 5 phases containing 32 stages. This chapter explains each phase, lists its stages, and shows how they connect.

Harness note. The methodology — the phases, stages, agents, and gates this guide describes — is identical on every harness. Where a mechanic differs by harness (how a gate renders, how a subagent is dispatched, where config lives), the difference is called out and tabled in your harness's chapter: Running on other harnesses. Examples here use Claude Code unless noted.


Lifecycle Overview

graph LR
    subgraph INITIALIZATION["INITIALIZATION (0.1-0.3)"]
        Z1["Workspace Scaffold"]
        Z4["State Init"]
        Z1 -.->|"3 stages"| Z4
    end

    subgraph IDEATION["IDEATION (1.1-1.7)"]
        I1["Intent Capture"]
        I7["Approval & Handoff"]
        I1 -.->|"7 stages"| I7
    end

    subgraph INCEPTION["INCEPTION (2.1-2.8)"]
        N1["Reverse Engineering"]
        N7["Delivery Planning"]
        N1 -.->|"8 stages"| N7
    end

    subgraph CONSTRUCTION["CONSTRUCTION (3.1-3.7)"]
        C1["Functional Design"]
        C7["CI Pipeline"]
        C1 -.->|"7 stages per unit"| C7
    end

    subgraph OPERATION["OPERATION (4.1-4.7)"]
        O1["Deployment Pipeline"]
        O7["Feedback & Optimization"]
        O1 -.->|"7 stages"| O7
    end

    Z4 -->|"auto-proceed"| I1
    I7 -->|"Verification Gate 1"| N1
    N7 -->|"Verification Gate 2"| C1
    C7 -->|"Verification Gate 3"| O1
    O7 -.->|"Feedback Loop"| I1

    style INITIALIZATION fill:#f3e5f5,stroke:#9c27b0
    style IDEATION fill:#e8f5e9,stroke:#4caf50
    style INCEPTION fill:#e3f2fd,stroke:#2196f3
    style CONSTRUCTION fill:#fff3e0,stroke:#ff9800
    style OPERATION fill:#fce4ec,stroke:#e91e63

Phases execute sequentially. At each phase boundary (except Initialization → Ideation), a verification gate runs automated traceability checks to catch missing links, orphaned artifacts, or inconsistencies before downstream stages build on them.


Phase 0: Initialization

Purpose: Bootstrap the workspace — scaffold the docs directory, detect the workspace, and initialize state. The welcome message is shown at session start via the companyAnnouncements entry in settings.json (not a stage).

Initialization stages run automatically without approval gates. All three execute inside a single deterministic tool call (aidlc-utility intent-birth) that completes in well under a second.

# Stage Lead Key Artifacts Condition
0.1 Workspace Scaffold orchestrator first intent's record dir (aidlc/spaces/<space>/intents/<YYMMDD>-<label>/) ALWAYS
0.2 Workspace Detection orchestrator aidlc-state.md (workspace state) ALWAYS
0.3 State Initialization orchestrator aidlc-state.md, audit/ shards ALWAYS

Execution notes: - All three stages run inline inside aidlc-utility intent-birth - no LLM subagent delegation, no per-stage prompt. - Workspace detection is a rule-based scanner (file extensions, known config filenames, package manifests). - No user interaction is needed during this phase.


Phase 1: Ideation

Purpose: Validate the initiative — capture intent, assess feasibility, define scope, form the team, and secure approval to proceed.

flowchart TD
    S11["1.1 Intent Capture & Framing\n(aidlc-product-agent)"]
    S12["1.2 Market Research\n(aidlc-product-agent)"]
    S13["1.3 Feasibility & Constraints\n(aidlc-architect-agent)"]
    S14["1.4 Scope Definition\n(aidlc-product-agent)"]
    S15["1.5 Team Formation\n(aidlc-delivery-agent)"]
    S16["1.6 Rough Mockups\n(aidlc-design-agent)"]
    S17["1.7 Approval & Handoff\n(aidlc-delivery-agent)"]
    VG1{{"Verification Gate:\nIdeation → Inception"}}

    S11 ==>|ALWAYS| S12
    S11 -.->|"skip: bugfix, refactor,\ninfra, security-patch"| S14
    S12 -.->|CONDITIONAL| S13
    S12 -.->|"skip if no\nfeasibility needed"| S14
    S13 -.->|CONDITIONAL| S14
    S14 ==>|ALWAYS| S15
    S14 -.->|"skip: poc,\nbugfix, refactor"| S17
    S15 -.->|CONDITIONAL| S16
    S15 -.->|"skip if no UI"| S17
    S16 -.->|CONDITIONAL| S17
    S17 ==>|ALWAYS| VG1

    style S11 fill:#c8e6c9,stroke:#388e3c
    style S14 fill:#c8e6c9,stroke:#388e3c
    style S17 fill:#c8e6c9,stroke:#388e3c
    style S12 fill:#fff9c4,stroke:#f9a825
    style S13 fill:#fff9c4,stroke:#f9a825
    style S15 fill:#fff9c4,stroke:#f9a825
    style S16 fill:#fff9c4,stroke:#f9a825
    style VG1 fill:#ef9a9a,stroke:#c62828
# Stage Lead Supporting Key Artifacts Condition
1.1 Intent Capture & Framing aidlc-product-agent aidlc-architect-agent Intent statement, stakeholder map ALWAYS
1.2 Market Research aidlc-product-agent Competitive analysis, build-vs-buy CONDITIONAL
1.3 Feasibility & Constraints aidlc-architect-agent aidlc-aws-platform-agent, aidlc-compliance-agent Feasibility assessment, constraint register, RAID log CONDITIONAL
1.4 Scope Definition aidlc-product-agent aidlc-delivery-agent Scope definition, intent backlog ALWAYS
1.5 Team Formation aidlc-delivery-agent Team assessment, mob composition plan CONDITIONAL
1.6 Rough Mockups aidlc-design-agent aidlc-product-agent Wireframes, user flows, concept deck CONDITIONAL
1.7 Approval & Handoff aidlc-delivery-agent aidlc-product-agent Initiative brief, decision log ALWAYS

Stage colors: Green = ALWAYS (runs whenever the selected scope includes it). Yellow = CONDITIONAL (may skip based on scope, project type, or plan). For the exact per-scope stage membership, see the Stage-by-Scope Matrix.

Intent Capture records the initial description, workflow-selected scope, and used memory rules in its questions file. Claims in the intent statement and stakeholder map carry inline source tags; both artifacts surface assumptions and open questions. Retained assumptions require explicit confirmation before the Product Lead reviewer and approval gate run.


Phase 2: Inception

Purpose: Elaborate the requirements — analyze the codebase, elicit requirements, design architecture, decompose into units of work, and plan delivery.

flowchart TD
    S21{{"`**2.1 Reverse Engineering**
    (aidlc-developer-agent + aidlc-architect-agent)
    pipeline: 2-link`"}}
    S2P["2.2 Practices Discovery\n(aidlc-pipeline-deploy-agent)"]
    S22["2.3 Requirements Analysis\n(aidlc-product-agent)"]
    S23["2.4 User Stories\n(aidlc-product-agent)"]
    S24["2.5 Refined Mockups\n(aidlc-design-agent)"]
    S25["2.6 Application Design\n(aidlc-architect-agent)"]
    S26["2.7 Units Generation\n(aidlc-architect-agent)"]
    S27["2.8 Delivery Planning\n(aidlc-delivery-agent)"]
    VG2{{"Verification Gate:\nInception → Construction"}}

    BF_CHECK{"Brownfield?\n(from Initialization 0.3)"}
    BF_CHECK -->|Yes| S21
    BF_CHECK -->|No| S2P
    S21 -.->|CONDITIONAL| S2P
    S2P -.->|CONDITIONAL| S22

    subgraph RE_DETAIL["Two-Link RE Pipeline"]
        direction LR
        DEV_SCAN["Step 1: Developer\nCode Scan"]
        ARCH_SYNTH["Step 2: Architect\nSynthesis"]
        DEV_SCAN --> ARCH_SYNTH
    end

    S21 -.-> RE_DETAIL

    S22 ==>|ALWAYS| S23
    S22 -.->|"skip if no user-facing\nfeatures"| S25
    S23 -.->|CONDITIONAL| S24
    S23 -.->|"skip if no UI\nor mockups skipped"| S25
    S24 -.->|CONDITIONAL| S25
    S25 -.->|"if in scope"| S26
    S22 -.->|"if 2.6 skipped"| S26
    S26 ==>|ALWAYS| S27
    S27 ==>|ALWAYS| VG2

    style S21 fill:#bbdefb,stroke:#1565c0
    style S2P fill:#fff9c4,stroke:#f9a825
    style S22 fill:#c8e6c9,stroke:#388e3c
    style S26 fill:#c8e6c9,stroke:#388e3c
    style S27 fill:#c8e6c9,stroke:#388e3c
    style S23 fill:#fff9c4,stroke:#f9a825
    style S24 fill:#fff9c4,stroke:#f9a825
    style S25 fill:#fff9c4,stroke:#f9a825
    style VG2 fill:#ef9a9a,stroke:#c62828
    style RE_DETAIL fill:#e8eaf6,stroke:#3f51b5
# Stage Lead Supporting Key Artifacts Condition
2.1 Reverse Engineering aidlc-developer-agent aidlc-architect-agent 9 RE artifacts Brownfield projects
2.2 Practices Discovery aidlc-pipeline-deploy-agent aidlc-quality-agent, aidlc-developer-agent, aidlc-devsecops-agent team-practices.md, discovered-rules.md, evidence.md (promoted to aidlc/spaces/<active-space>/memory/team.md / project.md on affirmation) CONDITIONAL
2.3 Requirements Analysis aidlc-product-agent requirements.md ALWAYS
2.4 User Stories aidlc-product-agent aidlc-design-agent, aidlc-developer-agent, aidlc-quality-agent stories.md, personas.md User-facing features
2.5 Refined Mockups aidlc-design-agent aidlc-product-agent Hi-fi mockups, interaction spec UI projects
2.6 Application Design aidlc-architect-agent aidlc-aws-platform-agent, aidlc-design-agent App design artifacts, ADRs Per execution plan
2.7 Units Generation aidlc-architect-agent aidlc-delivery-agent unit-of-work.md, unit-of-work-dependency.md (DAG), unit-of-work-story-map.md ALWAYS
2.8 Delivery Planning aidlc-delivery-agent aidlc-architect-agent bolt-plan.md, team-allocation.md, risk-and-sequencing-rationale.md, external-dependency-map.md ALWAYS

Key behavior: Stage 2.1 runs as a pipeline (2-link chain) — first an aidlc-developer-agent code scan, then an aidlc-architect-agent synthesis that writes the artifacts. It only executes for brownfield projects. Stage 2.2 runs as a subagent hub-and-spoke for greenfield and brownfield work: the lead drafts, quality/developer/devsecops inspect it independently, the human interview resolves gaps, and the lead integrates. Stage 2.4 runs as a mob — the lead drafts, and the design, developer, and quality agents contribute in parallel via contribution files.


Phase 3: Construction

Purpose: Build the solution — design, implement, and test — in reviewable slices.

Why Construction works the way it does

Construction used to run stage-by-stage per unit of work, with an approval gate after every stage. A three-unit project meant fifteen gates before a single line of tested code shipped. Customers called it babysitting.

The first fix batched all questions, all design artifacts, then all code generation across every unit — one review at the end. That swung the pendulum the other way. A 15-unit run could land 15,000 lines of code at the build-and-test gate. Too much to verify in a single review.

The current shape is the middle path: Construction runs Bolt by Bolt. Each Bolt is one pass through stages 3.1–3.5 for a Unit (or small group of dependency-linked Units). The first Bolt is the walking skeleton — gated and interactive: the smallest end-to-end slice that proves the architecture. Once that ships, the ladder prompt fires exactly once: "continue autonomously, or gate every Bolt?" Your answer is recorded in state and governs every remaining Bolt in the workflow. Stages 3.6 (Build and Test) and 3.7 (CI Pipeline) run once at the end across everything.

The shape gives you an early confidence checkpoint and a deliberate autonomy choice, with reviewable slices sized to the Bolts 2.8 already planned.

Construction flow

flowchart TD
    START(["Begin Construction"])
    READ[/"Read bolt-plan.md (from 2.8)\n+ unit-of-work-dependency.md (from 2.7)"/]

    BOLT1["Bolt 1 — Walking Skeleton\n(stages 3.1–3.5)"]
    GATE1{{"Walking-skeleton gate\nAlways presented"}}

    LADDER{"Ladder prompt\n(fires once)"}
    MODE_AUTO["Continue autonomously\nConstruction Autonomy Mode: autonomous"]
    MODE_GATED["Gate every Bolt\nConstruction Autonomy Mode: gated"]

    NEXT_BATCH["Next Bolt (or parallel batch)\n(stages 3.1–3.5)"]
    GATE_N{{"Bolt/batch gate\n(skipped if autonomous)"}}

    MORE{"More Bolts?"}

    S36["3.6 Build and Test\n(aidlc-quality-agent)\nALWAYS — once"]
    S37["3.7 CI Pipeline\n(aidlc-pipeline-deploy-agent)\nCONDITIONAL — once"]
    VG3{{"Verification Gate:\nConstruction → Operation"}}

    START --> READ --> BOLT1 --> GATE1 --> LADDER
    LADDER --> MODE_AUTO
    LADDER --> MODE_GATED
    MODE_AUTO --> NEXT_BATCH
    MODE_GATED --> NEXT_BATCH
    NEXT_BATCH --> GATE_N
    GATE_N --> MORE
    MORE -->|"Yes"| NEXT_BATCH
    MORE -->|"No"| S36
    S36 ==> S37
    S36 -.->|"skip CI if\nnot in scope"| VG3
    S37 -.-> VG3

    style BOLT1 fill:#bbdefb,stroke:#1565c0
    style GATE1 fill:#ffcc80,stroke:#e65100
    style LADDER fill:#fff59d,stroke:#f57f17
    style MODE_AUTO fill:#c8e6c9,stroke:#388e3c
    style MODE_GATED fill:#f8bbd0,stroke:#c2185b
    style NEXT_BATCH fill:#bbdefb,stroke:#1565c0
    style S36 fill:#c8e6c9,stroke:#388e3c
    style S37 fill:#fff9c4,stroke:#f9a825
    style VG3 fill:#ef9a9a,stroke:#c62828

Parallel Bolt batches

When two Bolts share their dependency prerequisite (for example, Bolts B and C both depend only on A) and don't depend on each other, they run concurrently in a single batch. A single gate at the end of the batch covers every Bolt in it.

flowchart LR
    A["Bolt A\n(walking skeleton)"]
    GA{{"Walking-skeleton gate"}}
    L{"Ladder prompt"}

    subgraph BATCH["Parallel batch (Bolts B + C)"]
        B["Bolt B"]
        C["Bolt C"]
    end

    GBC{{"Batch gate\n(skipped if autonomous)"}}

    A --> GA --> L --> BATCH --> GBC

    style A fill:#bbdefb,stroke:#1565c0
    style GA fill:#ffcc80,stroke:#e65100
    style L fill:#fff59d,stroke:#f57f17
    style B fill:#bbdefb,stroke:#1565c0
    style C fill:#bbdefb,stroke:#1565c0
    style BATCH fill:#fff3e0,stroke:#e65100
    style GBC fill:#ffcc80,stroke:#e65100

The conductor (the live /aidlc session) dispatches parallel Bolts by issuing multiple Task calls in a single turn — Claude Code's built-in parallelism runs the Code Generation stage for each Bolt concurrently. Question collection and design-artifact generation still run per-Bolt (they're cheap, and question answers have to be serialized through the user anyway).

Halt-and-ask on failure

Failures always stop Construction, even in autonomous mode. That's the one place autonomous mode interrupts.

  • If a solo Bolt fails, Construction halts immediately and offers retry (re-run just that Bolt), skip (mark it [S] and continue — dependent Bolts will likely also fail), or abort (stop Construction entirely).
  • If one Bolt in a parallel batch fails while others succeed, the conductor waits for the whole batch to finish, preserves the successful Bolts' artifacts on disk, and presents the same retry / skip / abort choice for the failed Bolt only.

Stage reference

# Stage Lead Supporting Key Artifacts Runs
3.1 Functional Design aidlc-architect-agent aidlc-developer-agent business-logic-model.md, business-rules.md Per Bolt (CONDITIONAL by execution plan)
3.2 NFR Requirements aidlc-architect-agent aidlc-devsecops-agent, aidlc-compliance-agent, aidlc-quality-agent Security, performance, reliability NFRs Per Bolt (CONDITIONAL)
3.3 NFR Design aidlc-architect-agent aidlc-aws-platform-agent NFR design specifications Per Bolt (CONDITIONAL)
3.4 Infrastructure Design aidlc-aws-platform-agent aidlc-devsecops-agent, aidlc-compliance-agent Infrastructure specifications, IaC designs Per Bolt (CONDITIONAL)
3.5 Code Generation aidlc-developer-agent Application code + code docs Per Bolt (ALWAYS, per Unit within the Bolt)
3.6 Build and Test aidlc-quality-agent aidlc-devsecops-agent Test results, quality report ALWAYS, once at end
3.7 CI Pipeline aidlc-pipeline-deploy-agent CI config, quality gates CONDITIONAL, once at end

Key behaviors:

  • Within each Bolt, questions for stages 3.1–3.4 are collected in a single interactive pass across the Bolt's Units before any artifacts generate. A single Bolt-level answers gate confirms all answers before design artifacts begin.
  • The per-Unit approval gate inside stages/construction/code-generation.md is suppressed by the conductor during normal Bolt execution. A single Bolt-level (or batch-level) gate replaces it.
  • The ladder prompt fires exactly once per workflow — after the walking-skeleton gate. Your answer is recorded as Construction Autonomy Mode in aidlc-state.md and honoured on session resume.
  • Parallel batches require multiple Task-capable subagent slots to be available — see Agents for concurrency constraints.

Phase 4: Operation

Purpose: Deploy and operate — set up deployment pipelines, provision environments, configure observability, and establish feedback loops.

flowchart TD
    S41["4.1 Deployment Pipeline\n(aidlc-pipeline-deploy-agent)"]
    S42["4.2 Environment Provisioning\n(aidlc-aws-platform-agent)"]
    S43["4.3 Deployment Execution\n(aidlc-pipeline-deploy-agent)"]
    S44["4.4 Observability Setup\n(aidlc-operations-agent)"]
    S45["4.5 Incident Response\n(aidlc-operations-agent)"]
    S46["4.6 Performance Validation\n(aidlc-quality-agent)"]
    S47["4.7 Feedback & Optimization\n(aidlc-operations-agent)"]

    S41 -.->|CONDITIONAL| S42
    S42 -.->|CONDITIONAL| S43
    S43 -.->|CONDITIONAL| S44
    S44 -.->|CONDITIONAL| S45
    S45 -.->|CONDITIONAL| S46
    S46 -.->|CONDITIONAL| S47

    S47 -->|"Approve"| DONE(["Workflow Complete"])
    S47 -->|"Start New Cycle"| IDEATION(["Return to Ideation 1.1"])

    style S41 fill:#fce4ec,stroke:#c62828
    style S42 fill:#fce4ec,stroke:#c62828
    style S43 fill:#fce4ec,stroke:#c62828
    style S44 fill:#fce4ec,stroke:#c62828
    style S45 fill:#fce4ec,stroke:#c62828
    style S46 fill:#fce4ec,stroke:#c62828
    style S47 fill:#fce4ec,stroke:#c62828
    style DONE fill:#a5d6a7,stroke:#2e7d32
    style IDEATION fill:#e8f5e9,stroke:#4caf50
# Stage Lead Supporting Key Artifacts Condition
4.1 Deployment Pipeline aidlc-pipeline-deploy-agent CD config, deployment strategy, rollback runbook CONDITIONAL
4.2 Environment Provisioning aidlc-aws-platform-agent aidlc-devsecops-agent, aidlc-compliance-agent Environment inventory, validation report CONDITIONAL
4.3 Deployment Execution aidlc-pipeline-deploy-agent aidlc-developer-agent Deployment log, smoke tests, health checks CONDITIONAL
4.4 Observability Setup aidlc-operations-agent Dashboards, alarms, SLO config CONDITIONAL
4.5 Incident Response aidlc-operations-agent SSM runbooks, incident plan, escalation matrix CONDITIONAL
4.6 Performance Validation aidlc-quality-agent Load test results, NFR validation matrix CONDITIONAL
4.7 Feedback & Optimization aidlc-operations-agent aidlc-aws-platform-agent SLO report, cost analysis, feedback loop doc CONDITIONAL

Key behaviors: - All 7 stages are conditional — the entire phase may be skipped for mvp, poc, bugfix, and refactor scopes - Stage 4.7 is the terminal stage — on approval, the workflow is complete - The feedback loop from 4.7 back to 1.1 enables iterative development cycles


Phase Transitions and Verification Gates

At each phase boundary (Ideation → Inception, Inception → Construction, Construction → Operation), the framework runs phase boundary verification. This automated check validates:

  • All required artifacts from the completing phase exist
  • Traceability links between artifacts are intact (e.g., every requirement maps to a story)
  • No orphaned artifacts or missing references
  • Consistency between related artifacts

If verification fails, the conductor reports the issues and asks whether to proceed or go back to fix them.


Stage Execution Modes Reference

Mode Stages User Interaction Description
Inline (auto-proceed) 0.1, 0.2, 0.3 None Run deterministically inside aidlc-utility intent-birth, no approval gate
Inline 28 stages Full Agent works in conversation, approval gate at end
Subagent 2.2, 3.5 Practices interview + final gate for 2.2; approval gate for 3.5 Hub-and-spoke Practices Discovery; focused Code Generation
Pipeline (2-link) 2.1 Approval gate only Developer scan, then architect synthesis-and-write
Mob 2.4 Mid-stage judgment questions + approval gate Lead drafts; design/developer/quality collaborate in parallel via contribution files

Across all 32 stages, the topology count is 28 inline / 2 subagent / 1 pipeline / 1 mob.


Next Steps