Blog

A failing AI agent is rarely the model's fault alone

Studies show AI-agent errors arise from model, harness, task and their interaction. Learn how to localise faults with cross-comparisons and traceable evidence.

· By

Two identical side-by-side paper log trails on a desk that diverge halfway down, with tool sheets and handwritten margin notes beside them.
The same task run through different configurations yields different execution traces, so the final outcome alone does not localise where a fault arose.Image: IamVera.ai — original editorial illustration

An AI agent's error is rarely attributable to the language model alone, because recent studies show that model, harness, task environment and their interaction together determine the outcome. Localise faults with controlled model-harness comparisons and traceable execution evidence, not with the final outcome or a changed prompt alone.

This fault attribution is central to the study When Agents Fail: Model or Harness—Who's to Blame?, in which the authors evaluated over 52,000 agent trajectories across six benchmarks, four models and multiple so-called harnesses: the software around a model that assembles prompts, parses answers, calls tools, feeds back results and retries on errors. The study reports that harness rankings change by model and benchmark, and that the same final task score can hide different execution profiles. Our analysis is that the final outcome alone therefore does not establish where an error originated.

Why can't you simply attribute an agent error to the model?

Because an AI agent is not a model alone, but a composite system of model plus harness. A study of 255 bug reports from Codex, Gemini-CLI, LangChain and CrewAI describes agent-reactive bugs: visible failures that arise from the combination of specific model behaviour and the way the harness parses, executes, repeats or recovers from that behaviour.

The authors of the study on the model-harness boundary note that users often propose harness-focused fixes, while developers sometimes attribute the same error to the model. That difference in diagnosis is precisely the problem of fault attribution: both parties look at the same symptom and draw an opposing conclusion.

Which four layers together determine whether an AI agent fails?

An agent error arises at the intersection of four layers. Anyone who wants to localise a fault must be able to examine all four separately, because a problem in one layer often looks like a problem in another in the logs.

  • Model behaviour: what the language model generates for a given input, including fluent but substantively wrong answers.
  • Harness logic: how the surrounding software interprets the model answer, calls tools, performs retries and catches errors.
  • Task and environment state: the concrete state in which the agent operates, such as files, external systems, tool definitions and time limits.
  • The interaction: the behaviour that only arises when these layers influence each other, and that cannot be localised in a single layer.

In our analysis, a fluent wrong answer, a crash and a failed tool action are three different malfunctions that should be investigated through different evidence trails. This is the point at which organisations easily draw the wrong conclusion: they treat all three as 'the model did something odd', whereas a crash and a failed tool action usually require different evidence in the harness or the environment.

How do you establish where an agent error really originates?

By running the same task in a controlled way with multiple models and harnesses and recording the full execution trace. The benchmark Trial by Trace separately assesses the task outcome and the reliability of the harness. Across 95 tasks, four harnesses and nine model groups, the benchmark reports that 31.1% of runs achieved task success while at least one harness criterion failed. The authors warn explicitly that an activated failure mechanism is not yet proof of causal propagation without additional evidence. In our analysis, the fact that an error occurred therefore does not by itself show that it caused the outcome.

Our analysis is that a causal claim should be made only when logs, artefacts and external state together support a concrete error chain. Therefore record per run: model and harness versions, the prompt, the context, the tool definitions, the tool results, the retries, the time limits and the environment state. And separate valid execution (did the harness do what it was supposed to do) from task correctness (is the outcome right).

A prompt change is a pitfall here. The study Which Failure Does an Intervention Repair? reports across nearly 0.9 million trajectories that interventions such as feedback, skills, harnesses and extra budget work in a context-dependent and interactive way: feedback mainly repairs errors that leave a visible, usable signal, and self-developed skills can actually degrade when transferred to another model. A changed prompt can make the symptom disappear without removing the cause. That is not a solution, but a displaced problem.

What does this mean for directors, lawyers and CISOs?

Our analysis is that, because the final outcome alone does not demonstrate where an agent error arises, an organisation that routinely attributes incidents to 'the model' risks approaching the wrong supplier or taking the wrong measure. Our recommendation is that the person responsible for AI systems should require every agent incident to be reconstructable from the full execution trace. Because the same task score can hide different execution profiles, our assessment is that a CISO who steers only on success rates may overlook an unreliable harness. Our recommendation is that acceptance testing include a cross-comparison of at least two models against at least two harnesses, with valid execution measured separately alongside correctness. Our analysis is that, because a triggered failure mechanism is not yet proof of causation, a liability claim framed only as 'the AI got it wrong' may lack the technical evidence needed for attribution unless an additional error chain is documented. This is a practical evidentiary observation, not a statement of the applicable legal standard. Because a prompt change can mask a symptom without touching the cause, 'we have adjusted the prompt' is in our assessment not a completed incident handling.

In practice this comes down to a fixed sequence for every agent incident. See also our AI auditing methods that leave an evidence trail and the broader background on agentic AI and AI agents.

  1. Re-run the task in a controlled way with multiple models and harnesses.
  2. Record per run all versions, prompts, context, tool definitions, tool results, retries, time limits and environment state.
  3. Assess valid execution and task correctness as two separate outcomes.
  4. Only make a causal claim when logs, artefacts and external state together demonstrate a concrete error chain.

That aligns with a broader insight: one AI score says too little, as is also clear from why one AI score says too little about reliability, and many errors arise precisely where the model touches systems, as with what goes wrong at an AI copilot's tool boundary. The model is part of the problem, rarely the whole problem.

Sources and references

  1. When Agents Fail: Model or Harness—Who's to Blame?arXiv · 2026-10-23
  2. Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue ReportsarXiv · 2026-07-17
  3. Trial by Trace: Benchmarking AI Agent Harnesses for Reliability and Failure AttributionarXiv · 2026-10-14
  4. Which Failure Does an Intervention Repair? When Agent Interventions Help, and Where Self-Evolving Skills StallarXiv · 2026-11-22

Sources: The article draws on four arXiv studies: When Agents Fail, the empirical study of the model-harness boundary, Trial by Trace and Which Failure Does an Intervention Repair?

← All articles in this topic ← All articles