🔄 AI-Driven Development Life Cycle

Complete reference for the AI-DLC adaptive workflow framework · v1.0

🔵 INCEPTION 🟢 CONSTRUCTION 🟡 OPERATIONS 🔧 Extensible ⚡ AI-Adaptive

Introduction

AI-DLC (AI-Driven Development Life Cycle) is a structured, AI-adaptive software development methodology designed specifically for AI-assisted coding environments. Unlike traditional SDLCs (Waterfall, Agile) that assume human-only execution, AI-DLC optimizes for the unique strengths and constraints of AI agents working alongside human developers.

Core Philosophy

What is AI-DLC?

AI-DLC is a three-phase adaptive workflow:

┌─────────────────────────────────────────────────────────────┐
│                  AI-DLC Workflow                             │
├─────────────────────────────────────────────────────────────┤
│  🔵 INCEPTION      Planning & Architecture (WHAT & WHY)     │
│    ├─ Workspace Detection     ▸ ALWAYS                      │
│    ├─ Reverse Engineering     ▸ if brownfield               │
│    ├─ Requirements Analysis   ▸ ALWAYS (adaptive depth)     │
│    ├─ User Stories            ▸ if needed                   │
│    ├─ Workflow Planning       ▸ ALWAYS                      │
│    ├─ Application Design      ▸ if complex                  │
│    └─ Units Generation        ▸ if multi-unit               │
│                                                             │
│  🟢 CONSTRUCTION    Design, Implementation & Test (HOW)     │
│    ├─ Functional Design       ▸ per-unit, if needed         │
│    ├─ NFR Requirements        ▸ per-unit, if needed         │
│    ├─ NFR Design              ▸ per-unit, if needed         │
│    ├─ Infrastructure Design   ▸ per-unit, if needed         │
│    ├─ Code Generation         ▸ ALWAYS (2 parts)            │
│    └─ Build & Test            ▸ ALWAYS                      │
│                                                             │
│  🟡 OPERATIONS     Deployment & Monitoring (future)         │
│    └─ Operations              ▸ PLACEHOLDER                 │
└─────────────────────────────────────────────────────────────┘

Why AI-DLC?

❌ Waterfall

  • Rigid sequential phases
  • No backtracking
  • Human-only execution
  • Months-long cycles
  • Requirements frozen early
  • Testing at the end

⚠️ Agile

  • Iterative but human-paced
  • Story-point estimation
  • Requires full team
  • Sprint overhead
  • No AI optimization
  • Ceremonies slow AI down

✅ AI-DLC

  • Adaptive depth & stages
  • AI-optimized artifact flow
  • Human-in-the-loop decisions
  • Minutes, not days/weeks
  • Brownfield-aware
  • Testing parallel to coding

Key Benefits

🔵🟢🟡 Three-Phase Lifecycle

🔵 INCEPTION

Planning & Architecture

Determines WHAT to build and WHY. Analyzes requirements, designs architecture, breaks work into units.

Artifacts → inception/

🟢 CONSTRUCTION

Design & Implementation

Determines HOW to build it. Per-unit design, code generation, build, and comprehensive testing.

Artifacts → construction/

🟡 OPERATIONS

Deployment & Monitoring

Placeholder for deployment, monitoring, incident response. Not yet implemented.

Artifacts → operations/

Adaptive Workflow

AI-DLC doesn't force a fixed sequence. The model intelligently determines which stages are needed based on:

Stage Types

TypeLabelStages
Always ExecuteALWAYSWorkspace Detection, Requirements Analysis, Workflow Planning, Code Generation, Build & Test
ConditionalCONDITIONALReverse Engineering, User Stories, Application Design, Units Generation, per-unit design stages
PlaceholderPLACEHOLDEROperations

Adaptive Depth

When a stage executes, ALL its defined artifacts are created. The depth controls the level of detail and rigor within those artifacts:

DepthWhen UsedExample Output
MinimalClear, simple request; well-understood problemConcise requirements, brief design notes
StandardNormal complexity; needs some clarificationFull requirements with questions answered, design docs
ComprehensiveComplex project; high risk; multiple stakeholdersDetailed traceability, thorough NFR analysis, multiple design alternatives

Key insight: The model decides the depth based on problem characteristics, not prescriptive rules. A "hello world" gets minimal depth; a trading system gets comprehensive.

Extensions System

