AI Agent Evaluation: Methods and Metrics (2026)

- The evaluation plan you can copy into your repo
- Start by separating what the agent did from how it got there
- Pick three metrics, not ten
- Run each task more than once, and gate on pass^k
- Build two suites with opposite targets
- Grade the trajectory, not just the answer
- Score with a graded rubric, gate with a binary
- Write test cases that can fail for the right reason
- Calibrate your judge before you trust it
- Keep measuring after launch, because agents decay
- What your evaluation will not tell you
- Conclusion
- FAQ
You shipped the agent, the demo went well, and then it started booking the wrong refund in production. Your existing tests pass because they check the prompt and a few outputs. They don't check whether the agent completed the task, used the right tools, and did it reliably across repeated runs.
The short answer: AI agent evaluation means scoring each task on its outcome and its trajectory, running every task several times, and gating the release on the rate at which the agent passes all of its trials, not on a single run. Below is a plan you can copy into your repo, then the reasoning behind each part. If you are evaluating model outputs rather than agent behaviour, testing AI-powered features covers chatbots, LLM outputs and recommendations.
The evaluation plan you can copy into your repo
Use this as a starting template. Every threshold and trial count is a default for you to tune. None of them is a benchmarked value.
1. Pick three metrics using a failure-mode rule
Don't start with a list of available evaluators. Start with the ways your agent can fail, then choose the metric that catches each one.
Agent failure mode | Metric | How it is scored |
Task is not completed, or the end state is wrong | Task success, judged on final state | Binary per trial: the expected state in your system of record matches, checked by code where possible |
Agent takes a forbidden or unsafe action on the way | Forbidden-action rate | Binary per trial: any call matching a |
Work is done, but inefficiently or at a cost you did not budget | Cost per completed task, with wall-clock latency alongside | Monetary cost (model tokens, tool and evaluator fees, retries included) divided by completed tasks |
Why these three: a task-success failure is irrecoverable for the user, a forbidden action is a risk whether or not the task succeeds, and cost decides whether the agent is viable. Add a fourth metric only when a failure mode you have seen repeatedly is not covered by these three.
2. Define each test case with a fixed schema
Every test case should be a record like this. Each field exists to stop a specific failure of the evaluation itself.
scenario_classseparates capability cases (what the agent can do) from regression cases (what it must keep doing). The two-suites section below explains why they need different targets.initial_stateandisolation_notesmake each trial start from the same environment. Without a reset, earlier trials change the data later ones read.permitted_toolsandforbidden_actionsdefine the boundary for the trajectory rubric.expected_final_stateis checked by code against the system of record, not by reading the agent's reply.budgetturns runaway loops into a measurable failure rather than an open-ended bill.risk_ownernames the person who decides what a failure on this case means.held_outkeeps some cases out of prompt tuning, so the suite doesn't measure how well you memorised it.
3. Run n trials per task and gate on pass^k
Choose n as a parameter. Three is a practical starting default for a suite that costs real money per run; raise it for high-variance tasks. Report the result as pass^n: the share of tasks where the agent passed all n trials.
The arithmetic depends on an assumption you should state in the plan: trials are independent, meaning one trial's outcome does not change the next. Shared test data, leftover state, or a provider model update can break that. If your trials are correlated, your uncertainty is larger than the formula suggests.
For a per-trial success probability of 0.75, the figures below are arithmetic on a formula, not a measurement of any product:
Probability of passing all three trials: 0.75³ ≈ 42%.
Probability of passing all ten trials: 0.75¹⁰ ≈ 5.6%.
Probability of at least one pass in ten trials: 1 − 0.25¹⁰, roughly 99.9999%.
The same agent can look nearly perfect on "at least one pass in k" and poor on "pass every time". Anthropic draws this distinction and defines pass@k and pass^k as separate measures (Anthropic, Demystifying evals for AI agents). For a release decision that users will feel, gate on pass^k.
For the confidence interval on a pass rate, the exact binomial method is the standard reference (NIST/SEMATECH e-Handbook, 7.2.4.1 Confidence intervals). That method assumes independent trials and one population of tasks. If your tasks cluster, for example several cases share one fixture or one customer, treat them as correlated and widen the interval or aggregate at the cluster level.
4. Gate each suite, with an override for severe failures
Scenario class | Gate to ship | Override rule |
Regression | pass^n ≥ 95% across the suite (starting default) | Any forbidden action in any trial blocks the release, whatever the rate |
Capability | No target to ship against; track the trend and the failing cases | A capability suite finds work to do; it does not block a release |
A weighted average can hide one serious failure behind many passes, so keep forbidden actions out of any aggregate score.
5. Worked example (invented values)
The numbers below are invented to show the arithmetic. They are not measurements.
Suite: 40 regression tasks, n = 3 trials each.
Result: 34 tasks passed all three trials. 34 ÷ 40 = 85%.
One of the six failing tasks produced a forbidden refund in one trial.
Gate decision: blocked. The suite-level rate is below 95%, and the forbidden action blocks the release under the override rule regardless of the rate.
Next step: read the trajectory of the failing trial, classify the failure, and decide whether the fix belongs in the prompt, the tool definition or the permission check.

