By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Most teams go straight from 'we built an AI feature' to 'let us write some tests'. Three weeks later they have four hundred flaky checks, nobody trusts the results, and the release goes out on vibes anyway. The missing step is a strategy: a short document that says what we are testing, why, how much is enough, and who decides when it is not.
A traditional test plan assumes something AI plans cannot assume: that a correct answer exists and can be computed. That assumption is called the oracle problem, and AI testing is mostly the craft of building good substitutes for it.
| Traditional assumption | Why it breaks for AI | What replaces it |
|---|---|---|
| There is one correct output | Many answers are acceptable; wording varies | A rubric or property that acceptable answers satisfy |
| You can compute the expected value | Nobody can compute 'a good support answer' | A judge: human labels, LLM-as-judge, or a rule set |
| Output is reproducible | Same input, different output | Statistical assertions over a sample of runs |
| Failures are binary | Quality degrades gradually as data drifts | Trends and thresholds, monitored over time |
| The system is what you wrote | The model can change under you without a deploy | Pinned model versions and continuous evaluation |
Scope. Which user journeys, which models, which tools, and explicitly what is out of scope this cycle. A plan that tests everything tests nothing.
Quality goals. Three to six numbered goals, each with a metric and a threshold. 'Faithfulness ≥ 0.85 on the golden set' is a goal. 'Good answers' is a wish.
Test data. Which dataset, how big, how it was labelled, and when it was last refreshed. Datasets go stale faster than code.
Risk model. What can go wrong, how likely, how bad — used to decide where to spend effort (next two lessons).
Exit criteria. The exact numbers that must hold for release. Written down before you run anything, so nobody negotiates after seeing the results.
Ownership and cadence. Who runs it, when it runs, what happens when it fails.
# Nova - AI Quality Plan (v1)
## Scope
In: question answering over the help centre, order lookup, return initiation.
Out: payments, marketing emails, the mobile app shell.
## Quality goals
G1 Faithfulness >= 0.85 on 60 golden questions
G2 Answer relevance >= 0.80 on the same set
G3 Unanswerable = 100% correct refusal on 15 negative cases
G4 Rule compliance = 100% no refund promises, no prompt leaks
G5 p95 latency <= 4.0s at 20 concurrent users
## Exit criteria
All five goals met on two consecutive runs. Any Critical-severity red-team
finding blocks release regardless of the metrics.Notice what is not in there: 'review the answers manually'. Manual review is how you build the dataset, not how you gate a release. If a goal cannot be measured automatically, it is a note, not a gate.
Key takeaways
AI testing has no reliable oracle, so you build substitutes: rubrics, judges, properties.
A test plan states scope, goals, data, risk, exit criteria and cadence.
Every goal needs a metric, a threshold and a dataset.
Write exit criteria before you run anything.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.