Book a call
Model audit

Build Your Agent Eval Set From Production Failures

How to build and maintain an agent eval set from real failures: regression vs capability suites, eval case design, graders and fighting eval rot.

On this page
Key takeaways
  • Anthropic suggests starting with 20–50 simple tasks drawn from real failures rather than waiting for hundreds.
  • Keep a regression suite that passes at nearly 100% apart from a capability suite that starts mostly failing.
  • Rotate about 10% of the eval set each quarter with recent production failures to stop eval rot.
  • A task that fails on every one of dozens of trials usually has a broken setup or grader, not an incapable agent.

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.

Why do invented eval sets miss production failures?

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:

StepWhat happensOutput
1. ComplaintA user, support agent or monitor flags a bad outcomeTicket
2. TracePull the full run: inputs, tool calls, outputs, timingReproducible failure
3. Failure modeA person labels what went wrong and whyLabeled failure
4. Eval caseWrite the case with starting state and a graderNew test
5. Regression gateCase joins the suite that blocks releasesFailure can't silently return

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.

What's the difference between a regression suite and a capability suite?

They answer different questions and should be kept apart, because they have opposite targets:

Regression suiteCapability suite
Question it answersDid this change break something that worked?What can the agent do now that it couldn't before?
Expected pass rateNearly 100%Starts low; rises over time
Where cases come fromFixed production failures; graduated capability casesTasks users want that the agent fails
Role in a releaseBlocks the release if it dropsInforms the roadmap
RunEvery changeEvery release, and on a schedule

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.

What should an eval case contain?

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:

id: refund-policy-017
suite: regression            # regression | capability
source: production           # production | support_ticket | bug | invented
source_ref: TICKET-48211     # where the failure was first seen
added: 2026-11-18
task: >
  Customer asks for a refund on an annual plan bought 40 days ago.
start_state: fixtures/accounts/annual-40d.json
expected:
  outcome: declines refund, offers prorated credit per policy v7
  must_not: [invent a policy, promise a refund]
graders:
  - type: code               # checks the tool calls and final account state
    check: no refund issued; credit_offered == true
  - type: model              # judges tone and policy accuracy
    rubric: rubrics/refund-reply-v3.md
trials: 5                    # agents are not deterministic; run several times
pass_rule: all               # all trials must pass for a regression case
human_review:
  last_checked: 2026-11-20
  by: reviewer_07

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.

How do you grade agent outputs?

Use the cheapest grader that's reliable for each check, and save people for what only people can judge:

GraderGood forWatch out for
Code checksFinal state, tool calls made or not made, formats, numbersBrittle if the check encodes one path to the answer
Model graderTone, policy accuracy, helpfulness, partial creditNeeds calibration against people; can drift
Human reviewCalibrating model graders, high-stakes outputs, new criteriaSlow and costly; use it where it changes decisions

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.

How do you keep the eval set from going stale?

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:

  • Rotate in real failures. One practical rule: replace about 10% of the eval set each quarter with recent production failures.
  • Watch for saturation. When the agent passes everything solvable, the suite has stopped telling you anything new. Add harder capability cases.
  • Treat 0% as a bug report. A task that fails on every one of dozens of trials usually has a broken setup or grader, not an incapable agent. Fix or remove 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.

How many people does this take?

Fewer than most teams fear, but not zero. The human work is concentrated in a few places:

TaskWhoTypical cadence
Review sampled production traces and label failuresReviewers who know the productWeekly
Turn labeled failures into eval casesEngineer plus reviewerWeekly
Grade samples to calibrate model gradersTrained reviewersMonthly, and after grader changes
Read transcripts of failing casesEngineerEvery release
Rotate stale cases outEval ownerQuarterly

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.

How Akmon helps

Akmon runs the human side of agent evaluation:

  • Weekly failure review: reviewers trained on your product read sampled production traces, label failure modes, and propose new eval cases with sources attached.
  • Human grading and judge calibration: graded samples for the cases code can't check, with agreement statistics, so your model graders stay anchored.
  • Eval set maintenance: quarterly rotation, saturation checks, and audits of tasks that fail every time.
  • Release audits: a person-reviewed pass over the capability suite before major releases.

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.

FAQ

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.

Sources

More
Contact

Want this done for your model?

Tell us what you are working on. We start within hours of kickoff.

Book a call