Get the Mobile Testing Playbook Used by 800+ QA Teams
Discover 50+ battle-tested strategies to catch critical bugs before production and ship 5-star apps faster.
Start by separating what the agent did from how it got there
An outcome grader checks the end state: did the refund get issued, did the ticket close, did the record change. A trajectory grader checks the path: which tools were called, with what inputs, and what came back. You need both. Google Cloud argues that metrics focused only on the final output are not enough for agentic systems, and it organises its approach around outcome, process and robustness (Google Cloud, A methodical approach to agent evaluation).
Outcome-only grading fails in two directions. It passes an agent that reached the right state by an unsafe route, such as an unauthorised tool call that happened to succeed. It also fails correct agents whose final state a poorly written grader reads wrongly. A well-designed outcome grader checks the source of truth, not the agent's summary of it.
Grade observable things. A trajectory is the sequence of actions your system can see: tool names, inputs, outputs and resulting state changes. Don't grade the model's hidden reasoning, and don't treat a self-written rationale as a faithful record of why the agent acted. Check your logging and privacy settings before you store traces, since they may contain customer data.
Pick three metrics, not ten
Ten metrics produce ten dashboards and no decision. Three metrics tied to failure modes give you a release decision and a cost figure you can defend.
Cost and latency are first-class axes. IBM's taxonomy separates accuracy, latency and cost families for agents (IBM, AI agent evaluation). Three definitions trip people up:
Usage is not money. Tool-call counts, compute time and memory drive cost, but they are not cost. Convert them to currency before you compare agents.
Throughput is not latency. Tasks per minute describes capacity. Latency is how long one task takes, measured per task.
Cost per completed task needs a fixed definition. State the numerator, including retries, failed attempts and evaluator calls, and the denominator, which is completed tasks. Decide in advance what you report when zero tasks complete.
An agent with high accuracy over many tool calls can cost more per completed task than a less accurate one with a short path. That comparison only means something once both sides are in dollars and both include the failures.
Run each task more than once, and gate on pass^k
One run is one sample. A preprint on randomness in agentic evaluation reports variability across repeated runs in its own SWE-bench experiments (arXiv 2602.07150, On Randomness in Agentic Evals). That is a study-specific result, not a field-wide variance estimate, but it is enough to justify repeated trials as a design requirement. Measure the variance on your own suite rather than assuming it.
Choose n by the cost of a missed failure. A low-risk, cheap task can run fewer trials. A task that touches money or customer data should run more, and its gate should be stricter.
Build two suites with opposite targets
Capability and regression suites have different jobs. Anthropic recommends that capability evals start at a low pass rate, targeting tasks the agent struggles with so you have a hill to climb. It recommends that regression evals sit at a nearly 100% pass rate because they protect behaviour you already have.
Those targets are guidance, not guarantees. The predictable misuse is a capability suite pitched so hard that it diagnoses nothing: every task fails, the failures look alike, and you can't tell which change helped. If a capability suite has no passing cases after two rounds of changes, split the tasks into smaller steps until you can see where the agent breaks.
Grade the trajectory, not just the answer
Score each trial with a cell-by-cell rubric. Each cell is binary, and a trial's trajectory score is the count of cells passed:
Cell | Pass condition |
Tool selected | Every required tool was called, and no tool outside |
Tool input valid | Inputs match the tool's schema and the values the task requires |
Tool output used | The next action depends on the tool's actual result, not on an assumed one |
No redundant or looping calls | The same call with the same input does not repeat beyond a set limit, and the trial stays within |
No forbidden action | No call matches |
The tool-order check needs care. LangSmith documents several trajectory matching modes, including strict, unordered, subset and superset, because exact sequence matching penalises valid alternative paths (LangChain, How to evaluate your agent with trajectory evaluations). Score order as a set of permissible sequences you define for the task. Don't score it against one script, or a correct agent that takes a different valid route will fail.
Score with a graded rubric, gate with a binary
Scoring and gating are different jobs. A rubric with graded cells tells you where an agent is weak. A release gate needs a binary decision per task, because a weighted score can let strong results on most cells hide one serious failure.
Scoring shapes are not interchangeable. Anthropic describes per-task scoring as weighted, binary or hybrid, depending on how graders combine. Microsoft's agent evaluators also use mixed scales, with some thresholded scores and some binary pass/fail results (Microsoft Learn, Agent evaluators for generative AI). Scale varies by evaluator and by version, so check the documentation for each evaluator you adopt rather than copying a scale from someone else's table.
The rule for your plan: a weighted aggregate must never cancel a disallowed action. A forbidden action is a failed trial, full stop.
Write test cases that can fail for the right reason
A test case earns its place by failing when the agent is wrong, and only then. Check each case for these problems before you trust its results:
Held-out cases. Keep some cases out of prompt tuning. Otherwise the suite measures memorisation of your own fixtures.
Environment reset. Restore
initial_statebefore every trial. Carry-over state creates failures that belong to the harness.Flaky external tools. A timeout from a third-party API is an infrastructure failure. Record it separately from an agent failure, or it will make the agent look worse than it is.
Deterministic checks where you can. Check the final state with code against the system of record. Use a model judge only where code cannot tell success from failure.
Prompt injection. Include cases where a retrieved document or tool output tries to change the agent's instructions, and grade whether the forbidden action happened.
Unauthorised side effects. Check for emails sent, records changed or money moved outside the expected scope, even when the task itself succeeded.
When a trial fails, classify the failure in the failure_taxonomy field, using your own categories. Published failure taxonomies exist, but they describe other populations (see the last section), so build yours from your own failed trials.
Calibrate your judge before you trust it
Model judges are measurement instruments, and they make mistakes. No source cited in this article validates a particular judge, so the procedure below is a recommendation, not a citation:
Label a sample of trajectories by hand, using the same rubric you give the judge. Have two reviewers label the sample so you can measure their disagreement too.
Run the judge on the same sample and report its agreement with the human labels.
Record the judge's failure types: which cells it passes wrongly, and which kinds of trajectory it misreads.
Revalidate after any change to the judge prompt, the judge model, or the tools it reads.
Set your agreement threshold in advance and write it in the plan. If the judge misses one class of failure consistently, don't use it as the sole grader for that class.
Keep measuring after launch, because agents decay
Pre-launch evaluation asks whether the agent is good enough to ship. Production monitoring asks whether it still is. Amazon describes agent decay as a failure mode that calls for systematic evaluation and continuous monitoring, and it notes that human review is needed to audit evaluation results (AWS Machine Learning Blog, Evaluating AI agents). That is a first-party account of one organisation's practice. It gives no universal sampling rate, and this plan doesn't either.
Make these choices on risk, and write them down:
Sampling rate. Sample more traces from high-risk task classes and from recent prompt or model changes.
Alerts. Alert on a drop in pass^n for regression cases, a new forbidden-action event, and cost per completed task rising past your budget.
Trace-to-case conversion. Turn each real production failure into a new regression case, after redacting customer data and getting the required consent.
Cadence. Re-run the regression suite on every prompt, model or tool change, and on a schedule that matches how often your dependencies change.
What your evaluation will not tell you
No suite measures everything, and a plan that implies otherwise will mislead the people who approve it.
The ACL 2026 Findings survey on evaluating LLM-based agents names critical gaps, particularly in assessing cost-efficiency, safety and robustness (ACL Anthology, A Survey on Evaluation of LLM-based Agents). That is the survey authors' assessment of the field. It doesn't mean nobody measures safety, and a stable regression suite can stay useful for a long time. Your suite will share those gaps unless you design for them.
Public benchmarks are also a weaker guide than they look. Saturation, test defects, contamination and changing task populations are separate validity risks, and they call for different responses. OpenAI stopped evaluating on SWE-bench Verified, citing test flaws and increasing contamination; that is OpenAI's assessment of one benchmark, not an independent audit of all of them (OpenAI, Why we no longer evaluate SWE-bench Verified). The benchmark's owner publishes its definition and leaderboard (SWE-bench Verified). A public benchmark is not a substitute for your own suite, and the reason is validity, not fashion.
Published failure taxonomies do exist. The MAST-Data dataset of multi-agent system failures, presented at the NeurIPS 2025 Datasets and Benchmarks track, covers research and framework multi-agent traces (NeurIPS 2025, Why Do Multi-Agent LLM Systems Fail?). It won't tell you your agent's failure distribution against your tools, so build your own taxonomy from your own trials.
One gap is ours to state plainly: Quash has no first-party data on this question. We haven't measured how agents fail when they drive real application interfaces, so nothing in this article comes from our own telemetry. The public record is thin there too. The benchmarks and datasets above cover code repair and multi-agent research frameworks, and none of them reports failure distributions for agents acting on live web, desktop or mobile screens. What would settle it is logging full trajectories from repeated runs on real or virtual devices, recording whether each tool input matched the actual screen state, and publishing the resulting failure counts per task. Until someone does that, treat any claim about UI-agent failure rates, including a confident one, as unmeasured.
Conclusion
Start with your agent's failure modes, not with a menu of evaluators. Choose three metrics that cover task success, forbidden actions and cost, and write each test case with a fixed schema. Run every task several times, gate on pass^k, and treat any forbidden action as a hard stop. Calibrate your judge against human labels before you rely on it, and keep measuring in production because the agent will change.
Decide the gate values with your risk owners before the first run, and write them into the plan. Then run the suite once, read the failing trajectories yourself, and make the next change based on what they show.
FAQ
What is AI agent evaluation? AI agent evaluation measures whether an agent completes a task correctly, takes only permitted actions, and does so at an acceptable cost, across repeated trials. It grades the outcome and the sequence of observable tool calls, not only the final answer.
What is the difference between pass@k and pass^k? pass@k is the probability that at least one of k attempts succeeds. pass^k is the probability that all k trials succeed. For release decisions that users experience, pass^k is the more relevant measure because it captures consistency across attempts.
How many trials should I run per task? Choose the number by the cost of a missed failure. Three is a practical starting default for costly suites. Higher-risk tasks need more trials, and the independence assumption behind the arithmetic should be written into the plan.
Why grade the trajectory and not just the final answer? A correct final state can be reached by an unpermitted tool call, and a wrong-looking answer can come from a correct process. Trajectory grading checks observable actions such as tool choice, inputs and outputs. It has to allow for valid alternative paths, or it will fail correct agents.
Can I rely on a public benchmark to evaluate my agent? Public benchmarks show how a model performs on that benchmark's tasks. They carry validity risks such as contamination and test defects, so they do not replace a suite built from your own tools, data and risks.
Do I need an LLM judge to evaluate an agent? Not for every check. Where code can check the final state against a system of record, use code. Use a model judge only where code cannot decide, and calibrate it against labelled human cases before you rely on its scores.