Extensions allow domain-specific rules to be loaded on-demand, preserving context for what matters:

How Extensions Work

  1. Startup scan — At workflow start, scan the extensions/ directory recursively
  2. Load opt-in prompts — Only load *.opt-in.md files (lightweight). Full rule files are deferred.
  3. Present to user — During Requirements Analysis, present opt-in prompts for each extension
  4. Deferred loading — When user opts IN, load the corresponding full rule file at that point
  5. Enforcement — Loaded extensions become hard constraints. Non-compliance is a blocking finding.
  6. N/A marking — Rules not applicable to the current stage are marked N/A in compliance summary
extensions/
├── security/
│   ├── baseline/
│   │   ├── security-baseline.opt-in.md    ← 1KB prompt
│   │   └── security-baseline.md           ← 10KB rules (deferred)
├── testing/
│   └── property-based/
│       ├── property-based-testing.opt-in.md
│       └── property-based-testing.md
└── resiliency/
    └── baseline/
        ├── resiliency-baseline.opt-in.md
        └── resiliency-baseline.md

🔵 INCEPTION PHASE

1. Workspace Detection ALWAYS

Purpose: Initial analysis of workspace state and project type.

Determines:

Output: Worksheet state recorded in aidlc-state.md, workspace type determined

2. Reverse Engineering CONDITIONAL (Brownfield only)

Purpose: Analyze existing codebase to understand architecture before making changes.

Produces these artifacts in aidlc-docs/inception/reverse-engineering/:

Always loads common rules first: process-overview.md, session-continuity.md, content-validation.md, question-format-guide.md

3. Requirements Analysis ALWAYS (Adaptive Depth)

Purpose: Understand user intent and gather requirements at appropriate depth.

Assumes the role of a product owner. Steps:

  1. Load Reverse Engineering Context — If brownfield, load architecture artifacts
  2. Analyze User Request — Clarity (clear/vague/incomplete), Type (new feature, bug fix, refactor, etc.), Scope (single file to cross-system), Complexity (trivial to complex)
  3. Determine Depth — Minimal / Standard / Comprehensive based on analysis
  4. Assess Current Requirements — Document what the user has already provided
  5. Completeness Analysis — Functional, data, UI, integration, NFR, security, compliance
  6. Generate Verification Questions — Embedded in requirement-verification-questions.md

Output: requirements.md, requirement-verification-questions.md

4. User Stories CONDITIONAL

Purpose: Create user stories and personas when requirements need human-centered framing.

Two sub-stages:

Output: stories.md (stories with acceptance criteria), personas.md

5. Workflow Planning ALWAYS

Purpose: Determine which phases to execute and create comprehensive execution plan.

Critical decision point — analyzes all prior context to decide:

For brownfield projects, performs Transformation Scope Detection: architectural vs single-component change, infrastructure impact, related component identification.

Output: execution-plan.md with stage-by-stage plan, unit definitions, scope analysis

6. Application Design CONDITIONAL

Purpose: High-level component identification and service layer design.

Focuses on:

Outputs: components.md, component-methods.md, services.md, component-dependency.md

7. Units Generation CONDITIONAL

Purpose: Break the application into independent units of work for parallel or sequential execution.

Outputs include:

🟢 CONSTRUCTION PHASE

1. Functional Design CONDITIONAL (per-unit)

Purpose: Detailed business logic design per unit, technology-agnostic.

Builds on Application Design with:

Output: construction/{unit}/functional-design/functional-design.md

2. NFR Requirements CONDITIONAL (per-unit)

Purpose: Analyze and document non-functional requirements for the unit.

Covers: Performance, Scalability, Security, Availability, Reliability, Maintainability, Operability, Compliance, Accessibility.

Output: construction/{unit}/nfr-requirements/nfr-requirements.md

3. NFR Design CONDITIONAL (per-unit)

Purpose: Design solutions for each NFR requirement.

For each NFR, creates concrete implementation plan: Caching strategy, rate limiting, retry logic, circuit breakers, encryption approach, etc.

Output: construction/{unit}/nfr-design/nfr-design.md

4. Infrastructure Design CONDITIONAL (per-unit)

Purpose: Design infrastructure requirements for the unit (compute, storage, networking).

Output: construction/{unit}/infrastructure-design/infrastructure-design.md

5. Code Generation ALWAYS (2-Part)

