Acceptance criteria must be provable
Key takeaway: If you can’t prove a criterion false, it isn’t an acceptance criterion.
An acceptance criterion only helps if it can be proven true or false. “Works well” and “is fast” can’t. Rewrite each one into a check you can run, and don’t let an agent claim done without the evidence.
“The cancellation flow works well” has no yes or no. A reviewer ends up guessing what “well” meant. An agent will guess too, and sound sure about it. You’ve given it a target it can’t miss, because nobody can measure it.
These can be proven:
- Stop future renewal charges.
- Keep access until the end of the paid period.
Each one has a check. Create a subscription that renews October 1, cancel it, and assert no charge is due that day. Create one paid through September 30, cancel it, and assert access still holds on September 15. If you can’t write a check like that, it isn’t a criterion yet.
The same goes for vague words. “The checkout is fast” becomes “A checkout of 10 line items finishes in under 200ms when you run the repo’s checkout benchmark.” “The settings page looks good” becomes “The save button stays disabled until every required field is valid,” backed by a screenshot. If a criterion still says “well,” “fast,” “intuitive,” or “polished,” it isn’t finished.
Green tests aren’t enough either, since they can encode the same misunderstanding as the code. So write the criteria before the work starts and keep them out of the agent’s write path, describing the what and leaving the how to the agent. The agent doing the work shouldn’t get to edit the definition of done.
When you hand an agent a ticket, ask it to report, for each criterion, the exact check it ran and the result, and to say so if it couldn’t prove one. This is an example to try, not a report of a workflow I’ve already run.
A person still looks at the evidence. If the criterion was “keep access until the end of the paid period” and the only test asserts that a cancel method was called, that isn’t proof. Send it back.