The interview problem
Before releasing a new agent, evaluate whether it completes customer tasks reliably, respects tool permissions, and stays within latency and cost budgets.
Engineering-inspired practice, informed by Anthropic’s public agent-evaluation writing. Not a reported Anthropic interview question. Reviewed September 26, 2026. All workload numbers and acceptance thresholds below are illustrative practice assumptions.
1. Define success before choosing a grader
Pick a concrete task family, such as fixing a repository bug and producing a patch. Success requires the requested behavior, regression checks and compliance with the allowed-action policy. Distinguish task, trial and evaluation run: one task can have many stochastic trials; one run binds tasks to an agent version and environment.
Use 5 minutes to define success, 10 for datasets and contracts, 12 for runners and graders, 10 for statistics and 8 for release decisions. Do not start by drawing an LLM judge and assume every output can be reduced to one reliable score.
2. Version every part of an evaluation
POST /eval-runs references a dataset version, agent build, prompt/tool configuration, environment image, trial policy and budget. Each task contains starting fixtures, allowed actions, hidden checks and expected outcome criteria. Runners reset environments between trials and collect tool traces, final artifacts, costs and termination reason. Store immutable run manifests so comparisons can be reproduced as far as the model service permits.
Use executable checks for objective properties such as final database state or a patch passing tests. Add calibrated model grading for evidence quality or subjective usefulness, and human review for disagreements and high-impact cases. Treat output and tool traces as untrusted data inside grading prompts. Keep grader model, rubric and judge instructions versioned separately from the candidate agent.
3. Calculate the evaluation bill
Assume 200 tasks, three trials, and two candidate versions: 1,200 trials. At a mean 40,000 tokens per trial, the experiment consumes 48 million tokens before judge calls. At an illustrative 30 seconds per trial and 20 fully utilized workers, ideal execution time is 1,800 seconds, or 30 minutes. Provider quotas, tool contention and stragglers make the real run longer. These assumptions are for planning, not model pricing or performance claims.
If one version succeeds on 160 of 200 distinct tasks, the observed rate is 80%. A rough independent-task standard error is sqrt(0.8 × 0.2 / 200), about 2.8 percentage points. A normal-approximation 95% interval is about ±5.5 points. Repeated trials on the same task are correlated; do not pretend 600 trials are 600 independent task samples. For comparisons, preserve pairing by task and use uncertainty methods appropriate to the sampling design.
4. Keep invalid trials separate
A runner that cannot start because its fixture service is down has not demonstrated an agent failure. Record infrastructure-invalid trials separately, retry them under a predeclared rule and publish their count. A valid trial in which the agent itself crashes or exceeds its budget should count according to the task policy. Quietly retrying only failed model outcomes biases the result upward.
Prevent training/evaluation leakage with held-out task families, access controls and periodic fresh cases. Keep regression cases for known failures, but do not optimize exclusively against them. Report results by meaningful slices such as repository size, task type, language and permission requirements rather than only one aggregate score.
5. Make a release decision, not a leaderboard
For a proposed release, require no known permission regressions, a predeclared success criterion with uncertainty, and acceptable cost/latency distributions. A small average gain can hide a severe regression on one customer workflow. Follow offline evaluation with a limited production rollout and a rollback path; a benchmark is not proof of production safety.
One successful attempt out of several measures a different product experience from repeated reliable success. Publish the trial policy and avoid selecting the best output unless the deployed product also has that selection mechanism and pays its cost.
6. Check the reasoning
Foundation: distinguish task, trial and run. Senior: diagnose whether a five-point gain is grading drift or model improvement. Staff: design a release policy when customer slices conflict.
Score 0–2 each for outcome definition, reproducible manifests, grader validation, honest uncertainty and actionable release gates. Two points require a concrete check and limitation. “The judge says 9/10” without a calibrated rubric earns no grading credit.
Sources and next steps
References support the underlying concepts; the proposed architecture, exercises, and rubric are our own. Review experiment design and take a pilot into production.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.