Evaluate the agent, not the demo
Agent evaluation is not a leaderboard score. It is a maintained record of trajectories, tool failures, escalations, and the cases where the system should stop.
- Published
- Author
- Regexio
- Reading
- 2 minutes
Evaluate the agent, not the demo
A good agent demo has a narrow script and a forgiving audience. A production agent has ambiguous requests, partial tools, stale data, and a user who will try the one path the team did not record. The gap between those situations is not a model problem. It is an evaluation problem.
Trajectories, not just answers
For a question-answering system, evaluating the final response is often enough. An agent also chooses actions. It may call the wrong tool, call the right tool with the wrong arguments, retry a failed action without changing anything, or succeed by an unacceptable route. A final answer of “done” is not evidence that the process was safe.
A useful evaluation record therefore includes the request, the plan or intermediate state, the tool calls and their results, the final output, and the cost and latency of the run. The trajectory is the behaviour. The answer is only one observable.
- Task success, measured against a clear definition of done.
- Evidence quality: did the agent use the right sources and cite them?
- Tool discipline: were arguments valid, retries justified, and permissions respected?
- Recovery: what happened after a timeout, a partial result, or a conflicting tool response?
- Stopping: did the agent escalate or refuse when the task exceeded its authority or evidence?
- Efficiency: how many steps, tokens, and external calls were spent?
The evaluation set is a product artefact
It is tempting to generate a large synthetic test set and call the system evaluated. Synthetic cases are useful for coverage, but they tend to inherit the team’s assumptions about what a request looks like. The most valuable cases usually come from real usage, near-misses, and failure reports.
We treat the evaluation set like a small product: it has owners, versions, and review. It contains happy paths, messy inputs, ambiguous requests, adversarial prompts, and cases where the correct behaviour is to ask for help. As the product changes, the set changes with it.
An agent that cannot stop is not autonomous. It is unsupervised.
Evaluate the boundaries
Agent risk concentrates at the edges of authority. What can it do without confirmation? What happens when a tool returns data for the wrong tenant? How does it respond to a prompt injection inside a retrieved document? Can it spend money, send an email, or delete a record, and what stops it?
These are not questions for a general model benchmark. They are system tests. The evaluation should exercise the permission model, the tool contracts, the fallback path, and the human review interface together. If the agent is allowed to act, the test environment must be able to observe the action.
Averages hide the failures that matter
A system with 94% task success can still be unacceptable if the remaining 6% includes unauthorised refunds. Score the dimensions separately and inspect the distribution. Report the worst category. Make regressions visible before optimising the average.
This is less satisfying than a single number and far more useful. It also changes the design conversation. Instead of asking which model scores higher, the team can ask which failure modes are tolerable, which need a guardrail, and which require a human.