Check what zero critical errors in a pilot can tell you
Set a critical error rate you need the pilot to rule out. If all independent, representative cases pass, calculate the chance of seeing zero failures at that rate. Extend the test if zero failures would still be fairly likely.
What you need
For a buyer selecting an acceptance sample for one AI workflow.
- A written definition of critical failure and the population being tested.
- A chosen error rate and an acceptance confidence level.
- An independent sample and a named human reviewer.
Calculate the evidence from a zero-error sample
- Agree the highest critical failure rate you consider acceptable for the defined set of cases.
- Choose a sample design that represents that set. Count independent cases rather than repeated copies of the same input.
- With zero observed failures, calculate (1 − target failure rate) raised to the number of cases.
- Approve the statistical gate only when that probability is at or below the chosen cutoff. Route any observed critical failure for separate review.
Forty clean tests leave a wide range of possible errors
Synthetic data. The buyer wants to rule out a 2% error rate at a one-sided 95% confidence level.
Scroll the table to see all columns.
| Cases | Observed failures | Chance of 0 at 2% | Gate |
|---|---|---|---|
| 40 | 0 | 44.57% | More cases needed |
| 148 | 0 | 5.03% | Still above 5% |
| 149 | 0 | 4.93% | Meets sample gate |
The minimum is 149 independent cases under this rule. Compute 0.98 raised to the sample size and compare with 0.05.
What to hand over
Give the release owner the sampled population, calculations, reviewed failures and the decision on additional testing.
Limitation. Results apply to the sampled population and assume independent cases. Repeated runs from one easy case cannot establish safety across the whole queue.
Next step
Bring one critical error definition and a list of case types that the production workflow will actually see.
Related guides
Sources
- NIST’s guidance on binomial confidence intervals (accessed 23 November 2026)
- Anthropic’s AI agent evaluation guidance (accessed 23 November 2026)