Skip to content
mentoor

Debugging agent runs

For engineers

Reading transcripts and traces, finding the first wrong step, fixing the right layer and turning failures into regression cases

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

An agent's final step fails with a validation error. Where should you start reading the transcript?

Choose one answer

Check yourself · 2 of 5

In a trace of an agent run, what is a span?

Choose one answer

Check yourself · 3 of 5

A search tool returns an empty result with no message, and the agent invents an answer. Which layer holds the cause?

Choose one answer

Check yourself · 4 of 5

Why replay a failed agent run with recorded tool results?

Choose one answer

Check yourself · 5 of 5

What does a good regression eval case for a fixed agent failure contain?

Choose one answer

Topics

  1. Reading agent transcripts step by step4 min read · Following reasoning, tool calls and results to find the first wrong step, not the last visible error
  2. Tracing agent runs with spans4 min read · Spans for model calls, tool calls and handoffs, OpenTelemetry GenAI conventions, and tools such as Langfuse and LangSmith
  3. Fixing the right layer of an agent4 min read · Classifying a failure as prompt, tool, model, context or orchestration, and fixing the cause rather than the symptom
  4. Reproducing non-deterministic agent failures4 min read · Recording tool results, replaying runs, and rerunning a failing case enough times to trust a fix
  5. Turning agent failures into regression cases4 min read · Saving a fixed failure as an eval case with input, expected behaviour and a grader so it cannot return unnoticed

Start here

110 questions · last verified 2026-12