How it works
A trajectory is every step of the run: the tool calls, the results, and the decisions, not the last message alone. Grade the outcome on its own line, and grade the path on its own line. For a room board, the outcome is whether the right room is booked. The path is whether the clash was checked before the book call. An agent can book a free room without checking, get lucky, and send a cheerful confirmation. The outcome passes. The path fails. Collapsing those into one mark hides the skipped check.
Do not insist on one blessed sequence when several paths are valid. If two tools can both check a clash, a case that demands a particular function name will fail a good route. Write path checks as obligations, such as "a clash check happens before a book call", not as a script of exact sentences. Grade the outcome from the world, the diary after the run, rather than from the agent's claim that it booked the room. The claim and the diary disagree more often than a last-message grade will show.
A worked example
Booking a meeting room, path and outcome
The person asks for Room 4 at three on Tuesday. A correct path searches rooms, checks the clash, then books. In this run the agent calls the book tool immediately, the room happens to be free, and the reply says "Room 4 is booked at three". The diary agrees, so the outcome passes. The path fails, because no clash check appears before the book call. The two marks are stored separately. A second run books Room 4, the reply says it is booked, and the diary shows the old meeting still there. The outcome fails even though the last message sounded complete. A third run checks the clash with a different tool than the one the author expected, finds the clash, and offers Room 6. That path meets the obligation. It is not failed for using the other tool.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Only the last message is graded, the book call skipped the clash check, and a lucky free room is recorded as a fully successful run.
- The case demands one function name, a second tool that also checks clashes is marked wrong, and a good path is punished for not being the familiar one.
- The outcome is taken from the agent's own "booked" sentence, the diary still holds the old meeting, and the grade says success while the room is double-booked.
How to measure it
Store a path mark and an outcome mark on every run, and do not average them. A pass on the outcome with a fail on the path is a skipped obligation, not a success.
Count how often the outcome is taken from the diary rather than from the reply. Grades taken from the reply will follow a confident last sentence, including the ones that are wrong on that same run.
Further reading
How Abracadabra helps
A finished trace is not a finished job. Read the path of tool calls on sessions that stopped, and grade a skipped step even when the last message sounded complete.
Abracadabra does not run the eval or the simulation. Search by meaning, and by tool event, for the sessions that stopped, and use that wording when you write the case. After a change, compare task success for that task and cohort with the previous period.
Request access to read this on your own agent.