All lessons in AI Engineering: From Foundation Models to Evaluated Applications
Build an Agent Trace Viewer
Reconstruct tool calls, retries, and durable effects from a streamed event log.
90 minutes · Members lesson · preview
What you will learn
- Reconstruct a complete agent attempt from events without treating narrative claims as execution evidence.
- Correlate retries, tool results, and durable effects with stable identifiers.
- Build a trace view that distinguishes running, uncertain, failed, and verified states.
You have a patch from the coding-agent exercise. Now investigate how the agent reached it. A final message saying that tests passed cannot tell you whether the relevant command ran, whether it finished, or whether another attempt changed the files afterward. Your next artifact is a small trace viewer for the same disposable repository task.
Budget 90 minutes: 15 to read and define the event contract, 50 to implement a reader and view, and 25 to inspect failure cases. A terminal table or a page in your existing development interface is sufficient. Use recorded synthetic events first; connect a coding tool only when you have access. Label a replay as a replay.