Part 1: Planning

Part 2: Generation

Critical: For brownfield projects, "generate" means modify existing files when appropriate, not create duplicates.

6. Build & Test ALWAYS

Purpose: Build all units and execute comprehensive testing strategy.

Testing levels:

Outputs: build-instructions.md, build-and-test-report.md, test-summary.md

🟡 OPERATIONS PHASE

Status: PLACEHOLDER — Not yet implemented.

Future scope includes:

The workflow currently ends after Build & Test in the CONSTRUCTION phase.

🔧 EXTENSIONS

Security Baseline Extension

Category: Security · Type: Opt-in extension

Adds security guardrails to every stage of AI-DLC. When opted in, applies rules for:

Property-Based Testing Extension

Category: Testing · Type: Opt-in extension

Adds property-based testing requirements to the CONSTRUCTION phase:

Resiliency Baseline Extension

Category: Resiliency · Type: Opt-in extension

Adds resilience engineering to design and construction:

Terminology Glossary

TermDefinition
PhaseOne of three high-level lifecycle divisions: INCEPTION, CONSTRUCTION, OPERATIONS
StageAn individual workflow activity within a phase (e.g., Requirements Analysis stage)
Adaptive DepthThe level of detail within artifacts, adapting to problem complexity
Stage SelectionBinary decision: EXECUTE or SKIP for conditional stages
ExtensionDomain-specific rule set loaded on-demand via opt-in mechanism
BrownfieldExisting codebase that needs modification or extension
GreenfieldNew project with no existing code
Unit of WorkIndependent work package with clear boundaries and dependencies
Blocking FindingNon-compliance with an enabled extension rule — must be resolved before stage completion
aidlc-state.mdState tracking file recording current phase, stage, completed steps, and next actions

Session Continuity

AI-DLC supports resuming interrupted sessions without losing context. The aidlc-state.md file tracks:

On resumption, the model:

  1. Reads aidlc-state.md first
  2. Parses current status to present a "Welcome back" prompt
  3. Loads all previous stage artifacts — architecture, requirements, stories, design docs, code
  4. For in-progress units: loads that unit's design artifacts plus any unit it depends on
  5. Continues from the exact next step

AI-DLC vs Other Methodologies

DimensionWaterfallAgile/ScrumAI-DLC
Execution speedWeeks-monthsDays-weeksMinutes-hours
AI optimizationNoneNoneNative
Human roleEverythingEverythingDecision maker + validator
Artifact trackingHeavy docsLightweightAdaptive depth
Brownfield supportPoorGoodExcellent
Session resumeManual catch-upStand-upsAutomatic via state.md
Extension systemNoNoOpt-in deferred loading
IDE supportAnyAnyCursor, VS Code, Claude Code, Copilot, Hermes

Hermes Agent Integration

AI-DLC integrates with Hermes Agent at the profile level. The sandbox at /opt/data/aidlc-sandbox/ has AI-DLC rules pre-configured in CLAUDE.md and .aidlc-rule-details/.

To use AI-DLC with Hermes:

# Start a new session in the sandbox
cd /opt/data/aidlc-sandbox
hermes

# Or specify skills to load AI-DLC rules
hermes --skills aidlc

# The CLAUDE.md in the sandbox auto-loads the adaptive workflow

Profile setup for trading projects:

# Create a dedicated AI-DLC profile
hermes profile create aidlc-dev
# Copy the .aidlc-rule-details/ into that profile's context
cp -r /opt/data/aidlc-sandbox/.aidlc-rule-details /opt/data/<project>/

Sandbox Quick Start

The AI-DLC sandbox at /opt/data/aidlc-sandbox/ is a safe environment for learning the workflow. Nothing in the sandbox affects trading bots.

# Enter sandbox
cd /opt/data/aidlc-sandbox

# Start Hermes with AI-DLC context
hermes -q "Create a Python CLI tool that tracks daily expenses"

# Or for an existing project modification:
hermes -q "Add export-to-CSV feature to the tracker"

The workflow will automatically guide you through:

  1. Workspace Detection → detects it's greenfield
  2. Requirements Analysis → asks clarifying questions
  3. Workflow Planning → determines appropriate stages
  4. Code Generation (Part 1: Plan) → creates implementation plan
  5. Code Generation (Part 2: Execute) → generates code + tests
  6. Build & Test → builds and runs tests