Evaluating AI agents beyond the demo

A demo shows one good run. Production needs evidence across many tasks and repeated trials: task suites, graders, regression sets, trajectory checks and an honest reading of published benchmarks.

A demo of an AI agent is one run, on one input, chosen by the person giving the demo. Production is thousands of runs on inputs nobody chose. Much of the disappointment with agents comes from the gap between the two, and closing it is an evaluation problem before it is a modelling problem.

Evaluating an agent is harder than evaluating a single model call. The agent takes several steps, calls tools, changes the state of other systems and may behave differently on the same input twice. So the question is never just "was the answer right?" It is also "did it get there safely?" and "will it do that again tomorrow?"

A shared vocabulary

Anthropic's engineering guidance on agent evaluation uses a small set of terms that are worth adopting as a team, because arguments about evaluation often turn out to be arguments about words [1]:

  • Task: one test with defined inputs and success criteria.
  • Trial: one attempt at a task. Several trials are run because outputs vary between runs.
  • Grader: logic that scores some aspect of a trial. A task can have several graders.
  • Transcript (also called a trace or trajectory): the full record of a trial, including tool calls and intermediate results.
  • Outcome: the final state of the environment after the trial.

The distinction between transcript and outcome matters most. The guide's example is a booking agent: the outcome is whether a reservation exists in the database, not whether the agent said it had made one [1].

What published benchmarks measure

Public benchmarks are the easiest evidence to find, and the easiest to misread. Three widely cited ones show both what a well-built benchmark looks like and why its score rarely transfers to your workload.

BenchmarkWhat a task isHow it is gradedWhat it tells youWhat it does not
SWE-bench [2]Resolve a real GitHub issue in one of 12 Python repositories (2,294 tasks)The patch is applied and the repository's tests run; a task counts as resolved only if all FAIL_TO_PASS and PASS_TO_PASS tests passWhether a system can make a working code change that also preserves existing behaviourAnything about your codebase, language, review standards or tooling
SWE-bench Verified [3]A 500-task subset of the SWE-bench test setSame as above; the tasks were human-validated for qualityA cleaner signal than the full set, because flawed tasks were filteredThe same transfer limits as the full set
tau-bench (τ-bench) [4]A simulated customer conversation in a retail or airline domain, with tools and a written policyThe final database state is compared with an annotated goal state, plus a check that required information reached the userWhether an agent follows domain rules while talking to a user, and how consistently it does so across trialsYour policies, your systems or your users
GAIA [6]466 real-world questions needing reasoning, browsing and tool useQuasi-exact match against a single ground-truth answer; answers to 300 questions are kept private for a leaderboardGeneral assistant capability on tasks that are simple for peoplePerformance on domain-specific enterprise work

Two details from these papers deserve more attention than the headline scores.

First, SWE-bench grades two things at once. FAIL_TO_PASS tests check that the issue is fixed; PASS_TO_PASS tests check that nothing that previously worked has broken [2]. An internal evaluation that checks only the first kind cannot see that second failure. An agent that completes the task while damaging something adjacent should fail, and your graders need to be able to say so.

Second, the tau-bench authors state that a perfect reward "might be a necessary but not sufficient condition for a successful episode". Their example is an agent that issues a return without the explicit user confirmation the policy requires [4]. The final database state can be correct while the path to it broke a rule.

Benchmarks also contain errors. The tau-bench repository now warns that its original retail and airline tasks are not updated and points to a successor that includes fixes to those tasks [5]. SWE-bench Verified is itself a human-validated subset of the original test set [3]. If public benchmarks maintained by research groups need corrections, a privately built suite will too.

Building a task suite of your own

A leaderboard score is a starting point for choosing a model. The evidence that a specific agent is ready for a specific job comes from tasks drawn from that job.

The Anthropic guide suggests starting small: roughly 20 to 50 simple tasks taken from real failures is described as a good start, rather than waiting until hundreds exist [1]. That matches a practical constraint. Early on, the differences between versions are large, so a small set detects them.

Each task in the suite should record:

  1. The input, written the way a real user writes it, including ambiguity and typos.
  2. The starting state of every system the agent can touch, so trials are repeatable.
  3. The success criteria, stated as checks on the outcome.
  4. The invariants: things that must never happen on the way, whatever the outcome.
  5. Which graders apply and what each one checks.

The guide also separates capability evaluations, which ask what the agent can do and should start with a low pass rate, from regression evaluations, which ask whether it still does what it used to and should sit near 100% [1]. A capability task that the agent passes reliably can move into the regression set. Keeping the two apart stops a team from reading a falling regression score as "still improving overall".

Choosing graders

Graders come in three kinds, each with known trade-offs [1].

GraderGood forWeaknessPractical use
Code-based (state checks, unit tests, schema validation, tool-call assertions)Outcomes that can be checked exactly: a row exists, a file compiles, an amount is within limitsBrittle against valid variations; little nuanceFirst choice wherever the outcome is checkable
Model-based (rubric scoring, pairwise comparison)Open-ended output such as summaries or replies to customersNon-deterministic, costs more, needs calibration against peopleNarrow rubrics, one dimension per judgement, sampled human checks
Human (expert review, spot checks)Calibration and the final word on qualitySlow and expensiveCalibrating model graders and reviewing disagreements

