Stage 4 · Assumes you can code · Evals & Quality

Evaluating Agents & Trajectories

Right final answers can hide wrong steps — score the path, not just the destination.

An agent is a sequence of thoughts, tool calls, and observations — a trajectory — that ends in a final answer or action. Scoring only the final string misses the failures that matter in production: skipped lookups, extra destructive calls, loops, and lucky guesses that will rot when the world changes.

Outcome evals ask: is the final answer or side-effect correct? Process / trajectory evals ask: did the agent get there in an acceptable way? You usually need both.

Same Answer, Different Trajectories
"What is Acme's current support email?"
  1. Think: this may have changed — look it up.
  2. Tool: search_kb("Acme support email")
  3. Result: support@acme.com (updated last week)
  4. Final answer: support@acme.com
Outcome: Correct
Process: Pass
Right answer *and* the agent used the source of truth. If the email changes next month, this path still works.

Same support email, two paths — only one would survive a directory change.

All lessons in Stage 4: Builders (optional)