All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Agent Evaluation, Safety, and Recovery

Evaluate final outcomes and execution traces under tool errors and adversarial inputs.

60 minutes · Members lesson · preview

What you will learn

  • Grade both final task outcomes and the execution boundaries visible in an agent trace.
  • Design controlled tool failures and adversarial fixtures with explicit expected behavior.
  • Compare recovery strategies without hiding failed attempts, duplicate effects, or uncertainty.

An assistant reports that it created a support ticket. The database contains the ticket, so a final-outcome test passes. The trace reveals that it created the ticket before the customer approved it. Another assistant correctly asks for approval but loses the action after a restart. Evaluating only the final sentence misses both kinds of engineering failure.

T17 gave you a resumable workflow design. This core knowledge lesson turns that design into an evaluation contract covering outcomes, action boundaries, and recovery. Required practice P08 runs the failure scenarios. Optional multi-agent and browser branches reuse the same discipline with additional execution surfaces.

All tasks and counts here are synthetic examples. A deterministic fixture suite establishes behavior under its injected conditions. It does not establish that a live model or external service has been tested unless you actually run and record that additional experiment.

Choose another lesson