> ## Documentation Index
> Fetch the complete documentation index at: https://specs.md/llms.txt
> Use this file to discover all available pages before exploring further.

# The Three Phases

> Deep dive into Inception, Construction, and Operations

## Overview

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

```mermaid actions={false} theme={null}
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] Inception Agent
>
> Captures intents, elaborates requirements, and decomposes work into manageable units.

### 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] Construction Agent
>
> Executes bolts through validated stages, producing tested, production-ready code.

### Purpose

Transform specifications into working, tested code through disciplined stages.

### Bolt Stages

Each bolt type progresses through validated stages:

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

> [tab] Simple Construction
>
> For UI, integrations, and utilities:
>
> > [accordion] 1. Plan
> >
> > Define what to build:
> >
> > * Review stories and requirements
> > * List specific deliverables
> > * Identify dependencies
> > * Define acceptance criteria
>
> > [accordion] 2. Implement
> >
> > Write the code:
> >
> > * Setup file structure
> > * Implement core functionality
> > * Handle edge cases
> > * Add documentation
>
> > [accordion] 3. Test
> >
> > Verify the implementation:
> >
> > * Write unit tests
> > * Run test suite
> > * Verify acceptance criteria
> > * Document results

### 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] Operations Agent
>
> Deploys, verifies, and monitors the system in production.

### 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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.