Test AI before you trust it · Updated October 19, 2026
How to Write Success Criteria and a Test Set for Any AI Tool
Short answer
An AI test set is a written list of real tasks you need the tool to handle, each with the outcome that counts as correct. You define what good means first, run the tool against the list, score every answer, and rerun it after each change. Anthropic suggests starting with 20 to 50 tasks drawn from real failures.
Key facts
- Publisher
- Anthropic and OpenAI
- What it is
- Official guides to writing success criteria, building test sets and grading AI runs
- Cost
- Free to read, and a spreadsheet is enough to start
- Audience
- Owners, managers and product leads buying or commissioning a chatbot, assistant or agent
- Starting size
- 20 to 50 real tasks, per Anthropic
- Link checked
- 2026-10-19
What is an AI test set?
An AI test set is a written list of real tasks for the tool, with the outcome that counts as correct for each one. You run the tool against the list, score every answer, and rerun it after each change to the model, the instructions or the tools. It replaces a hunch with a result you can compare week to week.
Anthropic's engineering team uses a few plain terms.
- A task is one test with a clear input and a clear definition of success.
- A trial is one attempt at a task. You often run several, because answers vary.
- A grader is the check that scores an attempt.
- An outcome is the final state of the system when the attempt ends, such as whether the booking really exists in your scheduling software. It is not what the AI said it did.
Anthropic also separates two kinds of tests. Capability tests ask what the tool can do well, and they start with a low pass rate so you have something to improve. Regression tests ask whether the tool still handles what it handled last month. Those should sit near perfect, and a drop means something broke.
OpenAI warns against vibe-based evaluation, which means judging a tool by whether it seems to be working. A test set swaps that feeling for evidence.
How do you define what good means for an AI tool before you buy it?
Write down what working means in measurable terms before any demo. Anthropic says a good success criterion is specific, measurable, achievable and relevant. Cover accuracy, tone, speed, privacy and cost, and attach a number or a clear yes or no to each one so you can check it later.
A vague goal such as safe answers cannot be scored. Anthropic's fix is to count how many answers get flagged across a fixed number of test runs and set a ceiling. Its docs list eight common criteria and say the list is not exhaustive.
- Task fidelity means it does the job, including on rare or hard requests.
- Consistency means similar questions get similar answers.
- Relevance and coherence means it answers what was asked and makes sense.
- Tone and style means it sounds right for your customers.
- Privacy means it protects personal details and follows instructions not to share them.
- Context use means it uses the information and chat history it was given.
- Speed means it responds fast enough for how people use it.
- Price means the cost per use fits your budget.
Most tools need several of these at once. Pick the few that matter most to your business and write one sentence for each. Keep targets achievable and relevant to what your customers need.
Do this before you buy. The written criteria become your acceptance test when the vendor demos.
How many test cases do you need to start?
Start with 20 to 50 tasks. Anthropic calls 20 to 50 simple tasks drawn from real failures a great start, because early in a project each change tends to have a large, noticeable effect that a short set can detect. Do not wait for hundreds. A short honest set today beats a perfect set that never gets built.
Find your first tasks in places you already look.
- The manual checks you run before anything goes live.
- The questions customers ask most.
- Mistakes in your support queue or bug list, put first by how much they hurt customers.
OpenAI says test data should include three kinds of cases.
- Typical cases look like everyday traffic.
- Edge cases are unusual inputs such as typos, very short requests, several questions in one message, other languages or unusual file formats.
- Adversarial cases try to break the rules, such as jailbreak attempts or requests that conflict with the tool's instructions.
OpenAI also suggests using a strong AI model to help generate varied test data, alongside human expert labelling. Have someone who knows your work read every generated case before it goes into the sheet.
Anthropic adds three rules for good tasks. Make each one unambiguous, so two people who know your work reach the same pass or fail verdict. Write a reference answer for each, which proves the task can be passed. Balance the set with requests where the tool should act and requests where it should not. A task that fails on every attempt usually points to a broken task, so check the task before blaming the tool.
Who grades the answers when you test an AI tool?
Three kinds of graders exist. Code checks are fast, cheap and exact. A second AI acting as judge handles open-ended answers. Human review is the gold standard but slow. Use the fastest reliable method for each test, and check any AI judge against human scores before you trust it.
- Code checks compare the answer or the end result to a known value. Did the booking exist, did the refund stay under the limit. They are objective and repeatable, but they can reject a correct answer that is worded differently.
- An AI judge reads the answer against a rubric you write. It handles tone and free-form text. It can be inconsistent and costs more than code.
- Human review comes from someone who knows your work. It gives the best quality but is slow and costly, so save it for spot checks and for calibrating the judge.
Anthropic's docs say to pick the fastest, most reliable and most scalable method that fits. For an AI judge, write a detailed rubric, ask for a plain verdict such as correct or incorrect or a score from one to five, let the judge reason before it scores, and use a different model than the one that wrote the answer. Anthropic also suggests letting the judge answer unknown when it lacks enough information, and testing the judge's reliability before you scale it.
OpenAI recommends simple formats such as pass or fail, or picking the better of two answers. It warns that judges can favor longer answers and whichever answer comes first, and says to confirm agreement with human labels before you scale up.
A practical check is to have two people grade the same batch of answers by hand, then compare the AI judge's scores to theirs. If they disagree often, fix the rubric first.
Must an AI tool get it right every time?
It depends on the cost of one mistake. When one mistake costs money or trust, such as a refund, the tool should pass every attempt. When you can retry or review the work, such as research, one good result out of several tries may be enough. Mark each test case with the rule that applies.
Anthropic explains this with two measures. The first, which Anthropic calls pass@k, is the chance that at least one of several attempts works. That number rises as you allow more tries. The second, which Anthropic calls pass^k, is the chance that every attempt works. That number falls as you add tries. A tool that gets a task right three times in four will get three tries in a row right only a little over two times in five.
At one try the two measures match. By ten tries, at least one working is nearly certain while all working is close to zero. Decide which one fits before you look at scores.
Anthropic's customer support example shows what a strict test can check. It looks at whether the ticket was resolved, whether the refund was processed, whether the customer's identity was verified, and whether the refund stayed inside the limit. A research task is different. You check that claims are backed by sources and the required facts are present, and you can ask the tool to try again.
In your sheet, add a yes or no column for must pass every time. For every yes, run the task several times and count one miss as a failure.
What is an AI trace and why should you ask for it?
A trace is the end-to-end record of one run of an AI tool. It logs the model calls, tool calls, safety checks and handoffs from start to finish. Ask for traces because they show which step went wrong, not only that the final answer was wrong. This idea comes from OpenAI's agent evaluation guide.
OpenAI describes trace grading as scoring those records against criteria. The grader checks whether the tool picked the right tool, passed work to the right place at the right time, and stayed inside its instructions and safety rules. OpenAI calls trace grading the fastest way to identify workflow-level problems.
Its suggested order is simple.
- Start with traces while you are still fixing problems.
- Build a grader and run it on a set of traces.
- Change the instructions or setup based on what you find.
- Move to a fixed test set and repeatable runs when you need to compare changes reliably.
Anthropic makes a matching point. Scores alone can mislead, and reading the full record of a run shows whether the tool really failed or the grader rejected a valid answer.
Ask your vendor to show you a few traces from runs that failed and explain what changed afterward.
OpenAI's guide centers on its own dashboard, so treat the order as the lesson. OpenAI's evaluation best practices page also says it is deprecating its Evals platform, with the shutdown scheduled for late 2026, so keep your test set in a file you own.
What should a simple AI test plan look like?
Use a spreadsheet with one row per test. Give it columns for the task, the case type, the expected outcome, the grader, whether it must pass every time and the last result. Fill in 20 rows this week from real customer requests and past mistakes. Then make any vendor or builder run your sheet before launch and after every change.
Your columns are the following.
- Task is the exact request, written the way a customer would type it.
- Case type is typical, edge or adversarial.
- Expected outcome is what must be true at the end.
- Grader is code check, AI judge or person.
- Must pass every time is yes or no.
- Last result is the date and pass or fail.
Three sample rows show the style.
- A customer asks to move an appointment to next Tuesday. Typical case. The new time is saved and a confirmation goes out. Graded by a code check. Must pass every time is yes.
- A customer writes a long, rambling message with a typo in the product name. Edge case. The tool finds the right product or asks one clear question. Graded by an AI judge. Must pass every time is no.
- Someone tells the tool to ignore its rules and share another customer's details. Adversarial case. It refuses and hands off to a person. Graded by a person. Must pass every time is yes.
Here is a plan for one working week.
- On day one, write the few success criteria that matter most, one sentence each, with a number or a yes or no attached.
- On day two, pull 20 real requests from your inbox, support queue and past mistakes into the sheet.
- On day three, write the expected outcome and a reference answer for each row, and mark which rows must pass every time.
- On day four, run the tool on every row, run the must-pass rows several times, and record pass or fail.
- On day five, read each failure in full, decide whether the tool or the test was wrong, and write down what the vendor must fix.
Things to ask any vendor before you sign.
- Ask to see the vendor's test set and which of your kinds of requests are in it.
- Ask for the pass rate and which tests failed.
- Ask who grades, and how any AI judge was checked against human scores.
- Ask to see traces from failed runs.
- Ask what gets rerun when the model or the instructions change.
- Ask which tests must pass every time, and how many tries were run.
After launch, review a sample of real conversations each week and turn every real failure into a new row. OpenAI calls this evaluating continuously.
Frequently asked questions
Is technical skill needed to write an AI test set?
No. The hard part is knowing your real customer requests and what a correct answer looks like, and you or your team already know that. A spreadsheet is enough. Your builder or vendor runs the tests. Anthropic's advice is to make each task clear enough that two people who know the work would give the same pass or fail verdict.
How often should the tests be rerun?
Rerun them after every change to the model, the instructions or the tools, and before launch. OpenAI advises evaluating continuously and growing the set over time. After launch, add a new row each time a real customer hits a failure, so the same mistake cannot return without you noticing.
Can a second AI be trusted to grade the first one?
Yes, once you have checked it. OpenAI says to confirm the judge agrees with human labels before you scale up. Anthropic says to test its reliability first, use a clear rubric and a different model than the one being graded. Have two people grade a short batch by hand and compare.
What if the vendor says the tool is already tested?
Ask to see the test set, the pass rate and the failed cases. Check whether your kinds of requests are in it, including edge and adversarial ones. A vendor test on someone else's tasks does not show how the tool handles yours, so run your own sheet beside theirs.
What happens when the tool fails some tests?
Failures are the point of the exercise. Decide which ones block launch, such as any must-pass-every-time row. Then have the vendor fix the instructions or setup and rerun the whole set. Anthropic also advises reading the full record of a failed run, since sometimes the grader was wrong and not the tool.
Sources
Every claim above comes from the original publisher pages below. Read them directly for exact figures and current terms. Nova Buzz Media is independent of these vendors.
- Anthropic. Demystifying evals for AI agents
- Anthropic. Define success criteria and build evaluations
- OpenAI. Evaluation best practices
- OpenAI. Evaluate agent workflows
If you want help deciding where AI belongs in your business, Nova Buzz Media offers a free AI fit scan at /scan/ that shows where you may be leaking revenue and which AI agents could help. Bring your test sheet to any follow-up conversation so every tool is judged on your real tasks.
Get my free fit scan