What Are Root-Cause Summaries?
A root-cause summary is an AI-generated narrative that answers three questions about a failed trace:- What failed? Which span, in which agent, produced the first error.
- Why did it fail? What the error message, retry pattern, and surrounding context reveal about the underlying cause.
- What is the likely fix? A concrete, actionable suggestion drawn from the span data.
Root-cause summaries are generated automatically for every trace that contains at least one span with
"status": "fail". You do not need to configure anything.Example Summary
Here is a real-world example of a root-cause summary generated from a four-agent pipeline where the reviewer repeatedly failed to parse the coder’s output:Reviewer failed to parse Coder’s output as JSON on all 3 retries. The Coder’s tool schema expectsNotice that the summary names the specific field mismatch (diff: string, but it returneddiff: object. The Reviewer’s parsing logic calledJSON.parseon thedifffield directly, which threw aTypeError: string requiredon every attempt. Suggested fix: update the Coder’s tool response to serializediffto a JSON string before returning, or update the Reviewer’s schema to acceptdiff: object.
diff: string vs. diff: object), identifies the failure pattern (3 consecutive retries, all failing for the same reason), and offers a concrete resolution path — all without requiring you to open a single span manually.
How Summaries Are Generated
Veritrix analyses the following signals from the trace to construct each summary:1
Locate the root failure span
Veritrix identifies the earliest span with
"status": "fail" and distinguishes it from spans that failed as a downstream consequence of that root failure.2
Extract error context
The
error field on the failing span, along with the span’s input_tokens, output_tokens, and payload, are pulled into the analysis context.3
Analyse retry patterns
If the failing span is preceded or followed by one or more
llm.retry spans, Veritrix includes the retry count and whether any retry succeeded or all failed identically.4
Incorporate handoff context
If the failure occurred in an agent that received a handoff, Veritrix includes the handoff payload to check whether malformed data was passed from the upstream agent.
5
Generate the summary
All extracted signals are passed to Veritrix’s analysis model, which produces a structured summary: what failed, why it failed, and a suggested fix. The summary is stored alongside the trace and rendered in the dashboard immediately.
Who Are Root-Cause Summaries For?
Root-cause summaries are designed to be useful to different audiences without requiring any customisation:Shareable Trace Permalinks
Every trace — and its root-cause summary — has a permanent, shareable link. You can copy the permalink from the Copy link button in the trace header and share it with anyone who has access to your Veritrix workspace. Permalinks are useful for:- Incident postmortems — link directly to the failing trace rather than pasting screenshots.
- Bug reports — attach a trace link to a GitHub issue so the assignee has full context.
- Compliance reviews — provide auditors with a read-only view of the trace and its summary.
Agents & Handoffs
Learn how Veritrix identifies which agent in the chain caused a failure.
Traces & Spans
Understand the span fields and error payloads that root-cause summaries are built from.