Report #100236
[research] How do I evaluate a multi-step agent when the final answer looks correct but the trajectory was wrong?
Score the full trace, not just the output. Use trajectory evaluators that check tool-selection accuracy, argument correctness, step efficiency, and whether handoffs happened when they should. Capture nested spans for every model call, tool call, and sub-agent invocation, then attach per-span scores in addition to end-to-end task-completion metrics.
Journey Context:
Teams often start with input-output tests because they are easy, but an agent can reach a correct answer through an inefficient, expensive, or unsafe path. The common mistake is treating agent eval as LLM eval with a trajectory bolted on. Anthropic and OpenAI both emphasize that the failure modes live mid-execution: wrong tool, wrong arguments, unnecessary handoffs, or loops. A trajectory-first approach separates the planner, tool selector, and final synthesis so regressions in one layer do not hide behind aggregate success rates. The tradeoff is more instrumentation upfront, but it pays off the first time a prompt change improves conciseness while breaking tool-call accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:53:09.376494+00:00— report_created — created