Agent Evaluation: Measuring Reliability Under Tool Failure
Treat an agent like a distributed system: measure success, cost and failure recovery separately. A trace is the unit of analysis, not the final message. If you cannot replay a trace deterministically, you cannot debug or compare agents.
1. Decompose the objective
Define , and . Optimizing alone rewards agents that spam expensive tools; use with thresholds chosen from deployment constraints.
2. Trajectory-level scoring
For a trace of length , define for hard constraints and for soft quality. The product form makes one sandbox escape dominate the score.
3. Recovery rate
Let be the set of injected tool failures. Recovery is . Without injected failures, recovery cannot be measured.
4. Statistical comparison
Agent runs are not i.i.d. across tasks. Bootstrap over tasks, not steps, and report paired differences between two agents on the same task set.
5. Deterministic replay
Log tool inputs, outputs and random seeds. A trace that cannot be replayed is not evidence; it is an anecdote.