Est.

Failure Signature Matching as the Accountability Layer for Side-by-Side Agent Version Comparison

Replaying production traces shows whether a fix repaired the cause or hid the symptom.

· 8 min read
Cover illustration for “Failure Signature Matching as the Accountability Layer for Side-by-Side Agent Version Comparison”
Root-Cause Attribution · November 23, 2026 · 8 min read · 1,890 words

Before deploying agent changes, replay historical production traces against the candidate version and compare the failure patterns that recur at the harness layer that caused them. Failure signature matching makes side-by-side agent version comparison accountable by distinguishing a repaired cause from a suppressed symptom. Outcome scores remain useful, but replay on every deploy supplies the evidence that a prompt edit, tool change, or workflow repair holds under the conditions that previously broke it.

Why outcome scores alone cannot tell you whether a version fix worked

A final outcome score aggregates the effects of the prompt, tools, workflow, memory, and model. It does not assign credit among them. A higher score may reflect a workaround in one layer while a defect survives in another, and a flat score may conceal a new failure mode that sampling has not caught. The comparison establishes that performance changed.

Shamiullah’s REALM 2026 paper says that per-trace LLM-judge inference or human review costs too much to use on every trace, so production systems sample only a fraction of them. Most traces therefore never receive that form of attribution. This leaves version comparisons dependent on sampled outcomes rather than the population of failures and their causes. Users experience outcomes, but that does not make causes interchangeable. An improvement that depends on suppressing a symptom can disappear when input conditions shift.

What failure signatures are and what they reveal that scores cannot

Failure signatures are recurring behavioral patterns in production traces that indicate a failing run before, or independently of, an outcome label. They describe what a broken agent does. The REALM paper identifies disproportionate effort relative to outcome as a detectable signal in standard observability telemetry. It formalizes four signatures, namely Compensatory Effort, Output Inflation, Unfocused Orchestration, and Correlation Decoupling. Compensatory Effort was the most common signature in all five domains tested.

The same paper finds that a simple threshold check over these signals catches a majority of failures without a judge or model call. That makes detection possible using telemetry teams already collect, rather than requiring another evaluation for each run. Recurrence gives the pattern its diagnostic value. When the same behavior appears across different inputs, it provides evidence of a structural defect. It also gives version comparison something stable to track beyond whether individual answers passed.

Why attribution to a specific harness layer is what makes a signature actionable

A detectable pattern is not yet a repair target. The harness consists of the components around the model, including prompts, tool definitions, control flow, memory and retrieval systems, and context management logic. These are editable, versioned assets. Assigning a signature to one of these layers connects observed behavior to the part of the system that may need changing.

For example, a Compensatory Effort spike in tool calls points toward a different cause from the same spike in orchestration. The excess effort alone cannot show which of these causes is at work. A version comparison must therefore link the pattern to the component that caused it before it can show whether the intended fix worked. Without that link, the team cannot explain why an improvement should hold when the inputs change.

The three harness failure categories that version diffs most commonly misread

Tool schema drift can produce corrupted outputs without an exception, allowing bad state to accumulate in memory across requests. The later symptom of corrupted tool outputs can look like a memory defect. In a version comparison, treating that downstream symptom as the cause directs the patch toward memory and leaves the tool schema unchanged. The relevant signature is the recurring relationship between corrupted tool outputs and later state failures.

Prompt ambiguity produces a different comparison trap. A rewrite can improve the cases that led to it while breaking cases that passed before, and the aggregate score can stay the same or rise. Here the signature is a shift in which input classes produce Compensatory Effort or Unfocused Orchestration spikes. The distribution changes beneath the headline result. A model upgrade does not target the defect when the prompt itself is responsible.

Workflow loops are failures of sequence and state. An agent may re-enter planning after a tool failure, consuming more tokens without converging on a result. The REALM paper reports up to 159% more compensatory effort on a domain’s primary signal among failing agents, and its Compensatory Effort and Unfocused Orchestration signatures reflect this pattern. A candidate version may suppress the loop on tested paths while retaining the condition that creates it elsewhere. Matching the trace pattern across paths exposes what the score leaves unresolved.

How multi-agent handoffs create a fourth attribution problem in requirement integrity across layers

Multi-agent systems add a boundary between the origin of a defect and the agent where it becomes visible. A receiving agent can violate a requirement that was already lost or corrupted during handoff. The final decision identifies the symptom. Attribution must follow the requirement across the boundary beyond the receiving agent’s trace.

Chen et al.’s study of requirement integrity distinguishes loss from tampering. Loss occurs when an orchestrator summarizes away a requirement, a context-compressing relay weakens it, or a merger fails to reconcile it with a branch proposal. Tampering changes a requirement on purpose as it passes through an intermediate agent or through tool output injection. The remedies are different. Loss calls for explicit, checkable requirements, while tampering calls for integrity protection.

A reduction in handoff failures must therefore be credited to the mechanism that produced it. A prompt change, a handoff payload schema change, and an integrity check in the verifier are different repairs, even if they improve the same outcome measure. Chen et al. also show that a deterministic verifier catches a substantially larger share of violating decisions than an LLM checker on the same trajectories. That control is inspectable harness code. Its behavior can be reviewed and replayed rather than inferred solely from a better final score.

What automated failure attribution frameworks establish about the difficulty of the matching problem

