pass^k, not pass@k. A customer-facing agent has to get it right every time
A 90% success rate looks good until you ask how many times in a row it happens.
Picture a restaurant where the dish comes out right 9 times out of 10. On paper that looks good: 90%. Now think about someone who eats there every Friday. Over a month, the chance that this person gets the right dish on all four visits is 0.9 × 0.9 × 0.9 × 0.9, about 66%. Over a year, the chance of never getting a wrong dish is close to zero.
The kitchen didn't get worse. What changed was the question. "How often does the dish come out right?" and "how often does a customer never have a problem?" are different questions, and the math that answers each one is different too.
I have been thinking about this difference while testing Haseyo, our conversational agent for e-commerce: it answers questions, looks up orders, builds carts, checks shipping and so on. For this kind of agent, the most common metric in the field answers the wrong question.
The terms
It is worth starting with the vocabulary. I use the definitions from Anthropic's "Demystifying evals for AI agents", which I think are the clearest available today.
- Task: a single test, with defined inputs and success criteria.
- Trial: each attempt at solving the task. Because the model's output varies, you run more than one.
- Grader: the logic that scores some aspect of the agent's performance.
- Transcript: the complete record of a trial, with messages, tool calls and intermediate results.
- Outcome: the final state of the environment when the trial ends.
The most useful distinction is between transcript and outcome. The example in the text itself is a flight-booking agent that says "Your flight has been booked." That is in the transcript. The outcome is whether the reservation actually exists in the database. An agent can say the right sentence and leave the world wrong.
Two metrics with almost the same name
pass@k is the probability that the agent gets it right at least once in k attempts. pass^k is the probability that it gets all k attempts right (Anthropic).
pass@k comes from code generation. The paper that introduced Codex and the HumanEval benchmark used this logic: generate several code samples per problem and count the problem as solved if any of them passed the unit tests (Chen et al., 2021). That makes sense in that setting, because there is an automatic verifier, the tests, that picks the good sample and discards the rest. Failing nine times costs little if the tenth attempt is the one you keep.
pass^k (read "pass hat k") was proposed by the Sierra team in the τ-bench paper. The motivation is explicit: in real-world tasks that demand reliability and consistency, such as customer service, the relevant question is not whether the agent can get it right at some point. It is whether it gets it right every time.
The math, which is short
Suppose that, on a given task, the agent succeeds with probability p on each trial and that trials are independent. Then:
pass^k = p^k
pass@k = 1 − (1 − p)^k
The example in Anthropic's text is p = 0.75 and k = 3. The chance of getting all three right is 0.75³, about 42%. The chance of getting at least one right is 1 − 0.25³, about 98%. It is the same agent on the same task, and the two metrics give an almost perfect number and a number below 50%.
p per trial k = 1 pass^3 pass^10 pass@3 pass@10
75% 75% 42.2% 5.6% 98.4% ~100%
90% 90% 72.9% 34.9% 99.9% ~100%
95% 95% 85.7% 59.9% 99.99% ~100%
99% 99% 97.0% 90.4% ~100% ~100%
With k = 1 the two metrics are the same. With k = 10 they tell opposite stories: pass@k gets close to 100% and pass^k falls.
One detail bothered me when I put the table together. To have a 90% chance of getting it right ten times in a row, the agent needs about 98.95% success per trial. Going from 90% to 99% looks like a nine-point gain. In practice, each point near the top is worth much more than the points in the middle.
In τ-bench this shows up with real data, not just with a formula. In the retail domain, the best agent the authors tested had an average success rate above 60%, and even so its pass^8 was below 25% (Yao et al., 2024).
An honest caveat about the formula
The p^k formula is a simplification. It assumes every task has the same p. In real life some tasks are easy and the agent always gets them right, and others are hard and it gets them right half the time.
Take two tasks, one with p = 1 and another with p = 0.5. The average success rate is 75%, the same as in the example above. But the average pass^3 is (1 + 0.125) / 2, about 56%, not 42%. That is why τ-bench computes pass^k task by task, from n trials and c successes, and only then takes the average. The Codex paper does the same for pass@k and shows that computing 1 − (1 − p̂)^k from the overall average gives a biased estimate.
This has a practical consequence. Two versions of the same agent can have the same average and very different levels of reliability, depending on how the errors are spread across tasks. The average alone hides that information.
Why a customer service agent lives in the world of pass^k
When an agent generates code, there is a filter between the model's output and the world: the tests, a reviewer, a person who picks the best of five attempts. In that case, pass@k measures something real: the chance that the good solution shows up at some point.
An agent that serves customers has no such filter. Each conversation is a trial, and the customer sees the result. Nobody runs the conversation three times and picks the best one. If the agent quotes a wrong price in one out of every twenty conversations, the customer in the twentieth won't be comforted to know the other nineteen went fine.
The same customer also comes back. Someone who buys every week, reschedules an appointment every month or checks on orders often runs k trials over time. That person's experience with the product is, literally, a pass^k.
Then there is volume. A store that handles a thousand conversations a day at 95% success per conversation produces, on average, fifty conversations with a problem every day. As an average, 95% looks great. At the support desk, it is fifty frustrated customers every day.
Anthropic's text says this directly: pass^k matters especially for customer-facing agents, because users expect reliable behavior every time. The choice between the two metrics depends on the product: pass@k when one success is enough, pass^k when consistency is essential.
"But I use temperature zero"
This was the first objection that came to mind. If the model always picks the most likely token, the output should always be the same, so p would be 0 or 1 and the problem would go away.
In practice it doesn't work that way. The Thinking Machines team showed that, even at temperature zero, language model APIs are not deterministic. The main cause is that server load, and with it the size of the batch of requests, varies from one call to the next, and inference kernels are usually not invariant to batch size.
Even if the model were perfectly deterministic, the customer isn't. The same intent arrives written a thousand ways: with a typo, split across two messages, with a question in the middle. τ-bench takes advantage of exactly this: it uses a model to simulate the user, and the variation in the conversation alone is enough to produce the randomness that pass^k measures.
What changes in practice
A few things changed in how I work after I started thinking in pass^k.
Run each task more than once.
One trial per task measures the average and nothing else. With three to five trials you can already see which tasks are unstable, and they often matter more than the ones that always fail, because they are the hardest to reproduce when a customer complains.
Report the variation, not just the average.
"The agent gets 88% right" should come with "and gets all five runs right on 61% of tasks." The second number is what the customer feels.
Grade the outcome, not the path.
Requiring an exact sequence of tool calls makes the test brittle, because the agent often finds valid paths nobody anticipated. What matters is the outcome: the order was changed, the appointment was rescheduled, the amount quoted matches the system.
Start small, from real failures.
Twenty to fifty simple tasks, taken from real failures, are already a great start. τ-bench makes a similar bet: a few good tasks, run many times, reveal more than many tasks run once.
Read the transcripts.
The transcript is where you find out whether the agent really got it wrong or the grader rejected a valid answer. When pass^k is low, the first hypothesis should be "my test is wrong," and only then "my agent is wrong."
When pass^k is low
The temptation is to tweak the prompt until the number goes up. Sometimes it works. But the table above suggests another path: if it is so expensive to take p from 95% to 99%, it may be worth taking away from the model the decisions where a mistake cannot happen.
Reduce the surface.
Every tool and every kind of request the agent accepts is one more place where it can go wrong. An agent that does a few things very well has a better pass^k than one that does many things reasonably well.
Put deterministic rules around the model.
If a value has to come from the system, such as a price, a balance or a deadline, ordinary code can check the final answer before it goes out. If the number in the message doesn't match what the tool returned, the message doesn't reach the customer.
Require explicit confirmation for irreversible actions.
Cancelling, charging and rescheduling are cases where an extra confirmation step trades a little friction for much less risk.
The reasoning is the same as for systems in series. If the conversation depends on five steps and each one is right 98% of the time, the whole is right about 90% of the time. Replacing one of those steps with code that is always right improves the whole more than improving each step a little.
What I still don't know
I'll close with the questions I can't answer well yet.
What is the right k for a business?
τ-bench's k = 8 is a benchmark choice. For a store, the relevant k may be how many times an average customer comes back before deciding whether to trust the service. I don't know whether anyone has measured that.
How do you weigh failures by cost?
pass^k treats every error the same. A slightly odd greeting and a wrong price count equally. A pass^k weighted by the cost of each error would seem more honest, but I don't know of a standard way to do it.
Can a system be reliable in pass^k without the model being reliable?
My intuition says yes, if the critical parts are deterministic and the model handles only what tolerates variation. But I don't know where the limit is, or how much of the agent's usefulness is lost when you surround it with rules.
Does the pass^k measured in testing hold in production?
The simulated user is an approximation. Real customers are more creative, more impatient and more ambiguous. I don't know whether pass^k drops in a predictable way when it leaves the lab.
If you work on this and have answers, or better questions, I'd like to hear them.
Sources
- Anthropic. "Demystifying evals for AI agents." anthropic.com/research/demystifying-evals-for-ai-agents
- Yao, S. et al. (2024). "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains." arxiv.org/abs/2406.12045
- Chen, M. et al. (2021). "Evaluating Large Language Models Trained on Code." arxiv.org/abs/2107.03374
- He, H. and Thinking Machines Lab (2025). "Defeating Nondeterminism in LLM Inference." thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference
Source: https://santosant.substack.com/p/passk-nao-passk-agente-que-atende