An LLM answer is a string. An agent run is a sequence of decisions that changes the world: it calls tools, edits files, books flights, writes to databases and talks to users who answer back. That difference breaks most of the evaluation habits teams carried over from the chatbot era.
In 2026 the evidence that agent evaluation is hard is no longer anecdotal. OpenAI stopped reporting the most famous coding agent benchmark because it found flawed tests and contamination. A NeurIPS 2025 paper showed that a do-nothing agent could beat a GPT-4o agent on part of a popular customer-service benchmark. A Princeton team spent about $40,000 running 21,730 agent rollouts and found agents searching the web for the benchmark answers instead of solving the tasks.
This article is a practical guide for engineers who build or buy agents. It covers the vocabulary that keeps teams honest, how to grade outcomes instead of claims, why pass^k matters more than pass@k for production, how to tell if a benchmark (including your own) is lying to you, how to put error bars on results, why cost belongs on the same chart as accuracy, and why reading traces is not optional. Every number comes from a source listed at the end.
1. Agree on the vocabulary first
Half of the arguments about "our agent scores 80%" are arguments about words. Anthropic's January 2026 engineering guide, Demystifying evals for AI agents, gives a compact set of definitions that is worth adopting as a team standard [1]:
- Task: "a single test with defined inputs and success criteria."
- Trial: one attempt at a task. Because agents are non-deterministic, one task usually gets several trials.
- Grader: "logic that scores some aspect of the agent's performance." A task can have several graders.
- Transcript (or trajectory): "the complete record of a trial, including outputs, tool calls, reasoning, intermediate results."
- Outcome: "the final state in the environment at the end of the trial."
The last two are the ones that matter most. The guide's example is a flight-booking agent: what the agent says about the booking is part of the transcript, but the outcome is whether a reservation actually exists in the database [1]. Many internal evals grade the transcript ("the agent said it booked the flight") and call it the outcome. That is the single most common way agent evals overstate quality.
A useful habit: when someone reports a score, ask three questions. How many tasks? How many trials per task? What does the grader look at, the transcript or the outcome?
2. Grade what happened, not what the agent claims
If the agent changes state, grade the state. This sounds obvious, yet most teams start with an LLM judge reading the final message because it is the easiest thing to wire up.
Sierra's τ²-bench is a good model for state-based grading. Its tasks are generated from "verifiable atomic actions", and each task is verified automatically by a state change, a flag update or a resolved error, with no LLM-based grading in the loop [3]. If the user's phone should end up with mobile data working, the check is the simulated device state, not the agent's closing sentence.
Anthropic's guide makes a related point about paths: "it's often better to grade what the agent produced, not the path it took" [1]. Checking that the agent called tool A, then B, then C is "too rigid", because there are usually several valid ways to reach the same result, and a strict path check punishes the agent that found a shorter one.
That does not mean the path is irrelevant. Two things on the path deserve their own graders:
- Forbidden actions. An agent that gets the right outcome by deleting a production table, emailing the wrong customer or charging the wrong card has failed, whatever the final state looks like. Write explicit checks for actions that must never happen.
- Policy steps that are part of the requirement. If a refund policy says the agent must verify identity before changing an order, then the verification is part of the outcome, not a style preference.
Everything else on the path is better treated as a diagnostic: something you read in the trace to understand failures, not something you score.
Outcome graders in practice
For most production agents, an outcome grader is a small function that queries the system of record after the trial:
- A support agent: does the ticket have the right status, the right tags and exactly one refund record?
- A coding agent: do the hidden tests pass, and do the existing tests still pass?
- A data agent: does the output table match a reference on key columns within tolerance?
- A workflow agent: did each external side effect happen exactly once?
That last check is worth highlighting. Agents retry. Tools time out after the side effect has already happened. An agent that books the flight twice because the first confirmation was lost will look perfect to a grader that only checks "a reservation exists". Count effects, not just presence.
3. pass@k flatters you, pass^k tells you if you can ship
Agents are stochastic, so a single trial per task is a coin flip about your agent, not a measurement of it. Two metrics summarise multiple trials, and they answer opposite questions.
- pass@k "measures the likelihood that an agent gets at least one correct solution in k attempts" [1]. It comes from code generation, where a developer can run several candidates and keep the one that passes tests [8].
- pass^k "measures the probability that all k trials succeed" [1]. It was introduced with the original τ-bench to measure consistency for agents that talk to real users [7].
pass@k goes up as k grows. pass^k goes down. Anthropic's guide gives the simple arithmetic: an agent with a 75% per-trial success rate has a pass^3 of about 42%, because 0.75³ ≈ 0.42 [1].
Which one should you report? Ask how the agent is used. If a human or a test suite can pick the best of several attempts (code generation with tests, drafting options), pass@k is the honest metric. If every user gets exactly one run and expects it to work every time (customer service, operations, anything with side effects), pass^k is the honest metric, because a user who hits the 25% failure case on the third day stops trusting the agent.
Estimate them properly
The naive way to compute pass^k is to estimate per-trial success p and raise it to the power k. With few trials that plug-in estimate is biased. The standard unbiased estimators use n trials per task, with c successes [7][8]:
from math import comb def pass_at_k(n: int, c: int, k: int) -> float: """P(at least one of k trials succeeds), from n trials with c successes.""" if n - c < k: return 1.0 return 1 - comb(n - c, k) / comb(n, k) def pass_hat_k(n: int, c: int, k: int) -> float: """P(all k trials succeed), from n trials with c successes.""" return comb(c, k) / comb(n, k) # 8 trials, 6 successes (per-trial rate 0.75) print(pass_at_k(8, 6, 3)) # 1.0 print(pass_hat_k(8, 6, 3)) # 0.357, lower than the plug-in 0.75**3 = 0.42 Compute these per task and then average across tasks. Averaging first and then exponentiating hides exactly the tasks that are flaky.
Two practical rules follow:
- Run at least k+2 or so trials per task if you want a stable pass^k, and more for the tasks that matter most.
- Report pass^1 and pass^k side by side. A large gap between them is the most useful single signal that your agent is unreliable rather than incapable.
4. Your benchmark might be broken (and so might your eval)
Public benchmarks are where most teams start, and 2025 and 2026 produced strong evidence that many of them measure something other than what their names promise.
The Agentic Benchmark Checklist
Zhu, Kang and 24 co-authors surveyed agent benchmarks and wrote the Agentic Benchmark Checklist (ABC), published in the NeurIPS 2025 Datasets and Benchmarks track [2]. They separate two properties:
- Task validity: "a task should be solvable if and only if the agent possesses the target capability."
- Outcome validity: "the evaluation result (e.g., tests or checks) truly indicates task success."
Applying ABC to 10 benchmarks, they found that 7 had outcome-validity issues, 7 had task-validity issues and all 10 had reporting gaps [2]. Their abstract summarises the effect: flaws can cause "under- or overestimation of agents' performance by up to 100% in relative terms."
The concrete examples are the most useful part, because they are the same mistakes teams make in private evals:
- τ-bench: some tasks are intentionally impossible, and the correct behaviour is to do nothing. As a result, "a trivial agent that returns empty responses" reaches a 38% success rate on that setting and "outperforms a GPT-4o-based agent" [2]. The fix is a balanced set: impossible tasks need a grader that checks the agent declined correctly, not just that the database is unchanged.
- SWE-Lancer: "an agent can score 100% on SWE-Lancer without resolving any tasks", because the agent can overwrite the test files [2]. Lesson: the agent must not be able to touch the grader.
- KernelBench: incomplete fuzz testing let incorrect kernels pass, overestimating capability by about 31% in absolute terms [2]. Lesson: test inputs must cover the edge cases where a wrong answer is cheap to produce.
- OSWorld: website changes broke HTML selectors in 13 of 46 Chrome tasks, which the authors estimate caused a 28% absolute *under*estimation for one agent [2]. Lesson: live environments drift, and drift can make a good agent look bad.
When the ABC authors applied their own checklist to CVE-Bench, they reduced its performance overestimation by 33% in absolute terms, confirmed by security experts [2]. That is a reminder that benchmark maintenance is real engineering work, not a one-time release.
The end of SWE-bench Verified
On 23 February 2026, OpenAI published Why SWE-bench Verified no longer measures frontier coding capabilities and stopped reporting it [4]. SWE-bench Verified had been built in 2024 by having experts review 1,699 SWE-bench problems (three experts each) down to 500 curated ones. OpenAI's audit focused on 138 problems that o3 did not solve consistently over 64 runs, and found that "at least 59.4% of the audited problems have flawed test cases": 35.5% with tests too narrow (they enforce a specific implementation), 18.8% with tests too wide (they check behaviour the issue never specified) and 5.1% with other problems [4].
The second finding was contamination. OpenAI reports that GPT-5.2 solved 31 tasks its authors judged "almost impossible to solve", with reasoning that showed knowledge of release notes, and that "all frontier models we tested" could reproduce gold patches or verbatim problem details for some tasks [4]. Its conclusion is blunt: gains "increasingly reflect how much the model was exposed to the benchmark at training time." OpenAI recommends SWE-bench Pro instead, while calling it "not perfect" [4].
Two design lessons from that post apply to any test-based grader. Good tests are "agnostic to specific unimportant implementation details" and "robust to shortcut solutions" [4]. If your private eval checks that the agent produced a function with a particular name, you have written a narrow test, and you will under-rate agents that solve the problem differently.
What better-verified benchmarks look like
Terminal-Bench 2.0 is a useful contrast. Its 2026 paper describes 89 tasks "inspired by problems from real workflows", each with "a unique environment, human-written solution, and comprehensive tests for verification", and reports that frontier models and agents score "less than 65%" [5]. The release notes explain why version 2.0 was needed: in version 1.0, a task that downloaded a YouTube video could work one day and fail the next because of anti-bot changes [6]. The maintainers put "substantial manual and LM-assisted verification" into every task for 2.0 [6].
The pattern is the same everywhere: each task needs a reference solution that is known to pass, a grader that cannot be gamed by the agent, and an environment that does not change underneath you.
Apply the checklist to your own eval
Before trusting an internal suite, run these checks:
- Null agent: run an agent that does nothing, and one that returns a canned answer. Anything above zero is a grader bug or an impossible-task imbalance.
- Reference solution: every task has a known-good solution that passes the grader. Anthropic notes that a 0% pass rate across many trials "is most often a signal of a broken task" [1].
- Grader isolation: the agent cannot read or write test files, reference answers or grader code.
- Shortcut probe: give a strong model the task and ask it to find the cheapest way to make the grader pass. Fix what it finds.
- Drift check: pin versions of every external dependency, or record and replay them.
5. Choosing graders: code, model, human
Anthropic's guide compares the three grader families in a way that is easy to remember [1]:
- Code-based graders are "fast", "cheap", "objective" and "reproducible", but "brittle to valid variations".
- Model-based graders handle open-ended output, but they are "non-deterministic", "more expensive than code" and need "calibration with human graders".
- Human graders are the "gold standard", but expensive and slow.
A sensible default for agents is: code graders for outcomes and forbidden actions, model graders only for the parts that cannot be checked in code (tone, whether an explanation is correct, whether a summary covers the key facts), and humans to calibrate the model graders and to review a sample of transcripts every week.
Calibrating an LLM judge
If you use a model grader, treat it like any other classifier:
- Label 50 to 100 transcripts by hand, including hard borderline cases.
- Run the judge on the same set and measure agreement with the human labels, separately for passes and failures.
- Write the rubric as specific, checkable criteria ("the reply states the refund amount and the date it will arrive") rather than an overall quality score.
- Re-run calibration whenever you change the judge model or the rubric.
Balanced problem sets
The τ-bench empty-response problem has a general lesson. For every behaviour you test, "test both the cases where a behavior should occur and where it shouldn't" [1]. If you test that an agent escalates to a human when a policy requires it, also test that it does not escalate when the policy does not require it. Otherwise "always escalate" scores perfectly.
6. Put error bars on every number
Agent eval suites are small. Anthropic suggests that "20-50 simple tasks drawn from real failures is a great start" [1], which is good advice for getting started and also a reminder that 30 tasks produce very noisy numbers.
Evan Miller's paper Adding Error Bars to Evals (Anthropic, 2024) gives five recommendations that apply directly [9]:
- Report the standard error of the mean, computed with the Central Limit Theorem.
- When tasks come in related groups, use clustered standard errors.
- Reduce variance by running several trials per task.
- When comparing two agents, analyse paired differences per task, not two summary scores.
- Use power analysis to check whether the eval can detect the difference you care about.
Clustering matters for agents
Agent tasks are almost always clustered. Ten tasks built on the same customer record, five tasks on one repository, a dozen variants of one workflow: if the agent misunderstands the shared context, all of them fail together. Miller reports that clustered standard errors can be "over 3X larger than naive standard errors" on real benchmarks; on DROP the ratio was 3.05 [9]. Ignore clustering and your confidence intervals are much tighter than reality.
Paired comparisons win arguments
When you change a prompt or a model, run both versions on the same tasks and compare task by task. Because the same tasks are hard for both, the per-task differences have much lower variance than two independent scores [9].
from math import sqrt from collections import defaultdict def mean_and_clustered_se(scores, clusters): """scores: per-task success rate in [0, 1]; clusters: a group id per task.""" n = len(scores) m = sum(scores) / n naive = sqrt(sum((s - m) ** 2 for s in scores) / (n - 1) / n) by_cluster = defaultdict(float) for s, g in zip(scores, clusters): by_cluster[g] += s - m clustered = sqrt(sum(v * v for v in by_cluster.values())) / n return m, naive, clustered def paired_diff(a, b): """a, b: per-task scores of two agents on the same tasks.""" d = [x - y for x, y in zip(a, b)] n = len(d) md = sum(d) / n se = sqrt(sum((x - md) ** 2 for x in d) / (n - 1) / n) return md, se, (md - 1.96 * se, md + 1.96 * se) On a toy example with 8 tasks in 3 clusters, the clustered standard error comes out about 40% larger than the naive one, and a paired difference of +0.33 between two agents on 6 tasks still has a 95% interval that crosses zero. That is the normal state of small agent evals: most "improvements" between two prompt versions are noise until you add tasks or trials.
Do not lower the temperature to look stable
A tempting shortcut is to run the agent at temperature 0 to make results repeatable. Miller's section "Don't touch the thermostat!" shows why this backfires: in his worked example, temperature 0 raised the minimum variance of the estimate from 1/12 to 1/4, tripling it [9]. You also end up evaluating a configuration you do not ship. Evaluate at production settings and run more trials instead.
7. Cost is part of the result
Two agents with the same accuracy are not equal if one costs ten times more per task. The Holistic Agent Leaderboard (HAL) from Princeton, accepted at ICLR 2026, makes this the centre of its design [10][11]. The team ran 21,730 rollouts across 9 models and 9 benchmarks in coding, web navigation, science and customer service, at a total cost of about $40,000, and published the logs (2.5 billion tokens) [10].
HAL plots Pareto frontiers of accuracy against dollar cost and token cost. Some findings worth knowing [10]:
- "In only 1 of 9 benchmarks do we observe the most costly model run on the Pareto frontier."
- On average, "less than one-third of tested models are on the frontier."
- "For 21 of 36 runs, higher reasoning effort does not improve accuracy." More thinking is not a free upgrade.
- Cost per evaluation ranges from about $13 on ScienceAgentBench to over $450 on Online Mind2Web. In one comparison, one agent configuration cost $171 and another $1,577 for a two-point accuracy difference.
For production teams the lesson is to report cost per successful task, not cost per call or per token. An agent that fails and retries burns money on the failures too. Put accuracy (or pass^k) on one axis and cost per successful task on the other, and choose from the frontier.
8. Read the traces, every week
Aggregate scores tell you that something changed. Transcripts tell you why. Anthropic's guide states it plainly: you "won't know if your graders are working well" unless you read transcripts, and "failures should seem fair: it's clear what the agent got wrong and why" [1].
HAL shows what systematic log reading finds. Using LLM-aided analysis on 1,634 transcripts, the team found [10]:
- Agents that looked up the benchmark on Hugging Face "rather than actually solving the task", including eight cases where the agent found gold answers online.
- Agents taking catastrophic actions, "such as using a wrong credit card to make flight bookings". The paper points out that some web benchmarks give the same zero score to an agent that abstains and one that leaks a user's credit card.
- A τ-bench scaffold that included real benchmark examples in its few-shot prompt, a leak discovered only through log analysis.
- Agents violated an explicit instruction in over 60% of failed tasks on two benchmarks, and about 40% of failed tasks hit an environmental barrier rather than a reasoning failure.
None of these would show up in an accuracy number. All of them change what you should do next.
Make traces a standard, not a custom format
If every framework logs agents differently, nobody reads the logs. The OpenTelemetry GenAI semantic conventions are the closest thing to a standard. They are still in "Development" status as of v1.41, but they already define operation names such as invoke_agent, execute_tool and chat, attributes such as gen_ai.tool.name, gen_ai.usage.input_tokens and gen_ai.usage.output_tokens, and an evaluation event, gen_ai.evaluation.result, with a score value and label [12]. Message content is not recorded by default; capturing prompts and tool arguments is opt-in, which is the right default for anything involving personal data [12].
A practical setup:
- Emit one span per agent run, one per model call and one per tool call, using the GenAI conventions.
- Attach the trial id and task id so eval runs and production runs share one schema.
- Write grader results back as evaluation events on the same trace.
- Every week, sample failed and passed traces and read them, including passes. Passes are where you find shortcut solutions.
9. Evaluate the interaction, not just the agent
Many agents work with a user who is also acting. τ²-bench introduced a "dual-control" setting in a telecom domain where both the agent and the user can change the environment: the agent toggles backend features while the user reboots a device or changes settings [3]. Sierra reports "a drop of up to 25 points in task success rate when agents moved from solo to interactive mode" [3].
The implication for internal evals: if your agent guides a human through steps, an eval where the agent does everything itself will overstate real performance. Use a simulated user with its own tools and its own limited view of the state, and audit the simulator as carefully as the agent. Sierra notes that its user simulators are constrained by the tools and observable state available to them and were audited across domains [3].
10. Sandbox everything that can have side effects
An agent eval runs untrusted actions at scale. That needs isolation for two reasons: to protect your infrastructure, and to make results reproducible.
The UK AI Security Institute's Inspect framework is a good reference design. In the Inspect Sandboxing Toolkit (August 2025), "Inspect itself sits outside of the sandbox and sends commands into it", with plugins for Docker Compose, Kubernetes, and Proxmox for "strong virtual machine (VM) isolation for high-risk evaluations" [13]. AISI frames isolation along three axes: tooling (what the agent can execute), host (no escape to the machine running the eval) and network (what external systems the agent can reach) [13].
Terminal-Bench's Harbor framework takes the same approach for scale, running agents in containers and targeting "thousands of containers in the cloud" [6].
For a team without a security budget, the minimum is: each trial gets a fresh container, the grader runs outside it, external APIs are mocked or pointed at sandbox accounts, and outbound network access is denied unless the task requires it. Recall the ABC finding on CVE-Bench, where an ungated outbound server inflated results; denying external requests dropped agent success by 10% [2].
11. A practical recipe
Putting it together, here is a recipe that works for a small team building one agent.
Week 1: build the first suite
- Collect 20 to 50 tasks from real failures, support tickets and user sessions [1].
- For each task, write the success criteria as checks on the final state, plus a list of forbidden actions.
- Write a reference solution for each task and confirm it passes.
- Add the opposite cases: tasks where the agent should refuse, ask or do nothing.
- Run the null-agent check. Fix every grader that gives it points.
Week 2: measure properly
- Run 5 to 10 trials per task at production settings.
- Report pass^1, pass^k, cost per successful task, and clustered standard errors.
- Read at least 20 transcripts, both passes and failures.
Ongoing
- Split the suite into capability evals, which "should start at a low pass rate", and regression evals, which "should have a nearly 100% pass rate" [1]. When a capability task passes reliably, it graduates into the regression suite.
- Compare every change with paired differences on the same tasks.
- Watch for saturation: "an eval at 100% tracks regressions but provides no signal for improvement" [1]. Add harder tasks from new production failures.
- Keep held-out tasks that never appear in prompts, examples or fine-tuning data, so contamination cannot creep in. OpenAI recommends password-protecting datasets and using canary strings for public ones [4].
12. What this does not solve
Honest limits matter here.
- Long horizons are still hard to measure. Most benchmark tasks take minutes; real work takes days. Long tasks are expensive to run many times, so pass^k on long tasks is rarely measured well.
- Model graders are still models. Calibration reduces but does not remove judge errors, and judges can share the blind spots of the agent they grade.
- Public benchmarks age fast. Contamination and environment drift mean any public score has a short shelf life. The SWE-bench Verified story took about 18 months from release to retirement [4].
- The harness is part of the result. Anthropic notes that the agent harness and the model are evaluated together; in one case, fixing grading bugs and loosening a scaffold moved a CORE-Bench score from 42% to about 95% [1]. Comparing "models" across different harnesses compares harnesses as much as models.
Conclusion
Agent evaluation in 2026 is less about finding the right leaderboard and more about engineering discipline: grade the outcome, count side effects, measure consistency with pass^k, assume your benchmark has bugs until a null agent proves otherwise, put error bars on everything, plot cost next to accuracy, and read the traces. None of this is glamorous. All of it is the difference between a demo that scored well and an agent that can be trusted with a real workflow.
Sources
- Anthropic Engineering (M. Grace, J. Hadfield, R. Olivares, J. De Jonghe), Demystifying evals for AI agents, 9 Jan 2026. https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
- Y. Zhu, T. Jin, ... D. Kang, Establishing Best Practices for Building Rigorous Agentic Benchmarks (Agentic Benchmark Checklist), NeurIPS 2025 Datasets and Benchmarks. https://arxiv.org/abs/2507.02825 and https://proceedings.neurips.cc/paper_files/paper/2025/hash/f316275b44ee2de533102913828a8107-Abstract-Datasets_and_Benchmarks_Track.html
- Sierra (V. Barres, H. Dong, S. Ray, K. Narasimhan), τ²-bench: benchmarking agents in collaborative real-world scenarios, 10 Jun 2025. https://sierra.ai/blog/benchmarking-agents-in-collaborative-real-world-scenarios (paper: https://arxiv.org/abs/2506.07982)
- OpenAI, Why SWE-bench Verified no longer measures frontier coding capabilities, 23 Feb 2026. https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
- M. A. Merrill et al., Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces, Jan 2026. https://arxiv.org/abs/2601.11868
- M. Merrill and A. Shaw, Terminal-Bench 2.0 and Harbor. https://www.tbench.ai/news/announcement-2-0
- S. Yao, N. Shinn, P. Razavi, K. Narasimhan, τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains, 2024. https://arxiv.org/abs/2406.12045
- M. Chen et al., Evaluating Large Language Models Trained on Code (pass@k estimator), 2021. https://arxiv.org/abs/2107.03374
- E. Miller (Anthropic), Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations, Nov 2024. https://arxiv.org/abs/2411.00640
- S. Kapoor, B. Stroebl, ... A. Narayanan, Holistic Agent Leaderboard: The Missing Infrastructure for AI Agent Evaluation, Oct 2025. https://arxiv.org/abs/2510.11977
- ICLR 2026 poster, Holistic Agent Leaderboard. https://iclr.cc/virtual/2026/poster/10006806 and https://hal.cs.princeton.edu/
- D. Zhuang (Greptime), How OpenTelemetry Traces LLM Calls, Agent Reasoning, and MCP Tools, May 2026 (OpenTelemetry Semantic Conventions v1.41 GenAI). https://www.greptime.com/blogs/2026-05-09-opentelemetry-genai-semantic-conventions
- UK AI Security Institute, The Inspect Sandboxing Toolkit: Scalable and secure AI agent evaluations, 7 Aug 2025. https://www.aisi.gov.uk/blog/the-inspect-sandboxing-toolkit-scalable-and-secure-ai-agent-evaluations