AgenTracer, introduced at ICLR 2026, reports that state-of-the-art reasoning LLMs generally achieve below 10% accuracy on failure attribution in complex agentic systems. AgenTracer’s trace-grounded approach to attribution, trained with multi-granular reinforcement learning on TracerTraj, outperforms much larger proprietary models on the Who&When benchmark.

The task is hard because it involves searching through a large body of evidence, testing explanations that seem likely, and ruling them out when new evidence contradicts them. A plausible failure location can become a premature conclusion. The Detection-Aware Attribution Framework, or DAAF, finds a further complication: non-zero replacement effects rise sharply when assets are edited together compared with when each is edited on its own. A single-asset diagnosis can therefore miss an interaction. Version comparison needs the composed asset state.

Zhang and Chang’s scoping review identifies the broader gap. Taken together, these findings make signature matching an engineering problem that requires evidence and controlled intervention.

Failure signature matching as the mechanism that closes the version-diff accountability loop

Failure signature matching compares whether a known, recurring, layer-attributed trace pattern is present, absent, transformed, or relocated after a version change. It requires a named pattern observed across multiple traces, an attribution to a harness component, and a before-and-after comparison of that pattern. Frequency alone is not enough. A signature that appears less often may still come from the same defect, while one that seems to be gone may have moved to another layer.

Consider two changes that cut the excess effort around tool calls. One corrects the tool schema, while the other makes the prompt more tolerant of corrupted tool outputs. Both can improve the outcome score. Only the schema repair addresses the stated cause, so the comparison must retain evidence of the affected asset and the resulting trace behavior. Otherwise, it cannot distinguish repair from accommodation.

DAAF makes this distinction concrete by targeting editable system assets rather than execution locations and learning replacement effects through controlled replays. Chen et al.’s deterministic verifier provides another instance of the same principle. Its checks can be versioned, reviewed, and rerun against historical trajectories. The accountability record then connects a specific intervention to observed behavior, rather than treating a score increase as sufficient evidence of causation.

How to test agent changes against production traces before deploying

Replay validation tests whether a fix based on attribution removes the matched signature without causing new failures. It starts from the conditions that actually produced the defect. Tool-call logs, sub-agent decisions, and intermediate state provide the record of past runs needed to test the candidate version. For prompt edits and other harness changes, that record is a stronger basis than new synthetic inputs that may omit the original failure conditions.

The practical workflow begins with capturing production traces and curating the ones that exhibit the matched signature. The candidate version is then replayed against those historical contexts, and the comparison evaluates both outcomes and signature behavior. The gate is explicit. Promotion depends on evidence that the targeted pattern has been eliminated without regression, rather than a better average score on unrelated cases. The same test applies when checking for regressions against actual historical conversations.

Replay on failure and replay on deploy serve different purposes. AgenTracer uses counterfactual replay as its annotation mechanism, showing how replay also supports attribution to a specific agent or step. In a release workflow, that evidence must be generated for the candidate fix before another incident occurs.

Cost-aware triage keeps this approach focused. Deterministic telemetry checks provide the first filter without judge inference, deeper LLM analysis is reserved for traces that pass that filter, and full counterfactual replay is applied to candidate fixes before shipping. Not every production trace needs the most expensive treatment. The important distinction is that every deploy faces the replay gate, even when no new failure report has prompted an investigation.

Diagram: Cost-Aware Triage: Three-Tier Filtering Before Deploy. Visualizes: Show a three-stage funnel or stepped flow representing the cost-aware triage pipeline described in the article.

Operationalizing failure signature matching as a repeatable engineering discipline, not a one-off audit

Operations begin with a signature registry. It keeps the name, telemetry indicators, and attributed harness layer for each known pattern so that teams have the same reference each time they compare versions. Continuous trace-driven detection then finds new instances of those patterns in production. The threshold-check approach in the REALM paper supplies a low-cost first pass, so detection need not wait for sampled outcome review.

Detection must proceed from an execution location to asset-level attribution. The part to repair is a specific prompt instruction, tool schema, routing rule, or memory policy. That distinction keeps the workflow attached to something editable. When assets interact, the record must preserve their composed state so that replay evaluates the proposed change in the configuration where it will operate.

The practice ends with a replay gate each time a version is promoted. The resulting version diff records which signature appeared in version N, which harness asset was attributed as its cause, what changed in version N+1, and what replay validation established. This is an auditable engineering record. It also preserves the evidence needed to revisit the diagnosis if the signature returns under different conditions, rather than forcing the next investigation to begin from an unexplained score delta.

Existing trace infrastructure makes this discipline achievable. Prompts, tools, workflows, memory, and evaluations are versioned, editable, and replayable, which gives harness engineering the properties needed for repeatable testing. The release decision can therefore rest on a precise claim about a named defect and a tested intervention.

Sources

  1. Failing Agents Leave Traces: Telemetry Signatures for Multi-Tier Agent Evaluation - ACL Anthology
  2. AGENTRACER: WHO IS INDUCING FAILURE IN THE LLM ...
  3. Signed but Not Safe: Requirement Integrity in Multi-Agent LLM Handoffs
  4. DAAF: From Failure Localization to Editable System Assets in LLM Agents
  5. Component Replacement in LLM Agents: A Critical Scoping Review of Task Benefit and Attribution
  6. Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures
  7. Root-Cause Attribution Is a Search Problem: Continual Search for Long-Horizon Agent Failures

More in Root-Cause Attribution