A failing AI agent is rarely the model's fault
Studies show AI-agent errors arise from model, harness, task and their interaction. Learn how to localise faults with cross-comparisons and traceable evidence.
You must be able to reconstruct every agent incident from a complete execution trace, because the final outcome alone does not reveal where the fault originated. Attribute errors to the model, harness, task or their interaction only when logs, artefacts and environmental state together support a concrete causal chain.
The prompt is an analysis of 24 November 2026 of fault attribution in composite AI-agent systems, which argues that agent errors arise from the combination of model, harness, task environment and their interaction rather than from the model alone. The analysis draws on empirical studies of over 52,000 agent trajectories across multiple benchmarks and models, and on bug reports from production systems including Codex, Gemini-CLI, LangChain and CrewAI. In our assessment, this means that organisations routinely misdiagnose agent failures by treating the final outcome as sufficient evidence, when the same task score can hide different execution profiles and different failure modes.
Why does the final outcome alone not establish where an error occurred?
An AI agent is not a model in isolation. It is a composite system comprising the model itself, the harness (the software that assembles prompts, parses answers, calls tools, feeds back results and retries on errors), the task environment and the interaction between all three. When an agent fails, the symptom—a fluent wrong answer, a crash or a failed tool action—can originate in any of these layers or in their combination. A crash and a failed tool action, for instance, require investigation through different evidence trails, yet both are often attributed to "the model did something odd". Empirical work on agent-reactive bugs shows that visible failures frequently arise from the way the harness parses, executes, repeats or recovers from specific model behaviour, not from the model's capability alone. Because harness rankings change by model and benchmark, the same final task score can conceal different execution profiles across different configurations.
What are the failure modes you must distinguish?
- Model capability failure — the model lacks knowledge, reasoning or instruction-following ability required for the task.
- Harness parsing failure — the harness misinterprets model output, extracts wrong values or fails to call tools correctly.
- Tool execution failure — a tool call succeeds but returns unexpected results, or the environment state changes between calls.
- Retry and recovery failure — the harness's retry logic amplifies errors instead of recovering from them, or time limits expire before valid completion.
- Task specification failure — the task definition, context or tool definitions are incomplete or contradictory.
- Interaction failure — the combination of model behaviour and harness logic produces an error that neither would produce alone.
Which controls must you demonstrate for every agent incident?
- Record model and harness versions, prompts and context — document the exact configuration, input context and prompt used in each run so the incident is reproducible.
- Capture the full execution trace — log all tool calls, tool results, retries, time limits and environment state changes in sequence.
- Separate valid execution from task correctness — measure whether the harness did what it was supposed to do, independently of whether the outcome was correct.
- Run cross-comparisons across at least two models and two harnesses — execute the same task with different model-harness combinations to isolate which layer the fault belongs to.
- Document the error chain before attributing causation — establish that a triggered failure mechanism actually propagated to the final outcome, not merely that it occurred.
- Avoid prompt changes as incident closure — a changed prompt can make a symptom disappear without removing the cause, displacing the problem rather than solving it.
What does a prompt change actually accomplish?
Empirical work across nearly 0.9 million trajectories shows that interventions such as feedback, skills, harnesses and extra budget work in context-dependent and interactive ways. Feedback mainly repairs errors that leave a visible, usable signal. Self-developed skills can degrade when transferred to another model. A changed prompt can make the symptom disappear without removing the underlying fault. This is not a solution; it is a displaced problem. You cannot claim that an incident is closed when you have only masked its symptom.
How should you structure incident investigation?
Because the same task score can hide different execution profiles, acceptance testing must include a cross-comparison of at least two models against at least two harnesses, with valid execution measured separately from correctness. Because a triggered failure mechanism is not yet proof of causation without additional evidence, a causal claim should be made only when logs, artefacts and external state together support a concrete error chain. This is a practical evidentiary observation: 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.
Tooling can capture execution traces and flag anomalies, but it cannot determine causation. The decision to attribute an error to a specific layer—and therefore to approach the right supplier or take the right measure—remains your professional judgment. What the evidence trail does is give you the material to make that judgment sound.
Sources: This article draws on reporting and guidance from arXiv.
Written by
Marit Halversen
Covers AI governance and regulatory design, with a focus on how compliance obligations land on architecture rather than on paperwork.