Overview
Per scrum-guide (opens in new window):
"The Definition of Done is a formal description of the state of the Increment when it meets the quality measures required for the product."
"If the Definition of Done for an increment is part of the standards of the organization, all Scrum Teams must follow it as a minimum. If it is not an organizational standard, the Scrum Team must create a Definition of Done appropriate for the product." (scrum-guide (opens in new window))
The DoD is the team's contract with itself. Without it, "done" varies per PM / per developer / per sprint.
When to use
Starter DoD (recommended baseline)
Most teams converge on something like:
# Definition of Done - `<team>`
A story / PR is "Done" only when ALL of the following are true:
1. **Code reviewed** by at least one other engineer; review approval
recorded.
2. **Tests** for new behavior:
- Unit test coverage on changed files >=80%.
- At least one test per acceptance criterion.
3. **Documentation** updated:
- User-facing changes have updated docs (or "no user-facing
change" is documented).
- API changes have updated OpenAPI / Swagger / type definitions.
4. **Acceptance criteria** from the story all pass (manual or
automated; per AC ID).
5. **Deployed to staging** and smoke test passed (per
`smoke-suite-gate`).
6. **No new accessibility regressions** (axe / pa11y / Lighthouse
a11y category green vs main).
7. **Telemetry / observability** wired for new features (per
`synthetic-monitor-author` in the qa-shift-right plugin).
8. **Security review** for changes that touch auth / payments /
PII - threat-model entry recorded.
9. **No new tech debt** introduced without an issue logged.
10. **Build green** on the target branch (CI check required).Customize per team - not all 10 apply to every project.
Per-organization vs per-team
Per scrum-guide (opens in new window):
"If the Definition of Done for an increment is part of the standards of the organization, all Scrum Teams must follow it as a minimum."
If the org has a security review requirement, every team's DoD includes it. The team's DoD can add stricter team-specific lines on top, but can't drop org-wide minimums.
Categorization of DoD lines
| Category | Examples | Verifier |
|---|---|---|
| Code quality | Reviewed, no new lint errors | Code review tool |
| Test coverage | Unit test for new behavior, coverage threshold | CI coverage gate |
| Documentation | User-facing docs, API spec updated | Manual review |
| Spec compliance | All AC met | Manual or automated AC tests |
| Deploy state | Staging deploy + smoke | CI deploy job |
| Quality bar | A11y regression, perf budget | CI gate |
| Observability | Telemetry / monitoring wired | Manual review of diff |
| Security | Threat model entry for sensitive changes | Manual review |
| Process | Issue logged, retro feedback recorded | Manual |
The categorization helps when adding lines: "do we have a coverage of the security category?"
Generated per-PR checklist
The DoD becomes a PR template:
<!-- .github/pull_request_template.md -->
## Description
(what changed and why)
## Definition of Done checklist
- [ ] Code reviewed by ≥1 engineer.
- [ ] Unit tests added for new behavior; coverage check passes.
- [ ] Documentation updated (or "no user-facing change" noted below).
- [ ] All AC from the story pass.
- [ ] Deployed to staging; smoke suite green.
- [ ] No new a11y regressions (axe report attached for UI changes).
- [ ] Telemetry / monitoring wired for new features.
- [ ] Security review for auth / payment / PII changes (link to threat model).
## Notes
(any DoD line marked N/A - explain)A reviewer reads this template + the actual PR state and verifies each line.
DoD evolution
The DoD should evolve with the team's quality bar:
Don't lower the DoD without explicit retro discussion. Lowering because "we kept failing the gate" usually means the team needs better tooling, not a lower bar.
Review cadence
| Cadence | Trigger |
|---|---|
| Quarterly | Schedule a 30-min DoD review. |
| Post-incident | Add lines that would have prevented the incident. |
| New team member onboarding | Reread the DoD; pick up new perspective. |
Auditing adherence
The other half of the lifecycle: a compliance audit of work against the checklist that already exists. The checklist is an input, treated as fixed for the duration of the audit; the output is a per-line verdict backed by artifacts. Authoring is collaborative and can trade a line away; auditing is adversarial and cannot. If a line turns out to be unenforceable, that is a finding to hand back to the authoring conversation, not a licence to skip it.
Two facts from the 2020 Scrum Guide (scrumguides.org/scrum-guide.html (opens in new window)) anchor the audit: the team or organization owns the lines (so the audit never invents or edits a line), and a miss has a defined consequence - an item that does not meet the DoD "cannot be released or even presented at the Sprint Review" and returns to the Product Backlog, so "not met" is not advisory. Do not over-attribute: the November 2020 revision made the DoD a formal commitment attached to the Increment (scrumguides.org/revisions.html (opens in new window)); the Guide prescribes no checklist content, coverage number, or verdict vocabulary - those are practitioner convention. Many teams also run an entry-side "ready for development" checklist; it is auditable with the same method but has no standing in the Scrum Guide, so declare which stage is being audited before starting ("acceptance criteria" at entry means they exist and are testable; at exit it means covered by tests that ran and passed).
Audit setup
Line-pattern to evidence mapping
| Line pattern | Artifact to read | How to read it |
|---|---|---|
| "reviewed by at least N engineers" | gh pr view --json reviews,reviewDecision | reviews and reviewDecision are documented JSON fields of gh pr view (cli.github.com/manual/gh_pr_view (opens in new window)). Count approving reviews whose author is not the change author. Review actions are APPROVE, REQUEST_CHANGES, COMMENT (docs.github.com/en/rest/pulls/reviews (opens in new window)). |
| "coverage on changed files at or above X%" | coverage/lcov.info or the CI coverage report | In an LCOV tracefile each file section carries LF: (instrumented lines) and LH: (lines hit) (manpages.debian.org geninfo(1) (opens in new window)). Per-file rate is LH / LF, computed only over files present in the diff. |
| "no new lint or type errors" | CI status checks for the head commit | gh pr view --json statusCheckRollup; compare against the same checks on the base. |
| "documentation updated" | git diff --name-only <base>..<head> (git-scm.com/docs/git-diff (opens in new window)) | Require at least one changed path under the docs surface. Necessary, not sufficient: it shows a doc changed, not that it describes this change. |
| "every AC is covered by a passing test" | Criterion IDs in the ticket + test names / tags in the diff | Needs a team-declared convention linking criterion IDs to tests. Without one, unverifiable, not not met. |
| "no new accessibility violations" | The a11y scan output for both branches | An axe run returns a violations array (github.com/dequelabs/axe-core (opens in new window)). Compare head against base, not against zero, unless the line says zero. |
| "deployed to staging and smoke passed" | CI runs bound to the head commit | A completed deploy job and a completed smoke job, both for that exact SHA. |
| "telemetry wired for new code paths" | The diff itself | Search for the project's instrumentation calls on the newly added paths. A statement in the description is not evidence. |
| "security review for auth / payments / PII changes" | Linked review or threat-model record | The link must resolve and be dated within the change window. Unlinked = unverifiable. |
| "no new tech debt without a logged issue" | Linked issue | unverifiable by construction unless the team requires an issue link in the description. |
Thresholds come from the team's line, never from a default; if the line names no number ("good test coverage"), it is unverifiable and the finding is that the line is unenforceable as written.
Three states, four evidence standards, one verdict
| State | Meaning | Required to assign it |
|---|---|---|
met | Artifact exists and shows the line satisfied | Name the artifact and the value read from it |
not met | Artifact located and read; shows the line unsatisfied | Name the artifact and the shortfall (actual vs required) |
unverifiable | Cannot be settled from artifacts in the window | State what was searched, why inconclusive, and what the team must supply |
The three states apply per line and are never averaged - a checklist is not scored out of ten. unverifiable is a real finding: the line names no checkable condition, the convention does not exist, or the artifact was never produced.
Evidence standards: self-attestation is not evidence (a ticked PR-template checkbox is the claim under audit, not proof); a doc claim with no diff is not met; pre-existing failure is not a free pass (a budget already breached on base does not become an acceptable baseline); urgency and size do not waive lines (a faster hotfix bar is a separate written checklist, not an in-flight waiver).
| Condition | Verdict |
|---|---|
Every line met | ACCEPT |
Any line not met | REJECT |
No not met, at least one unverifiable | REJECT, pending named human confirmation |
| No checklist found, or the checklist is unsplit prose | INCONCLUSIVE |
unverifiable never auto-passes - it clears only when a named person supplies the missing evidence, recorded like any other artifact. No checklist means no verdict: inventing a plausible generic one substitutes the auditor's judgment for the team's, which the Scrum Guide assigns to the team or the organization.
Audit report shape
## DoD adherence review - <artifact under audit>
**Stage:** stage-1-entry | stage-2-exit
**Checklist source:** <path> @ <revision>, <N> lines split into <M> audited lines
**Evidence window:** <base>..<head>, CI runs for <sha>
**Verdict:** ACCEPT | REJECT | INCONCLUSIVE
**met: <x> not met: <y> unverifiable: <z>**
| # | Checklist line | State | Evidence sought | What was found |
|---|---|---|---|---|
| 1 | ... | met | ... | ... |Follow with a "Not met" block (required vs actual vs artifact per line), an "Unverifiable" block (searched / blocked by / to resolve), and a one-sentence recommended action tied to the verdict rules. A full stage-2 audit worked end to end is in references/adherence-worked-example.md.
Audit limitations: roughly half of a typical checklist is not machine-checkable (review quality, "no new tech debt") and resolves to unverifiable by construction; presence is not correctness (nothing reads the doc to confirm it describes the change); evidence outside the window is invisible unless recorded; and the verdict is advice, not enforcement - deciding to ship anyway is a human decision worth recording next to the report.
Anti-patterns
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| No DoD | Per scrum-guide (opens in new window), the team must define one if not org-mandated. | Adopt the starter (above). |
| 30-line DoD that nobody can satisfy per-PR | Team marks everything "N/A"; defeats the purpose. | Trim to 7-10 lines covering the highest-value gates. |
| DoD as aspirational, not enforced | "We have a DoD but PRs ship without meeting it." | Enforce it; PRs blocked on unmet lines. |
| Per-PR DoD different from team's "done" | Drift; team can't tell what's done. | One DoD; one PR template referencing it. |
| Lowering the DoD when it gets in the way | Quality bar erodes silently. | Discuss in retro before lowering; document the reason. |
| DoD never updated after an incident | Same incident class recurs. | Post-incident DoD review (above cadence). |
Treating unverifiable as a pass in an audit | Hides the unknown; the team believes it is done when nothing was checked. | Verdict rules: unverifiable blocks until a named human supplies evidence. |
| Auditing against a generic checklist because the team has none | Substitutes the auditor's bar for the team's (scrum-guide (opens in new window)). | Report INCONCLUSIVE; author the DoD first (this skill's other half). |
| Rewriting or softening a line mid-audit | The checklist stops being a fixed bar and becomes negotiable under deadline. | Record the finding; renegotiate in the authoring conversation afterwards. |
| Passing a coverage line using the repo-wide percentage | A high repo-wide number hides an untested new file. | Compute per-file rates over the diff's files only. |
Limitations
References
Worked example - DoD adherence review
View source (opens in a new tab) (opens in new window)Deep reference for the definition-of-done SKILL.md "Auditing adherence" section. A full stage-2 audit end to end, using the audit report shape in the spine. Note at the end what the example deliberately does NOT do - those are authoring-side moves the audit never makes.
Checklist (docs/definition-of-done.md @ a91c4f2, stage 2), audited against pull request 4567, diff main..feat/promo-codes:
1. Code reviewed by at least one other engineer.
2. Unit test coverage on changed files >= 80%.
3. User-facing documentation updated (or no user-facing change).
4. All acceptance criteria from the story pass.
5. Deployed to staging and smoke suite green.
6. No new accessibility violations.
7. Telemetry wired for new features.Output:
## DoD adherence review - PR #4567 "Add promo codes to checkout"
**Stage:** stage-2-exit
**Checklist source:** docs/definition-of-done.md @ a91c4f2, 7 lines split into 7 audited lines
**Evidence window:** main..feat/promo-codes (head 3f0be21), CI runs for 3f0be21
**Verdict:** REJECT
**met: 4 not met: 2 unverifiable: 1**
| # | Checklist line | State | Evidence sought | What was found |
|---|---|---|---|---|
| 1 | Reviewed by >=1 other engineer | met | approving reviews from non-authors | 2 approving reviews, neither by the author |
| 2 | Coverage on changed files >= 80% | not met | LH/LF per changed file in coverage/lcov.info | src/checkout/promo.ts LF:112 LH:73, 65.2% |
| 3 | Docs updated, or no user-facing change | met | changed docs paths, or absence of user-facing diff | escape branch: diff touches no UI, API schema, or copy files |
| 4 | All acceptance criteria pass | unverifiable | tests named or tagged for AC-1..AC-3 | no criterion-to-test convention exists in this repo |
| 5 | Deployed to staging, smoke green | not met | deploy + smoke jobs for 3f0be21 | no deploy job ran for this SHA |
| 6 | No new accessibility violations | met | violations array, head vs base | 4 violations on both branches, same rule IDs, none new |
| 7 | Telemetry wired | met | instrumentation calls on new code paths | track('promo.applied') added in src/checkout/promo.ts |
### Not met
**Line 2 - coverage on changed files**
- Required: >= 80% per changed file
- Actual: src/checkout/promo.ts at 65.2% (LF:112, LH:73); other changed files pass
- Artifact: coverage/lcov.info from CI run for 3f0be21
**Line 5 - staging deploy and smoke**
- Required: deployed to staging, smoke suite green
- Actual: no deploy job present in any CI run bound to 3f0be21
- Artifact: CI run list for 3f0be21
### Unverifiable
**Line 4 - acceptance criteria**
- Searched: test names and tags in the diff for AC-1, AC-2, AC-3 as written in the story
- Blocked by: no declared convention linking criterion IDs to tests, so absence of a match proves nothing
- To resolve: either adopt a criterion-ID tag on tests, or have the person who ran the criteria confirm each one and link the run
### Recommended action
REJECT: two lines not met and one unverifiable. Line 4 does not become a pass by
default; a named person confirms it with a linked artifact.Note what the example does not do: it does not suggest lowering line 2 to 65%, does not drop line 4 as unenforceable, and does not average the seven lines into a percentage. Those are all authoring-side moves.