Est.

Why Root Cause Attribution Demands a Harness Topology Map Not Just a Failure Signal

Mapping the harness shows which layer to repair, not just that something failed.

· 9 min read
Cover illustration for “Why Root Cause Attribution Demands a Harness Topology Map Not Just a Failure Signal”
Root-Cause Attribution · November 21, 2026 · 9 min read · 1,966 words

AI agent failure attribution by harness layer requires a trace-first diagnosis grounded in a harness topology map. A failure signal establishes that something went wrong, while the map identifies component interactions, their owners, and the possible repair locations. Attribution then follows the causal chain to the earliest failure from which execution did not recover, distinguishing a model error from a harness, environment, or grader fault.

Why a failure signal alone cannot direct a repair

A team sees a bad output, checks the model, changes a prompt, redeploys, and watches the same failure recur. The team changed the agent’s instructions without first checking whether they caused the failure. The symptom provided no reliable repair location. A wrong final output or an unfinished task may call for model post-training, harness engineering, environment redesign, or evaluation repair, depending on where the execution first went wrong.

Scale AI’s RCA paper frames this gap directly. Outcome-level signals indicate that an execution failed but offer minimal insight into the mechanism or the appropriate intervention. The originating event may sit several tool calls before the visible symptom, separated from it by retries, intermediate outputs, and changing environment state. An investigator who stops at the most visible deviation can therefore assign responsibility to a component that merely received the consequences of an earlier fault.

That mistake changes the engineering work assigned. Model post-training cannot repair a harness bug, just as a harness change is not automatically the right response to a model error. The unresolved question is not whether the output was bad, but which interaction made it bad.

What a harness topology map actually is and what it makes visible

A harness topology map is a structured model of which components interact, what each edge does, and which layer owns each behavior. It includes ownership of the edges themselves, so a diagnosis can identify who controls the proposed repair. This is more than a component inventory. Directionality distinguishes a model passing a malformed argument to a tool interface from an interface exposing an incorrect schema to the model.

HarnessFix defines the ETCLOVG decomposition as Execution, Tooling, Context, Lifecycle, Observability, Verification, and Governance. Its layer table provides a reference structure for locating harness behavior. Execution supplies safe, isolated environments, while Tool Interface governs tool discovery, descriptions, selection, invocation, schemas, and error feedback. Context and Memory determines what the model sees at each step. Lifecycle and Orchestration controls the think-act-observe loop, retries, task state, coordination, and termination.

The remaining layers make behavior inspectable and constrained. Observability records the evidence needed for diagnosis, including traces, tool calls, errors, and cost information. Verification and Evaluation connects tasks to feedback, while Governance and Security defines permissions, identities, policies, approvals, and audit trails. These responsibilities give a failure a narrower address than “agent error.”

The RCA paper’s interaction-centric taxonomy adds a fault side to that address, assigning responsibility to the model, harness, environment, or grader. That distinction separates failures a more capable model could avoid from failures that require changes outside the model.

Why attribution collapses into guesswork without topology

Long executions distribute evidence across actions, tool calls, retries, environment states, and intermediate outputs. Without a map of those relationships, an investigator can mistake an accessible explanation for a causal one. An early guess becomes an anchor. Later evidence is then read through that guess rather than used to test whether another component originated the failure.

The RCA paper calls this kind of failure premature commitment. A one-shot LLM judge settles on a plausible root cause after reading only part of a trace, leaving critical evidence unexamined. The resulting diagnosis may explain the last visible symptom while missing the event that made it unavoidable. Topology-blindness therefore produces a specific chain of errors, from anchoring to misattribution to repair at the wrong location.

The paper’s property-listings example makes the distinction concrete. An automated judge blames the model for not checking for a reply, although the actual root cause is a missing environment-delivered email reply. No model could have substituted for that missing event, so the repair belongs to the environment.

The forensic burden grows with the execution history. The paper’s account of the Hugging Face security incident describes reconstruction across two environments and a vast corpus of agent messages and files, with later passes uncovering evidence earlier readings missed. Manual rereading becomes operationally impractical at scale. A topology map supplies a structured search space, rather than leaving investigators to repeatedly scan an undifferentiated log.

The specific harness failure classes topology makes distinguishable

Tool Interface, the T layer, separates schema drift from bad model instructions. In the schema-drift example, a downstream service renames attendee_emails to invitees, but the harness tool schema does not change. The tool-call success rate in production drops 8%, but evaluation against a frozen snapshot misses the mismatch. The repair belongs to the tool interface. A prompt change would not correct the stale contract that the harness presents.

Context and Memory, the C layer, exposes a different source of apparent reasoning failure. A harness can flood the next context window with irrelevant output from a prior tool call, shaping the model’s next action through its selection and fidelity decisions. A page-replacement decision in context assembly is at fault here, even if the model can reason over suitable input. The repair must change what goes into the context window.

Lifecycle and Orchestration, the L layer, distinguishes control-flow faults from instruction faults. An orchestrator may retry the same failing step without a state-machine limit, or compound latency by making sequential tool calls that could run in parallel. The warranted changes are a termination condition or a parallelism policy. Both changes can be made without turning to the prompt first.

Observability, the O layer, reveals a diagnostic gap in silent “fail-plausible” failures. An agent can produce confident, well-formed but substantively wrong output while detectors remain green until a customer reports it. Missing decision-to-provenance links implicate the O layer because the instrumentation failed to expose the divergence. That establishes a visibility failure while leaving the cause of the wrong answer unresolved. The distinction prevents a repair to detection from being mistaken for a repair to the underlying behavior.

