Criteria, a verification plan, and DoD are different things
Acceptance criteria answer the question of which result must be true. A verification plan describes how to prove it. Task readiness, or task-level DoD, adds checks for scope, diff, documentation, risks, and human review.
A green test confirms only the scenario it checks; by itself, it does not mean the task can be accepted.
| Level | Question |
|---|---|
| Acceptance criteria | What must be correct? |
| Verification plan | Which test, command, or observation will prove it? |
| Task-level DoD | Was the task completed within scope, and can it be accepted? |
A formula for checking every criterion
- Expected state — what must become correct.
- Observable signal — how it will appear.
- Verification method — a test, command, API request, log, or manual step.
- Failure condition — which result blocks acceptance.
| Criterion | Signal | Check | Fail condition |
|---|---|---|---|
| One refund per key | One record | Regression test | Two records created |
| API compatible | Same response structure | API assertion | Client broken |
| No repeated event | One log event | Log check | Event created twice |L1 verification for a specific task
A task verification plan may include a unit or regression test, an integration scenario, and, when needed, a manual API smoke check. First verify that the regression test reproduces the defect on the problematic version and passes after the fix.
- Write the acceptance criteria.
- Limit the permitted scope.
- Create the verification plan before implementation.
- Add or update the regression test.
- Implement the fix.
- Run local and integration checks.
- Review the diff and record risks.
Task readiness checklist
- The changes remain within the agreed scope.
- There are no accidental formatting or unrelated changes.
- Relevant tests and integration checks pass.
- The public API is not broken.
- The logs match the expected behavior.
- Risks and limitations are documented.
- A human has read the diff.
- Another developer can reproduce the result.
Artifacts of a reproducible result
TASK_SPEC.mdwith the goal, scope, criteria, and verification plan;- regression test names and data for the smoke check;
- commands, expected results, and fail conditions;
- test results and logs;
- a summary of human review and residual risks.
Canonical lesson source · JavaRush
Open JavaRush material