Evaluation and QualityAgent task and trajectory outcomesPrincipal
Can aggregate pass@10 determine an agent’s single-attempt success rate?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A benchmark reports that at least one of ten sampled attempts succeeds on 90 percent of tasks. Production normally returns one attempt and has no hidden-test oracle for choosing among candidates. Determine what this aggregate result does and does not establish about single-attempt success. Give two different task or sampling models compatible with the same pass@10 result, then specify the measurement needed for the production claim.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
A 90-percent pass@10 result says that the evaluator found a successful candidate within the tested budget on that fraction of tasks. It does not identify the probability that the first candidate succeeds or that the deployed product selects a successful candidate. Recovering either number requires more information about the task distribution, sampling policy and selector.
The HumanEval paper distinguishes single-candidate success from success when multiple candidates are available. In this setting, an oracle is an evaluator that can recognize which candidate passed for reporting. Production may not have that recognition capability. Finding one good draft among nine bad ones is useful only if the deployed workflow can identify and return it within its actual time and resource budget.
Two hypothetical populations show why the aggregate does not determine pass@1. In the first, 90 percent of tasks are always solved and the remaining 10 percent are never solved. Both expected pass@1 and pass@10 are 90 percent. Additional sampling does nothing because task difficulty, rather than sampling luck, determines success.
In the second population, every task has the same independent per-attempt success probability p. Expected pass@10 is then 1 - (1-p)^10. Setting that to 0.9 gives p = 1 - 0.1^(1/10), approximately 0.206. This population has the same expected pass@10 but only about 20.6 percent single-attempt success. These are illustrative models, not estimates for the benchmark. A finite observed 90 percent also has sampling uncertainty.
Real agents need not fit either model. Attempts may share the same misunderstanding or source defect, making their errors correlated. A retry loop can learn from a failing test and change its later success probability. A later attempt might use a different model, a larger tool budget or a patched environment. Treating all these outcomes as independent draws with one shared p would describe a different system. Report the actual attempt policy and preserve per-task results.
The direct measurement is to run the production contract. Start each task in the relevant isolated state, use one attempt if that is the deployment limit, and retain its tools, timeouts and permitted evidence. Count every assigned eligible task, including failed, timed-out and abandoned runs. Measure verified task success and constraint violations, with uncertainty across independent tasks. If several trials per task are used, retain that grouping in the analysis rather than pretending each trial is a new task.
If production permits ten candidates and a test-based selector, measure the selected answer after that selector runs. Count generation, tests, coordination and latency for every candidate. A hidden benchmark test available only after the run cannot be used as if it were the production selector. Publish first-attempt success, success under each allowed budget and selected-output success separately.
This question is an inference problem about what an aggregate statistic identifies. The related multi-candidate deployment question asks whether purchasing and selecting eight patches is worthwhile. Here, the first obligation is to reject an unjustified numerical conversion and ask for the missing observations. Retries are a legitimate capability with costs. Their oracle-assisted result is simply insufficient evidence for a single unattended run.
Related questions
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux