Trace and replay

A recording of every step, so you can see exactly why the AI did what it did.

What it is
Each step's input, observation, model output, action, tokens, cost and timing is stored as a span. A replay shows the run step by step, with screenshots or source passages where they exist.
When to use it
  • Always: debugging, audits, evals and customer questions all need it
When to skip it
  • Keeping screenshots or personal data forever: set retention rules
Why (the trade-off)
Agents fail in new ways. Without a trace, every failure is a mystery and every fix is a guess.
Where it sits
Ops layer, alongside the loop or pipeline. Every component writes to it.
What it needs first
What can be added to it
Effect of adding it
  • cost —
  • latency —
  • reliability ↑
  • safety ↑
Free and open-source implementations

depth 4+1 production note with numbers.