Debugging agent runs
For engineers
Reading transcripts and traces, finding the first wrong step, fixing the right layer and turning failures into regression cases
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?
Check yourself · 2 of 5
In a trace of an agent run, what is a span?
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?
Check yourself · 4 of 5
Why replay a failed agent run with recorded tool results?
Check yourself · 5 of 5
What does a good regression eval case for a fixed agent failure contain?
Topics
- 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
- 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
- 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
- Reproducing non-deterministic agent failures4 min read · Recording tool results, replaying runs, and rerunning a failing case enough times to trust a fix
- 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
- OpenTelemetry semantic conventions for generative AI (opens in a new tab)StandardFree
The standard names for model-call and tool-call spans and their attributes, so traces look the same across tools.
- Langfuse observability overview (opens in a new tab)ToolFree
Shows how traces, nested observations and sessions map onto an agent run, in an open-source tool.
- Tracing (OpenAI Agents SDK docs) (opens in a new tab)DocsFree
Lists the span types an agent framework records: agent, generation, function, handoff and guardrail.
Helps to know first
110 questions · last verified 2026-12