🔄 AI-Driven Development Life Cycle
Complete reference for the AI-DLC adaptive workflow framework · v1.0
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
- Adaptive, not prescriptive — The workflow adapts to the work, not the other way around. Depth and stage selection vary by complexity.
- AI-first, human-guided — AI handles analysis, planning, design, and code generation while humans make key decisions and validate outputs.
- Artifact-driven — Each stage produces explicit artifacts (docs, designs, code, tests) that feed into subsequent stages and ensure traceability.
- Brownfield & Greenfield — Handles both new projects and existing codebase modifications with equal rigor.
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
- Context efficiency — Only loads relevant rule files; defers heavy rules until user opts in via extensions system
- Artifact traceability — Every decision, design choice, and requirement is documented and linkable
- Session resumption — Pick up exactly where you left off via
aidlc-state.mdstate tracking - Multi-model compatible — Works with Claude, GPT, Gemini, DeepSeek, and any AI coding assistant
- IDE-agnostic — Same workflow in Cursor, VS Code, Claude Code, GitHub Copilot, Hermes Agent, Kiro
🔵🟢🟡 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:
- Request clarity — Is the ask specific or vague?
- Project type — Greenfield vs brownfield
- Scope — Single file vs system-wide change
- Complexity — Trivial change vs architectural transformation
- Risk — Impact of errors, production vs sandbox
Stage Types
| Type | Label | Stages |
|---|---|---|
| Always Execute | ALWAYS | Workspace Detection, Requirements Analysis, Workflow Planning, Code Generation, Build & Test |
| Conditional | CONDITIONAL | Reverse Engineering, User Stories, Application Design, Units Generation, per-unit design stages |
| Placeholder | PLACEHOLDER | Operations |
Adaptive Depth
When a stage executes, ALL its defined artifacts are created. The depth controls the level of detail and rigor within those artifacts:
| Depth | When Used | Example Output |
|---|---|---|
| Minimal | Clear, simple request; well-understood problem | Concise requirements, brief design notes |
| Standard | Normal complexity; needs some clarification | Full requirements with questions answered, design docs |
| Comprehensive | Complex project; high risk; multiple stakeholders | Detailed 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
- Startup scan — At workflow start, scan the
extensions/directory recursively - Load opt-in prompts — Only load
*.opt-in.mdfiles (lightweight). Full rule files are deferred. - Present to user — During Requirements Analysis, present opt-in prompts for each extension
- Deferred loading — When user opts IN, load the corresponding full rule file at that point
- Enforcement — Loaded extensions become hard constraints. Non-compliance is a blocking finding.
- 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:
- Is this greenfield (empty dir) or brownfield (existing code)?
- Project type, language, framework from existing files
- Build system, dependency management, testing framework
- Any existing documentation or configuration
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/:
- architecture.md — System architecture overview, layers, patterns
- component-inventory.md — All components, their responsibilities, and locations
- technology-stack.md — Languages, frameworks, libraries, versions
- code-structure.md — Directory layout, naming conventions, module organization
- api-documentation.md — API endpoints, contracts, data flow (if applicable)
- dependencies.md — Internal and external dependencies with versions
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:
- Load Reverse Engineering Context — If brownfield, load architecture artifacts
- Analyze User Request — Clarity (clear/vague/incomplete), Type (new feature, bug fix, refactor, etc.), Scope (single file to cross-system), Complexity (trivial to complex)
- Determine Depth — Minimal / Standard / Comprehensive based on analysis
- Assess Current Requirements — Document what the user has already provided
- Completeness Analysis — Functional, data, UI, integration, NFR, security, compliance
- 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:
- Story Planning — Create generation plan for stories and personas
- Story Generation — Generate stories.md and personas.md with acceptance criteria
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:
- Which stages execute (always vs conditional)
- Execution order (not necessarily sequential)
- Unit breakdown (how to split the work)
- Parallelization opportunities
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:
- Identifying main functional components and their responsibilities
- Defining component interfaces (not detailed business logic)
- Service layer for orchestration
- Component dependencies and communication patterns
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:
- unit-of-work.md — Each unit's definition, scope, and boundaries
- unit-of-work-dependency.md — Dependency graph showing which units depend on which
- unit-of-work-story-map.md — Stories mapped to each unit
🟢 CONSTRUCTION PHASE
1. Functional Design CONDITIONAL (per-unit)
Purpose: Detailed business logic design per unit, technology-agnostic.
Builds on Application Design with:
- Detailed business logic and algorithms
- Domain models with entities and relationships
- Business rules, validation logic, and constraints
- Technology-agnostic design (no infrastructure concerns)
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
- Analyze unit context (design artifacts, story map, dependencies)
- Create detailed code generation plan with explicit steps
- Determine code location (NEVER in
aidlc-docs/) - Brownfield: review reverse engineering code-structure.md for existing files to modify
- Each step gets a checkbox: Project Structure → Business Logic → API Layer → Repository Layer
Part 2: Generation
- Execute approved plan step by step
- Generate code, unit tests, and integration tests per layer
- Validate each generated file against requirements
- Update aidlc-state.md with generation status
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:
- Unit tests — Already generated per unit during code generation
- Integration tests — Test interactions between units/services
- End-to-end tests — Complete user workflows
- Contract tests — API contract validation between services
Outputs: build-instructions.md, build-and-test-report.md, test-summary.md
🟡 OPERATIONS PHASE
Status: PLACEHOLDER — Not yet implemented.
Future scope includes:
- Deployment planning and execution
- Monitoring and observability setup
- Incident response procedures
- Maintenance and support workflows
- Production readiness checklists
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:
- OWASP Top 10 — Input validation, authentication, session management, access control
- Secure coding — Code injection prevention, secret management, encryption standards
- Dependency scanning — Known vulnerability checks, supply chain security
- Compliance tagging — Each artifact must note relevant compliance frameworks (SOC2, HIPAA, GDPR)
- Security review gate — Blocking finding if any security rule is non-compliant per stage
Property-Based Testing Extension
Category: Testing · Type: Opt-in extension
Adds property-based testing requirements to the CONSTRUCTION phase:
- Define invariant properties for each function/module
- Generate property-based tests alongside unit tests
- Include edge case generation strategies
- Verify properties across random inputs
Resiliency Baseline Extension
Category: Resiliency · Type: Opt-in extension
Adds resilience engineering to design and construction:
- Circuit breakers, retry policies, timeout configurations
- Bulkhead patterns and rate limiting
- Graceful degradation strategies
- Chaos engineering readiness
- Disaster recovery planning
Terminology Glossary
| Term | Definition |
|---|---|
| Phase | One of three high-level lifecycle divisions: INCEPTION, CONSTRUCTION, OPERATIONS |
| Stage | An individual workflow activity within a phase (e.g., Requirements Analysis stage) |
| Adaptive Depth | The level of detail within artifacts, adapting to problem complexity |
| Stage Selection | Binary decision: EXECUTE or SKIP for conditional stages |
| Extension | Domain-specific rule set loaded on-demand via opt-in mechanism |
| Brownfield | Existing codebase that needs modification or extension |
| Greenfield | New project with no existing code |
| Unit of Work | Independent work package with clear boundaries and dependencies |
| Blocking Finding | Non-compliance with an enabled extension rule — must be resolved before stage completion |
| aidlc-state.md | State 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:
- Current phase and stage
- Last completed step
- Next step to work on
- Extension configuration (enabled/disabled)
On resumption, the model:
- Reads
aidlc-state.mdfirst - Parses current status to present a "Welcome back" prompt
- Loads all previous stage artifacts — architecture, requirements, stories, design docs, code
- For in-progress units: loads that unit's design artifacts plus any unit it depends on
- Continues from the exact next step
AI-DLC vs Other Methodologies
| Dimension | Waterfall | Agile/Scrum | AI-DLC |
|---|---|---|---|
| Execution speed | Weeks-months | Days-weeks | Minutes-hours |
| AI optimization | None | None | Native |
| Human role | Everything | Everything | Decision maker + validator |
| Artifact tracking | Heavy docs | Lightweight | Adaptive depth |
| Brownfield support | Poor | Good | Excellent |
| Session resume | Manual catch-up | Stand-ups | Automatic via state.md |
| Extension system | No | No | Opt-in deferred loading |
| IDE support | Any | Any | Cursor, 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:
- Workspace Detection → detects it's greenfield
- Requirements Analysis → asks clarifying questions
- Workflow Planning → determines appropriate stages
- Code Generation (Part 1: Plan) → creates implementation plan
- Code Generation (Part 2: Execute) → generates code + tests
- Build & Test → builds and runs tests