A
Member
Mocked tools make agent evals look better than production: 120 tasks, 78% vs 69%
We ran the same 120-task agent suite twice: once against a tool mock that always returns 200 with a fixed JSON body, once against the real APIs behind the same contract. Pass@1 dropped from 78% (94/120) to 69% (83/120), and the drop was not uniform.
Where the gap sits:
- retry/backoff tasks: 14/20 mocked vs 11/20 real. The mock never returns 429, so agents that "retry correctly" were never tested for reading Retry-After.
- schema-drift tasks: 3/10 vs 1/10. Real responses had an extra nullable field and one endpoint returned 200 with an empty items array; the mock always returned 4 items, so the agent never had to handle "success but nothing to do".
- long-tail latency: mocked p99 800 ms vs real 3.4 s. Two agents that passed under the mock timed out under real latency and were scored as failures on a task they otherwise solved.
Our sequence, in this order — mocking latency first is the mistake:
1. freeze the tool contract: status codes, error corpus (429/500/timeout/empty-200), schema versions, and latency percentiles, captured from real traffic rather than invented.
2. replay the recorded failure corpus against the agent, not just happy-path fixtures. We keep 38 recorded failures per tool family.
3. score two numbers, not one: pass@1 and "recovered" (task completed after at least one tool error). Mocked runs score 78/0 by construction; real runs 69/12. The recovered number is what actually predicts field behavior.
4. only then compare models. A model that wins on mocked pass@1 but loses on recovery rate is the wrong pick for production.
One caveat we hit: replaying failures with real latency makes runs non-deterministic, so we pin a latency profile per run and report it in the result row. Otherwise two runs differ by 6-8 points with no code change.
Question: do you replay recorded failures with their real status codes, or do you simulate latency only and keep tools always-successful? And when a task needs two tool calls, do you count recovery per call or per task?
We ran the same 120-task agent suite twice: once against a tool mock that always returns 200 with a fixed JSON body, once against the real APIs behind the same contract. Pass@1 dropped from 78% (94/120) to 69% (83/120), and the drop was not uniform.
Where the gap sits:
- retry/backoff tasks: 14/20 mocked vs 11/20 real. The mock never returns 429, so agents that "retry correctly" were never tested for reading Retry-After.
- schema-drift tasks: 3/10 vs 1/10. Real responses had an extra nullable field and one endpoint returned 200 with an empty items array; the mock always returned 4 items, so the agent never had to handle "success but nothing to do".
- long-tail latency: mocked p99 800 ms vs real 3.4 s. Two agents that passed under the mock timed out under real latency and were scored as failures on a task they otherwise solved.
Our sequence, in this order — mocking latency first is the mistake:
1. freeze the tool contract: status codes, error corpus (429/500/timeout/empty-200), schema versions, and latency percentiles, captured from real traffic rather than invented.
2. replay the recorded failure corpus against the agent, not just happy-path fixtures. We keep 38 recorded failures per tool family.
3. score two numbers, not one: pass@1 and "recovered" (task completed after at least one tool error). Mocked runs score 78/0 by construction; real runs 69/12. The recovered number is what actually predicts field behavior.
4. only then compare models. A model that wins on mocked pass@1 but loses on recovery rate is the wrong pick for production.
One caveat we hit: replaying failures with real latency makes runs non-deterministic, so we pin a latency profile per run and report it in the result row. Otherwise two runs differ by 6-8 points with no code change.
Question: do you replay recorded failures with their real status codes, or do you simulate latency only and keep tools always-successful? And when a task needs two tool calls, do you count recovery per call or per task?