The guide recommends grading what the agent produced rather than insisting on a fixed sequence of steps, because rigid step checks penalise valid approaches [1]. We agree, with one design judgement added: outcome grading and invariant checking are different jobs. A task should not prescribe the route, but it should forbid certain moves outright. Calling a payment tool before an approval step, writing to a system the task never needed, or sending data outside the tenant are failures whatever the final state looks like. Checks like these read the transcript, not the outcome, and they connect directly to how approval points are designed, covered in human approval in enterprise AI agents.

Reliability: one success is not enough

pass@k asks whether at least one of k trials succeeds. pass^k, introduced in tau-bench, asks whether all k succeed [4]. For a coding assistant whose output a developer reviews, pass@k can be reasonable. For an agent acting on a customer's account, the relevant question is closer to pass^k, because every run is a real run.

The tau-bench authors reported in 2024 that state-of-the-art function-calling agents, gpt-4o among them, succeeded on fewer than half of the tasks, with pass^8 below 25% in the retail domain [4]. The Anthropic guide gives a smaller illustration: a 75% per-trial success rate gives roughly 42% for pass^3 [1].

To see how quickly this compounds, assume (as a simplification) that every task has the same per-trial success rate p and that trials are independent. Then pass^k is p to the power k:

Per-trial success ppass^1pass^3pass^5pass^8
0.800.800.510.330.17
0.900.900.730.590.43
0.950.950.860.770.66
0.990.990.970.950.92

The arithmetic is ours and the assumption is crude; real tasks vary, which is why tau-bench estimates pass^k per task from repeated trials and then averages [4]. The lesson holds anyway. An agent that succeeds on 90% of runs will get five consecutive runs of the same task right only about 59% of the time. A demo session that happens to show three good runs in a row says very little about the fourth.

An illustrative harness

The sketch below shows the shape of a minimal harness. It is illustrative pseudo-code, not a library, and it omits sandboxing, cost limits and parallelism.

# Illustrative only: the structure of an agent evaluation run.
from math import comb

def run_suite(agent, tasks, trials_per_task=8, k=4):
    report = []
    for task in tasks:
        results = []
        for trial in range(trials_per_task):
            env = task.fresh_environment()          # same starting state every trial
            transcript = agent.run(task.input, env) # record every tool call and output
            outcome = env.snapshot()
            invariants_ok = all(check(transcript) for check in task.invariants)
            outcome_ok = all(grade(outcome, transcript) for grade in task.graders)
            results.append(invariants_ok and outcome_ok)
            store(task.id, trial, transcript, outcome, invariants_ok, outcome_ok)
        n, c = len(results), sum(results)
        # Unbiased per-task estimate of "all k trials succeed" (tau-bench definition)
        report.append((task.id, c / n, comb(c, k) / comb(n, k)))
    return report

Three choices in it are deliberate. Every trial starts from a fresh environment, so one trial cannot contaminate the next. Invariant failures fail the trial even when the outcome is correct. Every transcript is stored, because the score is the least informative thing the harness produces.

Read the transcripts

The Anthropic guide is direct on this: eval scores should not be taken at face value until someone has read transcripts, and a 0% pass rate across many trials usually points to a broken task or grader rather than an incapable agent [1]. Reading transcripts is how a team learns whether a failure is the agent's mistake or a grader rejecting a valid answer.

The same transcripts are what production tracing collects. If the evaluation harness and the production system record trials in the same shape, a failure seen in production can become a regression task with little rework. That link between evaluation and telemetry is the subject of observability for AI applications.

A readiness checklist, with reasons

CheckWhy it matters
Tasks come from real requests and real failuresSynthetic tasks tend to test what the builder already expected
Each task fixes its starting stateWithout it, a change in score may be a change in data
Outcomes are checked in the target system, not in the agent's replyAn agent's claim that it acted is not evidence that it acted [1]
Invariants are checked on the transcriptA correct end state can hide a policy breach [4]
Several trials per task, reported as pass^kOne success says little about the next run [4]
Model graders are calibrated against human reviewModel graders are non-deterministic and need calibration [1]
Capability and regression sets are reported separatelyA gain in one can hide a loss in the other
Someone reads a sample of transcripts every cycleScores hide broken graders and broken tasks [1]

None of this replaces a public benchmark for choosing a model. It answers a different question: whether this agent, with these tools and this policy, does this job reliably enough to run without someone watching each step. That question belongs in the success criteria of a proof of concept from the first week, as discussed in scoping an enterprise AI proof of concept, and it shapes the way we approach agentic transformation work.

Prepared with AI-assisted research and drafting.

Sources

[1] Anthropic, "Demystifying evals for AI agents", Anthropic Engineering, 2026. https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents

[2] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, K. Narasimhan, "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?", arXiv:2310.06770, 2023. https://arxiv.org/abs/2310.06770

[3] Princeton NLP, "SWE-bench Verified" dataset card, Hugging Face, n.d. (accessed 2026). https://huggingface.co/datasets/princeton-nlp/SWE-bench_Verified

[4] S. Yao, N. Shinn, P. Razavi, K. Narasimhan, "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains", arXiv:2406.12045, 2024. https://arxiv.org/abs/2406.12045

[5] Sierra Research, "tau-bench" repository README, GitHub, accessed 2026. https://github.com/sierra-research/tau-bench

[6] G. Mialon, C. Fourrier, C. Swift, T. Wolf, Y. LeCun, T. Scialom, "GAIA: a benchmark for General AI Assistants", arXiv:2311.12983, 2023. https://arxiv.org/abs/2311.12983