Skip to content

Adr 008 definition of done

ADR-008: Definition of Done (progressive maturity)

Section titled “ADR-008: Definition of Done (progressive maturity)”

Status: proposed Date: 2026-05-19

“Done” is implicit and varies by contributor. Some consider a passing build sufficient; others expect documentation, tests, and deployment verification. Agents have no unambiguous checklist to know they have completed work. Over-engineering “done” early blocks velocity; under-defining it ships incomplete work.

The definition must be progressive — rising as the project matures — so it does not block early momentum but ensures quality at scale.

Level 1 — Basic (minimum viable):

  • Code compiles without errors
  • Existing tests pass (no regressions)
  • New code has tests (unit level minimum)
  • Linting passes
  • PR description explains what and why
  • Linked issue exists

Level 2 — Standard (current project default):

  • All of Level 1
  • Pre-commit hooks pass
  • CDK synth succeeds (if infrastructure changes)
  • Security scans pass (no new HIGH/CRITICAL findings)
  • Documentation updated if behavior changes
  • Starlight mirrors synced (if docs changed)

Level 3 — Rigorous (critical paths):

  • All of Level 2
  • Integration or E2E test covers the happy path
  • Error paths tested
  • Reviewer approved (human or qualified agent)
  • Deployed to ephemeral stack and smoke-tested (if infrastructure)
  • ADR written (if architectural decision made)

Level 4 — Self-verifying (future target):

  • All of Level 3
  • Tabula rasa agent can replicate the outcome using only docs
  • CI includes behavioral verification
  • Documentation drift detection passes
Issue typeDefault level
Bug fixLevel 2
New featureLevel 2-3 (based on blast radius)
Infrastructure/IAM changeLevel 3
Documentation onlyLevel 1
Security fixLevel 3
RFC/ADR implementationLevel 2 + ADR written

Issues may override by specifying Done: Level N in the body.

LevelWho verifies
1CI (automated)
2CI + self-check by implementor
3CI + reviewer + implementor
4CI + reviewer + independent agent
  • (+) Agents have an unambiguous completion checklist
  • (+) Quality bar rises as the project matures
  • (+) Over-engineering is prevented (Level 1 for simple docs changes)
  • (+) Critical paths get rigorous verification (Level 3)
  • (-) Requires labeling or explicit level assignment per issue
  • (-) Level 4 is aspirational and depends on ADR-007 (knowledge acquisition)
  • (!) The project must eventually graduate from Level 2 to Level 3 default
  • Issue #139 — full RFC with open questions
  • ADR-003 — governance (defines when to start; this defines when to stop)
  • ADR-007 — knowledge acquisition (Level 4 depends on tabula rasa verification)