---
title: The Three Phases
description: Deep dive into Inception, Construction, and Operations
---

## Overview

AI-DLC organizes development into three distinct phases, each with specialized agents and clear outputs.

```mermaid
flowchart TB
    MA(Master Agent):::design --> IA(Inception):::plan
    MA --> CA(Construction):::build
    MA --> OA(Operations):::warn
    IA --> CA --> OA
    classDef design fill:#fff,stroke:#A855F7,color:#7E22CE,stroke-width:1.5px,rx:8,ry:8
    classDef plan fill:#fff,stroke:#6366F1,color:#4338CA,stroke-width:1.5px,rx:8,ry:8
    classDef build fill:#fff,stroke:#0EA5E9,color:#0369A1,stroke-width:1.5px,rx:8,ry:8
    classDef warn fill:#fff,stroke:#F59E0B,color:#B45309,stroke-width:1.5px,rx:8,ry:8
```

## Phase 1: Inception

<Card title="Inception Agent" icon="lightbulb">
  Captures intents, elaborates requirements, and decomposes work into manageable units.
</Card>

### Purpose

Transform high-level goals into well-defined, implementable work items.

### Activities

1. **Intent Capture**

    Gather the high-level goal: "User authentication system"

2. **Requirement Elaboration**

    AI asks clarifying questions, generates user stories and NFRs

3. **System Context**

    Define boundaries, interfaces, and constraints

4. **Unit Decomposition**

    Break intent into loosely-coupled, independently developable units

5. **Bolt Planning**

    Plan the bolts needed to implement each story

### Key Outputs

| Artifact | Description |
|----------|-------------|
| `requirements.md` | User stories, acceptance criteria, NFRs |
| `system-context.md` | Boundaries, interfaces, constraints |
| `units.md` | Unit definitions with dependencies |
| Bolt Plans | Ordered list of bolts per unit |

---

## Phase 2: Construction

<Card title="Construction Agent" icon="hammer">
  Executes bolts through validated stages, producing tested, production-ready code.
</Card>

### Purpose

Transform specifications into working, tested code through disciplined stages.

### Bolt Stages

Each bolt type progresses through validated stages:

**DDD Construction**

For complex business logic and domain modeling:

<Accordion>
  <AccordionItem title="1. Domain Model">
    Model the business logic using DDD principles:
    - Identify aggregates, entities, value objects
    - Define domain events and commands
    - Establish ubiquitous language
  </AccordionItem>
  <AccordionItem title="2. Technical Design">
    Apply patterns and make architecture decisions:
    - Choose implementation patterns
    - Define interfaces and contracts
    - Plan data structures
  </AccordionItem>
  <AccordionItem title="3. ADR Analysis (Optional)">
    Document significant architectural decisions:
    - Context and problem statement
    - Options considered
    - Decision and rationale
    - Consequences
  </AccordionItem>
  <AccordionItem title="4. Implement">
    Generate production code:
    - Follow coding standards
    - Apply design patterns
    - Write clean, maintainable code
  </AccordionItem>
  <AccordionItem title="5. Test">
    Verify correctness:
    - Unit tests for domain logic
    - Integration tests for interfaces
    - Acceptance tests for stories
  </AccordionItem>
</Accordion>

**Simple Construction**

For UI, integrations, and utilities:

<Accordion>
  <AccordionItem title="1. Plan">
    Define what to build:
    - Review stories and requirements
    - List specific deliverables
    - Identify dependencies
    - Define acceptance criteria
  </AccordionItem>
  <AccordionItem title="2. Implement">
    Write the code:
    - Setup file structure
    - Implement core functionality
    - Handle edge cases
    - Add documentation
  </AccordionItem>
  <AccordionItem title="3. Test">
    Verify the implementation:
    - Write unit tests
    - Run test suite
    - Verify acceptance criteria
    - Document results
  </AccordionItem>
</Accordion>

### Human Checkpoints

:::warning
Human validation happens at each checkpoint. The AI proposes, the human approves or requests changes. This prevents errors from cascading downstream.
:::

### Bolt Types

| Type | Best For | Stages |
|------|----------|--------|
| **DDD Construction** | Complex domain logic, business rules | Model → Design → ADR → Code → Test |
| **Simple Construction** | UI, integrations, utilities | Plan → Implement → Test |

---

## Phase 3: Operations

<Card title="Operations Agent" icon="server">
  Deploys, verifies, and monitors the system in production.
</Card>

### Purpose

Take constructed features to production and ensure they run reliably.

### Activities

1. **Build**

    Compile, bundle, and prepare deployment artifacts

2. **Deploy**

    Deploy to target environment (staging, production)

3. **Verify**

    Run smoke tests, health checks, and validation

4. **Monitor**

    Set up logging, metrics, and alerting

### Key Outputs

| Artifact | Description |
|----------|-------------|
| Deployment Units | Containerized or packaged applications |
| Runbooks | Operational procedures |
| Monitoring Config | Dashboards and alerts |

---

## Phase Transitions

### Inception → Construction

When moving from Inception to Construction:

1. All units are defined with clear boundaries
2. Stories have acceptance criteria
3. Bolt plans are approved
4. Dependencies are mapped

### Construction → Operations

When moving from Construction to Operations:

1. All bolts are completed and validated
2. Tests are passing
3. Code review is complete
4. Documentation is updated

## Master Agent Role

The Master Agent orchestrates across phases:

- **Routing**: Directs to the appropriate agent
- **Context**: Maintains awareness of project state
- **Guidance**: Helps navigate the methodology
- **Standards**: Enforces project conventions
