Why normal software testing breaks for AI agents
Most AI agents look great in a demo. Then real users arrive, and the agent books the wrong date, skips a step, or gives a wrong answer with total confidence. AI evals are how teams catch those failures before customers do. They're the tests that show whether an agent is ready for production, and most teams start them too late.
Normal software testing assumes the same input always gives the same output. Agents break that rule. Ask an agent the same question twice and you may get two different answers, sometimes both right, sometimes one wrong. There's also more than one good way to finish most tasks, so a test that expects one exact answer will fail perfectly good work.
Agents also work in steps. They read a request, call tools, look up data, and decide what to do next. A small slip early on, like pulling the wrong customer record, carries through every step after it. So testing an agent means checking the result, the path it took, and how often it gets things right, not just whether it worked once.
What AI evals are and what they measure
AI evals are repeatable tests that measure how well an AI system does its job. Each eval gives the agent a set of realistic tasks and runs each one more than once. The results are scored with code, another AI model, or people. Together, they show an agent's quality, reliability, and safety, both before and after launch.
A good AI agent evaluation framework uses several layers, because no single test catches everything.
Layer | What it checks | When it runs |
Task completion | Did the agent finish the job, using sensible steps? | Every build, before launch |
LLM-as-a-judge | Quality that code can't score, like tone and helpfulness | Every build, on open-ended answers |
Human review and red-teaming | Risky edge cases, safety, and attempts to misuse the agent | Before launch and after big changes |
Regression tests | Whether a change broke something that used to work | After every prompt, model, or tool change |
Production monitoring | How the agent behaves with real users | All the time after launch |
Each layer covers a gap in the one before it. Code checks are fast but narrow: they can confirm a refund amount or a date format, but not whether a reply sounded helpful. AI judges handle open-ended answers but need checking themselves. People catch what both miss, but they can't review everything. And monitoring finds the problems no test predicted. GenAI systems built with tracing and evals from the start make all five layers part of everyday work.
Task completion and step-by-step checks
Start with the simplest question: did the agent actually finish the task? Check the real outcome, not what the agent says it did. If an agent says it booked a meeting, the test should look in the calendar. Task completion rate, the share of tasks an agent finishes correctly, is the first number most teams track. Then check the steps, such as whether the agent called the right tools, with the right details, in a sensible order. This part is often called tool calling evaluation.
These tasks come from a golden dataset: a set of real examples with known correct results. It doesn't need to be big to be useful. A few dozen tasks taken from real failures is enough to start. Pull them from support tickets, past mistakes, and the cases your team worries about most. Include easy cases, hard cases, and cases where the right move is to refuse or hand off to a person. Then add a new one every time the agent fails in a way nobody expected.
Reliability needs its own test. An agent that succeeds once may fail the next time on the very same task, so run each task several times. Sierra, which built the τ-bench benchmark for customer service agents, saw this clearly. Leading agents of the time succeeded only about 25% of the time when they had to repeat the same task eight times. That's why AI agent reliability should be measured as how often an agent gets a task right every time, not just once.
A demo proves an agent can work. Evals prove it works every time.
LLM-as-a-judge for what code can't grade
LLM-as-a-judge means using one AI model to grade the answers of another. LLM stands for large language model, the kind of AI behind tools like ChatGPT and Claude. The judge reads the question, the agent's answer, and a short checklist. Then it scores what code can't easily check, like whether the answer was correct, polite, helpful, and within company rules.
The judge is fast and cheap, so it can check every test. But the checklist is what makes it accurate. If you just ask the judge to "rate this from 1 to 10," the scores jump around. Simple yes-or-no questions work much better. For example: "Did the answer give the correct refund window?" or "Did the agent ask for the order number before acting?" Ask one question at a time, and have the judge explain each answer. It's also safer to use a different AI model as the judge than the one you're testing.
AI judges make mistakes too. Studies show they often prefer longer answers, favor the first answer they read, or score answers from their own model too kindly. An AI judge is only as trustworthy as its last comparison with human graders. So have a person grade some of the same answers, and adjust the checklist until the person and the AI mostly agree. Only then let the AI judge work on its own, and keep checking its scores every few weeks.
Human review and red-teaming before launch
Some calls still need people. Experts in the subject should review the cases where a wrong answer is costly. Think refunds, health or legal questions, and anything that touches money or personal data. They should also read transcripts, the step-by-step record of what the agent saw and did. A transcript often shows whether the agent made a real mistake or the test itself was wrong.
Red-teaming means attacking your own agent on purpose before anyone else does. Testers try to trick it into breaking rules, leaking data, or taking actions it shouldn't. They also test how it handles rude users, confusing requests, and questions it has no business answering. A common trick is hiding instructions inside an email or web page the agent reads, hoping it will follow them. Every attack that works becomes a new test case.
Keep the scope practical. Before launch, red-team the riskiest actions first, especially anything the agent can do without asking a person. Repeat the exercise after major changes, such as adding a new tool or connecting the agent to a new system. Agents built with approval steps and clear limits from day one are much easier to test and much harder to misuse.
Regression tests and monitoring after launch
Offline evaluation tests an agent on a fixed set of examples before release. Online evaluation measures how it performs with real users after release. Teams need both. Offline tests catch known problems before customers see them, while online monitoring catches the problems no test predicted.
Every change can break something that used to work, whether it's a new prompt, a model upgrade, or a new tool. Regression tests rerun your eval set after each change to catch this. Unlike tests for new skills, which often start with low scores, regression tests should pass nearly every time. Any drop is a warning sign to fix before release.
After launch, AI agent monitoring keeps the testing going. Record a trace of each conversation, with every step, tool call, and answer. Track task completion, errors, cost, and how often a person has to take over. Watch for slow decline too, because an agent can get worse over time as users, data, or the underlying model change. When something goes wrong, add that case to the golden dataset, so the same failure can't slip through twice.
So when is an agent ready to ship? Set the bar before testing starts, not after. A practical bar has four parts. The agent passes your golden dataset at an agreed rate across repeated runs. Regression tests pass almost every time. Red-teaming has found no open problems on its riskiest actions. And monitoring, plus a clear way to hand off to a person, is live from the first day.
Conclusion
AI evals turn "it worked in the demo" into proof. Check the real outcome and run each task more than once. Grade open-ended answers with a tested AI judge, let people attack the agent before customers do, and rerun everything after every change. Most teams already have what they need to start: real examples in their support tickets and past mistakes. Share some of those examples with us, and we'll use them to test whether your AI agent is ready for real customers.




