How to build and maintain an agent eval set from real failures: regression vs capability suites, eval case design, graders and fighting eval rot.
Build your agent eval set from what has already gone wrong. Start with 20 to 50 tasks taken from real failures, such as bug reports, support tickets and the checks you run by hand before a release. Split them into a regression suite, which should pass almost every time, and a capability suite, which should start out mostly failing. Then add new production failures every month, so the set keeps testing what users actually hit.
Most teams invert this. They write a few hundred plausible test prompts at a whiteboard, get a high score, ship, and find out from customers that the agent fails on things nobody imagined. This guide covers how to build the set from evidence instead, how to keep it honest as the product changes, and where people have to stay in the loop.
Because the failures that matter are the ones you didn't think of. An invented set tests what the team already understands, which is exactly where the agent is least likely to fail. One practitioner's account captures it: a support agent passed 94% of its eval suite and then made up a refund policy on its second day in production. The suite was measuring the wrong thing.
Anthropic's guidance on agent evals is blunt about where to start: 20 to 50 simple tasks drawn from real failures, without waiting for hundreds. Before launch, that means the manual checks you already run and the common things users try. After launch, it means converting bug-tracker and support-queue failures into test cases.
The loop is simple to describe:
The step teams skip is the second one. A complaint is an anecdote. A trace, with the exact inputs, tool calls and outputs, is something you can turn into a test. If you're not logging full traces, start there; nothing else in this guide works without them.
They answer different questions and should be kept apart, because they have opposite targets:
Mixing them hides problems in both directions. A combined score of 80% could mean a stable agent with some unsolved hard tasks, or an agent that just broke a fifth of what it used to do. Separate suites make the release decision obvious: regressions block, capability scores inform.
The two suites also feed each other. When a capability task passes consistently, it graduates into the regression suite. When a production failure gets fixed, the failing case goes into regression so it can't come back silently.
More than a prompt and an expected answer. For an agent, the case needs the starting state, the grader, where it came from, and when it was last checked by a person:
The source field is what keeps the set honest. If almost every case says invented, you're testing your imagination. A healthy set after a few months has most cases traced to production, with invented cases reserved for risks you need to test before they happen, like a policy you've just changed.
trials matters because agents aren't deterministic. A case that passes once may fail one time in four. Run each case several times and track the share of runs that pass; our piece on pass^k explains why the all-runs-pass rate is the one customers feel.
Use the cheapest grader that's reliable for each check, and save people for what only people can judge:
Grade the outcome, not a fixed sequence of steps. An agent that found a better path to the right end state shouldn't fail because it skipped a step you expected. Give partial credit on multi-part tasks so you can see progress before a task fully passes.
Model graders need a human anchor. Calibrate them against people on a sample, and recheck regularly; our guide to calibrating LLM judges covers the method. And read transcripts. A run of failures can mean the agent is wrong, or that the grader is rejecting valid answers. Only a person reading the trace can tell which.
Eval sets rot. After months of prompt tuning, cases that once caught real problems become trivial, and the suite keeps reporting green while production quality drifts. Three habits prevent it:
Public benchmarks show how fast this happens. Anthropic notes that SWE-bench Verified went from about 30% to over 80% in roughly a year, approaching saturation. Your internal set will saturate faster, because you're tuning against it directly.
Fewer than most teams fear, but not zero. The human work is concentrated in a few places:
The weekly failure review is the one to protect. It's where a person reads a sample of production traces, labels what went wrong, and decides which failures become eval cases. Skip it and the set stops growing from evidence. Our guide to error analysis covers how to run that review.
Akmon runs the human side of agent evaluation:
If your eval suite is green and your support queue isn't, we can start with a two-week review of your production traces and turn what we find into eval cases. Book a call.
How many test cases does an agent eval set need? Fewer than you think to start. Anthropic suggests 20 to 50 simple tasks drawn from real failures. Grow the set from production failures rather than inventing hundreds of cases up front.
What is a regression eval? A suite of tasks the agent already handles, run before every release to confirm nothing broke. It should pass at nearly 100%.
What is a capability eval? A suite of tasks the agent can't yet do reliably. It should start with a low pass rate and show progress as the agent improves.
Where should eval cases come from? Bug reports, support tickets, failed production traces, and the manual checks your team runs before releases. Invented cases are fine for new risks, but shouldn't be most of the set.
How often should I update my eval set? Continuously, as failures arrive, and with a deliberate rotation of roughly 10% per quarter to keep it from going stale.
Can an LLM grade my agent evals? Yes, for criteria code can't check, as long as the grader is calibrated against human judgments and rechecked regularly. Use deterministic checks wherever they work.
Tell us what you are working on. We start within hours of kickoff.