Step 6 of 6

The AI-Native SDLC

When AI writes code in hours, review becomes the bottleneck. A six-stage loop where every stage commits a file for the next.

11 min read

AI coding agents can write a feature in hours. Yet many teams find their delivery speed barely moves - because writing code was never the whole job. Planning, review, testing, and release still run at human speed, and now there's far more code arriving at each of those gates. Review is the new bottleneck.

The fix isn't to review less. It's to restructure the loop so every stage produces a precise artifact for the next one, humans spend their attention where it matters most, and guardrails catch what attention misses.

The six-stage loop#

Each stage commits a file that the next stage consumes. Intent becomes a spec, the spec drives the build, tests guard the build, review checks against the spec, and release is gated - and in production, an alert opens the next intent.

  1. 01Intentintent.md - the why
  2. 02Specspec.md - the what
  3. 03Build1 engineer, parallel AI sessions
  4. 04TestGuarded by hooks
  5. 05ReviewAI reviews, humans approve
  6. 06ReleaseGated to prod

↺ Release feeds back into Intent

In production, an alert or user signal spawns a new intent.md, closing the loop.

1. Intent - intent.md#

A short, human-written statement of the problem and why it matters: who's affected, what outcome we want, how we'll know it worked, and what's explicitly out of scope. It's the anchor every later stage is checked against.

2. Spec - spec.md#

The intent expanded into something an agent can build from: behavior, interfaces, data changes, edge cases, and acceptance criteria. AI can draft the spec from the intent; a human edits and approves it. Ambiguity here is the most expensive kind - an agent will confidently fill every gap with a guess.

3. Build - one engineer, several AI sessions#

One engineer runs multiple agent sessions in parallel, each on an isolated branch or worktree: one on the API, one on the UI, one on the migration. The engineer's job shifts from typing to orchestrating - breaking the spec into parallelizable pieces, unblocking sessions, and integrating results.

4. Tests - guarded by hooks#

Tests encode the acceptance criteria. The crucial guardrail: an agent must not be able to make tests pass by editing the tests. Enforce it mechanically - a hook that blocks the agent from modifying protected test files, or a CI check that fails if tests changed in the same PR without human sign-off. Otherwise "all green" means nothing.

5. Review - AI reviews everything, never approves its own work#

AI reviewers check every PR against the spec: correctness, edge cases, security, consistency with the codebase. They're fast and tireless, so every change gets a thorough first pass. But the rule is strict: the AI that wrote the code never approves it, and a human owns the final approval for anything meaningful. AI review raises the floor; human review owns the decision.

6. Release - a human gates production#

A release manager (human, supported by automation) promotes changes to production based on evaluation results, canary metrics, and risk. Rollback is always one step away.

Closing the loop#

In production, monitoring catches a problem - an error spike, a failing user flow, a cost regression. Instead of a vague ticket, the alert generates a new intent.md with the evidence attached, and the loop starts again with a precise problem statement.

Why artifacts, not conversations#

Chat-driven development

  • Requirements live in a chat history nobody rereads.
  • Each session starts from scratch.
  • Reviewers can't tell what the code was supposed to do.
  • Tests drift with the implementation.

Artifact-driven development

  • intent.md and spec.md are versioned with the code.
  • Any agent or engineer can pick up from the files.
  • Review checks the diff against written acceptance criteria.
  • Protected tests pin the behavior the spec promised.

Adopting the loop

  1. 1Add intent.md and spec.md templates to the repository.
  2. 2Require acceptance criteria in every spec before building starts.
  3. 3Protect test files from agent edits with hooks or CI rules.
  4. 4Run AI review on every PR; require human approval to merge.
  5. 5Gate production on evals and canary metrics, with one-step rollback.
  6. 6Route production alerts into new intents with evidence attached.

Further reading

Search Data Science After Dark

Search across prompts, models, papers, guides, and library topics.