Agent Success Criteria
In this article
- Turn a vague requirement such as "handle refunds well" into a list of conditions on what an agent run changed and what it replied.
- Sort each condition into a hard constraint, which fails the run on one break, or a quality target, which a successful run can miss.
- State one acceptable partial outcome and write every condition so that code or a one-question rubric can check it.
- Judge a run whose reply looks right but whose changes are wrong, and say why it fails.
- Terms defined here: environment state, agent success.
Overview
Your support assistant's requirement says "handle refund requests well". Twenty of its replies all sound polite, correct and finished. Can the assistant still be getting refunds wrong? Yes, because a reply is only what the assistant said, and a refund is something it did.
Brightline, a made-up home-internet provider, runs a support assistant on its website that can look up an order, issue a refund of at most $50 and hand a conversation to a person. Its team now grades whole runs on one request: a customer with two recent orders asks for $30 back on a router. Afterwards you can turn a vague wish into checkable conditions, mark which ones fail a run outright, name the partial outcome you accept, and show why a perfect reply can still belong to a failed run.
What a run leaves behind
The customer writes: "The router I got last week keeps dropping. I want my $30 back." Their account holds two orders. Order 4471 is the router, $30, delivered 6 days ago. Order 4490 is a power adapter, $25, delivered 3 days ago. Neither is refunded, and both are inside the help page's 14-day window, so a refund on either would go through.
The assistant has four tools: lookup_order, issue_refund(order_id, amount), escalate_to_person(reason, note) and search_help. One agent run is the whole execution from the customer's message to the assistant's last reply, every tool call included.
A run leaves two things behind: the reply the customer reads, and, less visibly, the environment state, the data in the systems the assistant works with, which here is Brightline's order system. The tau2 agent benchmark, in its banking domain, uses the term for the database itself. [5] A refund changes that state, and the change stays after the chat closes. LangSmith's tutorial refund agent, for one, processes a refund by deleting rows in its database, and adds a mock mode for tests that leaves the data untouched. [4]
The trace sits between the two: it records each call and result in order, so it tells you which actions were asked for, while the order system tells you what those actions actually changed. An eval that reads only the reply is grading the half of the run that cannot move money.
From a wish to conditions
"Handle refund requests well" names no observable thing, so the check that grows from it by default is a reply check: does the answer sound helpful and mention a refund? Anthropic's guide to success criteria names the fix: a good criterion is specific and measurable, so "good performance" becomes a statement of what exactly is achieved. [2]
Google's Agent Development Kit (ADK) asks the same question before any tooling: what counts as a successful outcome for your agent? [1] For an agent the answer has two halves, what the run changed and what it said, so write agent success as conditions on both, settled before you pick a single metric.
Four kinds of condition matter for the router refund. Correctness: one $30 refund on order 4471, and a reply that says so. Policy: no refund before the order was read, and no reading another customer's order. Forbidden side effects: no refund on 4490 or any other order. Resources: at most 8 steps and 30 seconds per run. Anthropic's list of common criteria puts response time and price next to task quality, and most applications need several at once. [2]
Hard constraints and quality targets
A hard constraint fails the run on one break, traded against nothing. It is a hard invariant: a rule one violation breaks, checkable by a program from what was recorded. Money paid on the wrong order, or another customer's order opened, is harm that a good reply cannot cancel out, so those go here.
A quality target is something you want and can miss while the task still succeeds. The step and time budget sits on this side too: the harness stops a run at 8 steps, so a run cut off before the refund fails on outcome; where a run is not stopped, going over 8 steps or 30 seconds is only a missed quality target. A run that takes nine steps to refund the right order did the job at a higher cost, while a run that refunds the wrong order in three steps did harm.
A rule that code already enforces still belongs in the contract of any task where it can come up. issue_refund refuses any amount above $50, whatever the model asks. For a $60 request, the contract still fails a run that calls issue_refund at all instead of escalate_to_person, because the eval measures the assistant's choices, not only what code let through.
A partial outcome you accept
Some runs cannot settle the task: the message is unclear, or a tool keeps failing. Without a stated fallback the contract is all-or-nothing, and such a run looks the same as one that refunded the wrong order.
Brightline accepts one partial result: the assistant calls escalate_to_person with a note that names the order, the amount and the reason, and refunds nothing. The customer waits a little longer, nothing went wrong, and a person can finish in a minute. The contract names it as acceptable and gives it no number: what it is worth in a score is decided when you pick metrics, not in the contract.
The success contract
Here is the whole contract for the router refund, as YAML (invented):
task: router refund
required:
order_system: exactly one refund, on order 4471, for $30
reply: tells the customer the $30 router refund is made
hard_constraints:
- no refund on 4490 or on any other order
- no issue_refund before lookup_order has read 4471
- no read of another customer's order
acceptable_partial: escalate_to_person, note names order, amount and reason
quality_targets:
- reply is clear (short rubric)
- budget: at most 8 steps and 30 secondsAsk who checks each line. The required refund and the first hard constraint are a query on the order system after the run; the other hard constraints are read from the recorded tool calls, and the budget from the step count and the clock. The two reply lines are each one question for a short rubric, a written grading guide that a person or a grader model answers: "Does the reply say the $30 router refund is made?" and "Is it clear?". No line needs someone to read the whole reply and form an opinion.
Compare where ADK keeps its expectation. An ADK eval case stores, for each turn, the user's message, the tool calls you expect, and a final_response field holding the reply the agent should give, which serves as the reference; each eval also starts from its own initial session state. [1] A stored reply is a fine reference for wording, but it cannot tell you which order received the money.
Two runs, one contract
Two invented runs. In the first, the assistant looks up 4471, calls issue_refund(4471, 30) and replies that the $30 refund for the router is on its way. In the second, it looks up 4471, then calls issue_refund on order 4490, and replies: "Your $30 refund is on its way".
Before reading on, predict: a check that reads only the reply, does it pass both runs?
It does: the two replies say the same thing. The contract does not:
| condition | kind | checked by | first run | second run |
|---|---|---|---|---|
| one $30 refund on 4471 | required | order system | pass | fail |
| reply says the refund is made | required | short rubric | pass | pass |
| no refund on 4490 or any other order | hard constraint | order system | pass | fail |
| no refund before 4471 was read | hard constraint | tool calls | pass | pass |
| no read of another customer's order | hard constraint | tool calls | pass | pass |
| reply is clear | quality target | short rubric | pass | pass |
| within 8 steps and 30 seconds | quality target (budget) | tool calls, clock | pass | pass |
The second run fails twice for one reason, the money moved on the wrong order: no refund on 4471, and a forbidden one on 4490. The hard constraint alone settles it, whatever the reply lines say. Meanwhile the customer expects a router refund that will never arrive.
Outcome first, metrics second
Define success in what you can observe at the end of a task before choosing what to measure: the desired final state, the forbidden side effects and policy breaks, the partial outcome you accept, the resource budget. Then pick metrics that read those lines.
Each part blocks a familiar failure. Without the final state, success quietly becomes "a nice final text". Without written hard constraints, safety and cost live outside the score, and a run that pays the wrong order can still pass. Without an acceptable partial outcome, every run must be perfect, and an escalation counts the same as a disaster. And metrics picked first measure what is easy to count, such as reply length or step count, instead of what the customer needed.
Sources
- Why evaluate agents (ADK docs). Google. Checked 19 Nov 2026.
- Define success criteria and build evaluations. Anthropic. Checked 24 Oct 2026.
- Define outcomes. Anthropic. Checked 24 Oct 2026.
- LangSmith: Evaluate a complex agent. LangChain. Checked 25 Oct 2026.
- tau2 (Inspect Evals README). UK AI Security Institute (Inspect Evals). Checked 29 Oct 2026.
Check yourself
Check yourself
Question 1 of 13
You must grade the requirement 'the bot should handle returns well'. What do you write first?
Your first check counts towards your result.