Start with the trace
Given a bad session_id, pull the trace. See which phase broke.
Advertisement
Correlate to logs
Same trace_id in logs. Pull structured log lines. See exact prompts, tool calls, errors.
Advertisement
Replay locally
Fetch the exact prompt. Rerun against the same model. Reproduce.