Report the agent's reliability with its denominator attached
Run every task several times and report pass@k and pass^k from the counts, with tasks, runs per task and grader named. For the bug-fixing agent, 0.70 per run becomes 0.82 for 'one of three works' and 0.56 for 'all three work', and the gap from the independence guess shows where failures cluster.
22 MIN
By AIAgentInterviews · Updated
TL;DR: One run per task tells you almost nothing about an agent that varies from run to run. Run each task n times, compute pass@k and pass^k from the pass counts with the unbiased estimators, and never report a number without its basis: tasks, runs per task, grader version.
Where you are. Module two, lesson one. Each Bramble task has an outcome grader and trajectory checks. Now you run them enough to say something.
One run is a coin toss you watched once
Run the same Bramble ticket through the agent twice and you can get two different patches, one passing and one failing. Sampling, tool timing and the order of file reads all vary. A single pass tells you the agent can fix the bug, not that it will. If you report one run per task, a change that did nothing can look like an improvement because a few coins landed differently.
So every task runs several times. Five runs per task is the illustrative starting budget here. A five-for-five result does not establish that a task always succeeds, and zero-for-five does not establish impossibility. Choose more trials or more tasks based on the uncertainty in the decision you need to make.
In plain language. pass@k asks whether at least one of k attempts succeeds. pass^k asks whether all k succeed. The first fits a workflow with selection; the second exposes inconsistency. Both depend on which tasks and repeated trials were measured.
Two questions, two numbers
What you report depends on what the business needs. Bramble's engineers review every fix before merging, so if any of three attempts works, they have a fix: that is pass@k, the chance at least one of k runs passes. A support agent that answers customers alone needs every run to be right: that is pass^k, the chance all k runs pass. The concept page derives both. Here you compute them from Bramble's counts.
from math import comb
# Passes out of 5 runs per task, for 8 Bramble tickets (illustrative numbers).
RUNS_PER_TASK = 5
PASSES = {"BR-101": 5, "BR-102": 5, "BR-103": 4, "BR-104": 5,
"BR-105": 1, "BR-106": 0, "BR-107": 5, "BR-108": 3}
def pass_at_k(n, c, k):
"""Chance that at least one of k runs drawn from these n passes."""
return 1.0 if n - c < k else 1 - comb(n - c, k) / comb(n, k)
def pass_hat_k(n, c, k):
"""Chance that all k runs drawn from these n pass."""
return comb(c, k) / comb(n, k)
def report(k):
n = RUNS_PER_TASK
at = sum(pass_at_k(n, c, k) for c in PASSES.values()) / len(PASSES)
hat = sum(pass_hat_k(n, c, k) for c in PASSES.values()) / len(PASSES)
return round(at, 2), round(hat, 2)
print(report(1)) # => (0.7, 0.7)
print(report(3)) # => (0.82, 0.56)
p = 0.7
print(round(p ** 3, 2)) # => 0.34
Both estimators draw k runs from the n you made, per task, then average over tasks. They are the standard unbiased estimators: unlike "pass rate to the power k", they use the actual pattern of passes on each task.
The gap tells you where failures live
At k equal to one, both numbers are the per-run pass rate, 0.70. At k equal to three they split: 0.82 for "at least one works", 0.56 for "all three work".
Now compare 0.56 with what you would guess from 0.70 alone. If every run were an independent coin with a 70 percent chance, all three passing would be 0.7 cubed, 0.34. The measured pass^3 is much higher because Bramble's failures are not spread evenly. Four tickets pass all five observed trials; BR-105 and BR-106 almost never do. Failures cluster on hard tasks, so "all three pass" is easy on the easy tasks and hopeless on the hard ones.
That clustering matters for what you do next. If failures were spread evenly, retries and more runs would help everywhere. Because they cluster, BR-106 has no observed success in this small sample. Inspect its failures before spending more retries; this sample alone cannot prove the task impossible. A per-task table of pass counts belongs next to every headline number for this reason.
1 − (1 − 0.70)^30.70^3Every number carries its basis
A reliability number without its basis cannot be compared with anything. Report it the way you would report a measurement in an incident review:
pass@1 0.70, pass^3 0.56 on 8 tasks, 5 runs per task, grader v2 (hidden checks plus three trajectory rules), agent build 2026-11-20, illustrative data.
Eight tasks is a small denominator, and saying so is part of the report. Changing all five outcomes on one task moves the per-run rate by 12.5 percentage points; changing one of the forty individual outcomes moves it by 2.5 points. The next lesson puts an interval around that, so a reader can see whether a difference is bigger than the noise.
Keep the grader version in the report. If someone tightens a trajectory rule, the score falls and the agent has not changed. The score-investigation lesson examines exactly that kind of drop.
Choosing k
Pick k from the decision the number supports. For Bramble's reviewed fixes, pass@3 matches the workflow: engineers will try up to three times. For anything that acts without review, report pass^k with k at least as large as the number of times one customer is likely to hit the same kind of task. Report pass@1 alongside either, since it is the number most people expect to see, and do not let it stand alone.
Compute one task before averaging the suite
Take one illustrative task with five trials, three passing and two failing. There are ten distinct pairs of trials. Exactly one pair contains both failures, so nine of the ten pairs contain at least one pass: the estimated pass@2 is 9/10. Three pairs contain two passes, so the estimated pass^2 is 3/10.
That arithmetic explains the combinations in the code. It avoids pretending that the observed three-in-five rate is a perfectly known probability. These sample estimators target repeated draws under stable, independent trial conditions for each task; shared state and adaptive retry strategies change the experiment.
Now average over tasks, giving each task the intended weight. If one task has twenty trials and another has five, pooling all trials makes the first task count four times as much. That may be appropriate for a traffic-weighted measure, but it is a different question from equal-weight task performance.
Keep selection cost visible. A pass@3 result assumes a usable way to identify a successful candidate among the attempts. A hidden grader can do that in an evaluation, while a customer-facing system may not have one. The score demonstrates an opportunity for selection; it does not make the runtime selector correct.
Report both the measure and the operational condition: three attempts, a stated selection method, a fixed task set and a recorded grader. Without those, “reliable” hides the work needed to achieve the result.
What if · interview follow-ups
Change one condition
One task has three passes in five trials. You can afford two attempts at runtime.
Start here
Does pass@2 = 0.9 mean the production system succeeds nine times out of ten?
Identify what the evaluation knows that the runtime may not.
It is an estimate from this task's sample under the repeated-trial assumptions. Runtime success also depends on the task distribution, state reset and selecting a valid result. Report uncertainty and those conditions rather than a production guarantee.
Weak answerTreating a small-sample capability estimate as an observed service rate.
Constraint changes
The second attempt reads the first attempt's patch and critique. Is it another independent trial?
The input and strategy have changed.
No. It is a two-attempt adaptive system. Evaluate that entire retry strategy as the candidate, resetting between full trials, instead of applying an independence interpretation to its internal attempts.
Weak answerCounting dependent repairs as fresh samples from the same unchanged process.
Do this before moving on
Run your five tasks from lesson one five times each and record the pass counts. Compute pass@1, pass@3 and pass^3 with the functions above, and write the report line with its full basis. Then compare your pass^3 with pass@1 cubed. If the measured number is far above the cubed one, find the tasks your agent never passes and read their trajectories.
Review your result. Show the ten pairs for the five-trial example and identify the successful pairs for each measure. Then state task weighting, reset behavior and selection method beside your own report. Leave population claims out of a tiny synthetic suite.
Go deeper
- pass@k and pass^k: the derivation of both estimators and when each one is the right question.
- Regressions in a Non-Deterministic System: how many runs and tasks you need before a difference means something.
- Outcome and Trajectory Grading: what the grader in the report line actually checks.
- Calibrating an LLM Judge: the extra uncertainty a model grader adds to every number here.
Key takeaways
- Run each task several times; one run per task cannot tell a real change from luck.
- Compute pass@k and pass^k per task from pass counts, then average over tasks.
- A measured pass^k far above pass@1 to the power k means failures cluster on hard tasks.
- Report every number with tasks, runs per task, grader version and agent build.
Check yourself
Answer aloud or on paper before revealing. Producing the explanation unaided is exactly what a panel listens for.
1Bramble's engineers review every fix and will retry up to three times. Which number matches that workflow?
2The measured pass^3 is 0.56 but the per-run rate cubed is 0.34. What explains the gap, and what should you do about it?
3A teammate reports 'pass rate 0.85' with no other detail. What is the most important thing missing?
Sign in to track which lessons you have finished.