SRDD Is the Best AI Coding Methodology - entry
Source: Dev.to
Overview
SRDD is an AI‑assisted development methodology where specifications and code exist in a closed loop. Specs guide implementation, but code becomes the source of truth. Periodically, understanding is extracted back out through regeneration — synthesising fresh specs from the living system.
The developer dreams; the AI disciplines. Understanding compounds instead of decaying.
For multi‑domain systems, Scaled SRDD (SSRDD) wraps multiple SRDD instances with a coordination layer, governing boundaries between independently evolving subsystems.
Table of Contents
- SRDD Overview (this page)
- Pitches — One‑liner to executive brief
- Part 1: Why SRDD Exists — The problem, the journey, the insight
- Part 2: The AI Coding Landscape — Vibe coding, agentic coding, context engineering, SDD
- Part 3: The SRDD Workflow — Phases, contracts, regeneration
- Part 4: Scaling Up — SSRDD, principles, implementation
- About — Documentation infrastructure
Why AI Coding Matters
Coding at scale and intensity is hard. Architecture, interfaces, testing, debugging — all demand enormous cognitive load. AI handles this effortlessly:
- Identifies broken interfaces
- Generates implementations from specs
- Writes tests covering every code path
- Surfaces edge cases
- Works in any framework
- Never gets bored
It’s already ingested Stack Overflow. AI coding is a genuine advancement in software development.
But AI Has Limits
- AI can’t understand architecture beyond its context window.
- It doesn’t dream; it can’t generate truly novel ideas.
- AI knows how, not why — why we’re building something, who it’s for, what problems it solves.
Businesses that fired their developers are rehiring them. AI is a force multiplier, not a replacement.
The Problem
AI‑assisted coding is transformative for small projects. As systems grow, the same failure modes appear everywhere:
- Context windows become constraints, not conveniences.
- The AI forgets earlier decisions and repeats mistakes.
- Architectural drift accumulates silently.
- Velocity slows as complexity rises.
- Teams stop understanding the systems they ship.
Every approach optimises for something real — speed, autonomy, discipline, traceability — but none close the loop between specification and reality.
SRDD closes the loop.
The Core Insight
Specs are snapshots, not contracts.
They capture understanding at a moment in time. Code evolves. Periodically, you must extract new understanding from the code and regenerate the specs.
- Specs guide code.
- Code informs regenerated specs.
It’s a closed loop.
The Six Phases
┌─────────────────────────────────────────────────────────────────┐
│ SRDD Workflow │
└─────────────────────────────────────────────────────────────────┘
Phase 1: Design → Establish intent, create planning docs
Phase 2: Implementation → TDD, contracts, scope‑guarded development
Phase 3: Review → PR review, coherence validation
Phase 4: UAT → Observe and accumulate evidence
Phase 5: Triage → Analyse findings, choose path
Phase 6: Production → Version, release, continue observing
┌─────────────────────────┐
│ Phase 4: UAT │
│ (Observe & Accumulate)│
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Phase 5: Triage & │
│ Decide │
└───────────┬─────────────┘
│
┌───────────────────────┼───────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Phase 1: │ │ Phase 2: │ │ Phase 6: │
│ Regenerate │ │ Iterate (bugs/ │ │ Production │
│ (architectural)│ │ minor fixes) │ │ │
└───────────────┘ └─────────────────┘ └─────────────────┘
Planning Documents
Each SRDD cycle produces a dated planning directory:
docs/plans/2025-12-15_v1_initial-design/
00-PLANNING.md ← Initial brain‑dump from requirements questionnaire
01-REQUIREMENTS.md ← Refined functional and non‑functional requirements
02-USECASES.md ← User stories with acceptance criteria
03-QA-SESSION.md ← Q&A transcript clarifying ambiguities
04-ARCHITECTURE.md ← Technical design, components, data model
05-IMPLEMENTATION.md ← Phased plan: what gets built in what order
06-TESTPLAN.md ← Test strategy and test‑data requirements
07-NextCycle.md ← Accumulated signals, candidate contracts, version history
What SRDD Enforces
| Principle | Description |
|---|---|
| The round‑trip is the methodology | Specifications flow into implementation. Understanding flows back out through regeneration. |
| Specs are snapshots, not contracts | Specs capture a moment of understanding; they are refreshed from the living code base. |
| Contracts are derived from regenerated specs | Generated contracts become the source of truth for automated checks and tests. |
| Continuous observation | Production signals are fed back into the next planning cycle. |
| Explicit versioning of specs and contracts | Every regeneration creates a new, dated artifact, preserving history. |
| Human‑in‑the‑loop discipline | Developers review regenerated specs and decide on the next iteration. |
Spec‑Roundtrip Driven Development (SRDD)
Specifications capture understanding at a point in time.
Code becomes the source of truth.
Core Principles
- The codebase is a curriculum – The AI learns from your existing code. Contradictions breed confusion; consistency compounds velocity.
- Guardrails encode judgment structurally – Types, linters, schemas, and folder boundaries prevent bad patterns before review.
- Coherence matters more than correctness – The AI determines whether code works. The reviewer determines whether it fits.
- The developer dreams; the AI disciplines – Humans choose direction. The AI executes, guards scope, and maintains consistency.
- Velocity follows clarity – Fast development is not the cause of good systems; it is the consequence of clear ones.
Scaled SRDD (SSRDD)
For systems that extend beyond a single bounded context:
- Each domain owns its own planning artefacts and SRDD cycles.
- Domains evolve at their own pace and regenerate when local signals demand it.
CONSTITUTION.md defines system‑wide integration standards:
- Explicit dependency declarations prevent accidental coupling.
- Boundary‑drift detection flags architectural erosion early.
SSRDD scales understanding, not bureaucracy.
Current Status
| Component | Status | Notes |
|---|---|---|
| Methodology documentation | ✅ | This repo |
| Planning doc templates | ✅ | templates/ directory |
| Rules file examples | ✅ | CLAUDE.md templates |
| Scope‑enforcement tooling | ⬜ Planned | Pre‑commit hooks, MCP integration |
| Coherence validation | ⬜ Planned | Pattern comparison against ARCHITECTURE.md |
| Regeneration advisor | ⬜ Planned | Cross‑session signal tracking |
| SSRDD coordination layer | ⬜ Planned | Multi‑subsystem orchestration |
Adoption Today
Teams can adopt SRDD now by:
- Using the planning‑doc templates (00‑07).
- Adding SRDD rules to AI configuration (
CLAUDE.md,.cursorrules, etc.). - Following the phase workflow manually.
- Relying on human review for coherence and scope discipline.
This delivers 60‑70 % of the value. The remaining 30‑40 % — reliable enforcement without human vigilance — awaits tooling.
Roadmap
Alignment with Agile and SAFe
- Map SRDD phases to Agile ceremonies and SAFe constructs — regeneration in PI planning, Phase 5 triage in backlog refinement, SSRDD across Agile Release Trains.
Rules‑file templates
- Complete
CLAUDE.md,.cursorrules, andcopilot‑instructions.mdtemplates encoding the full SRDD workflow.
MCP server integration
- Real‑time SRDD enforcement within Claude Code, Cursor, and similar tools.
Kubernetes and container orchestration
- SSRDD boundaries aligned with Kubernetes namespaces.
CONSTITUTION.mdas service‑mesh policies.- Coordinated regeneration in deployment pipelines.
The Article Series
This methodology is documented in a four‑part series:
- Part 1: Why SRDD Exists – The problem, the journey, the insight.
- Part 2: The AI Coding Landscape – Vibe coding, agentic coding, context engineering, SDD.
- Part 3: The SRDD Workflow – Phases, contracts, regeneration.
- Part 4: Scaling Up – SSRDD, principles, implementation.
Contributing
SRDD and SSRDD are open methodologies. Contributions are welcome:
- Tooling development
- Template improvements
- Integration guides for specific frameworks
- Case studies and adoption experiences
See Contributions for details.
License & Prior Art
© 2026 Brooke Smith. All rights reserved.
This repository constitutes a public disclosure and defensive publication of the Spec‑Roundtrip Driven Development (SRDD) and Scaled SRDD (SSRDD) methodologies.
The author expressly places the concepts, processes, and workflows described herein into the public domain as prior art, for the purpose of preventing subsequent patent claims or exclusive ownership by third parties.
Commercial use, redistribution, or derivative works of this text require explicit permission from the author.