What telemetry must contain to support localization, not just detection

TelemetrySuffBench demonstrates that successful detection does not imply useful localization. Its metadata, OpenTelemetry-compatible, and other framework-compatible telemetry views keep failure detection F1 near-perfect, but origin-step accuracy reaches only 0.5%. Terminal status can establish that an execution failed. It cannot, by itself, identify the earlier decision or state transition responsible for that outcome.

The benchmark shows that two kinds of evidence are needed, decision content and provenance links. Decision content records what the model chose and why, while provenance shows which earlier step created the state that shaped that choice. When decision content is removed, origin-step accuracy falls to zero for every model tested. Removing provenance links causes large additional losses, showing why a sequence of recorded events is insufficient without their causal connections.

The instrumentation requirement follows from that distinction. Structured records must capture model invocations, tool calls, memory reads and writes, and decision branches, with explicit links to downstream effects. At layer boundaries, this means connecting model and tool, model and context, orchestrator and tool, and tool and environment. Status and latency still show what happened and how long it took.

Missing evidence also changes what a diagnosis can responsibly claim. An attribution system lacking decision content or provenance must either guess or abstain. The benchmark finds that some frontier models answer every ambiguous case rather than abstaining, producing confident misattributions. An apparently decisive diagnosis is therefore not a substitute for the fields needed to support it.

How topology-aware attribution changes the structure of the diagnosis process

A topology-aware workflow begins with a failed trace and searches for the earliest failure from which execution did not recover. It does not simply select the earliest unusual event, because an execution may recover from a deviation. The causal links between steps show which event still accounts for the failed outcome.

HarnessFix makes that search concrete through HTIR, its Harness-aware Trace Intermediate Representation. It compiles raw traces into step-level evidence structures aligned with the harness artifacts that shaped runtime behavior. The diagnosis can then connect an observed action to a tool schema, context decision, or orchestration rule instead of inferring the entire relationship from the final output. A candidate explanation receives an implicated harness layer.

The RCA paper formalizes repeated testing of such explanations as Continual Search. Successive passes challenge the standing diagnosis and seek unresolved evidence. Within the same model family, this search strategy can allow lower-tier models to surpass higher-tier counterparts.

For a stream of production failures, the workflow extends beyond individual attribution. HarnessFix indexes records by implicated layer and merges candidates whose explanations point to the same recurring harness flaw. The resulting consolidated flaw record supports a repair to the shared cause of recurring symptoms.

Why outcome-driven improvement without topology attribution produces broad, indirect fixes

Skipping layer attribution returns a team to the opening predicament. A final score indicates whether an attempt improved the outcome, but not which part of the system needed repair. HarnessFix contrasts trace-grounded diagnosis with methods that optimize prompts, workflows, or harness logic from success rates and efficiency metrics alone. Without locating the responsible evidence, those methods produce changes that can be broad, indirect, or poorly scoped.

Runtime supervision and adaptive correction can work around an issue during execution while leaving the harness flaw in place. Temporary success is not evidence of structural repair. If the mechanism remains, slightly different conditions can expose it again. This distinction explains why fewer visible errors need not mean that the responsible layer has been corrected.

Outcome-driven iteration also creates a confounding problem. When prompt phrasing, tool descriptions, and reasoning budget interact, changing more than one variable makes the resulting score hard to interpret. An improvement cannot be assigned to either change, while a regression provides no clear diagnosis. The team has changed the system without gaining a reliable explanation of its behavior.

Topology attribution makes repair scope legible before that intervention. It connects the proposed change to a particular causal mechanism and owner, giving review and validation a defined target. Without that connection, a broad patch may suppress the symptom while leaving uncertainty about both the original defect and the consequences of the change. The diagnostic process is what breaks this cycle.

What a topology-aware diagnosis process requires in practice

Engineering teams need a harness model that names the components, directional edges, what each layer is responsible for, and who owns it. ETCLOVG provides a reusable starting structure, but the map must reflect the team’s actual architecture before attribution begins. The model must identify who controls the relevant behavior so a diagnosis can direct an intervention.

That model requires telemetry with decision content and provenance at each layer boundary. Standard OpenTelemetry-compatible or other framework-compatible views need augmentation for localization, as the benchmark demonstrates. The records must connect a decision to the earlier state that shaped it and to its downstream effects. When those connections are missing, the diagnosis must say what evidence it lacks and leave the layer assignment uncertain.

The diagnosis process must also test its current explanation over several passes. Continual Search supplies the relevant principle, while layer-indexed flaw records make recurring explanations available for consolidation. Incidents should be merged only when they share a root cause, even if their outputs look alike.

Once attribution identifies a harness flaw, the repair should be scoped to that layer and validated against historical traces before shipping. Regression-aware validation gives the proposed intervention a test beyond improvement on the triggering incident. The map, causal telemetry, diagnosis records, and validation history together form an engineering discipline that can be built, maintained, and improved, rather than a debugging exercise repeated from scratch after every failure.

Sources

  1. Root-Cause Attribution Is a Search Problem: Continual Search for Long-Horizon Agent Failures
  2. From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flaws
  3. TelemetrySuffBench: Is Agent Telemetry Sufficient for Failure-Origin Diagnosis?
  4. From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flaws

More in Root-Cause Attribution