AI agents, programs that use tools such as databases, files and web services to complete tasks, are being introduced in companies. A preprint posted on arXiv on 20 November asks a practical question: what does an agent do when one of those tools does not work properly? The paper, "When Tools Fail, Agents Fabricate", comes from Carnegie Mellon University. It is an arXiv preprint formatted for the NeurIPS 2026 workshop "Who Verifies the Agents?"; we could not confirm whether it has been accepted or peer-reviewed. [1]
How the test worked
The researchers built a test environment, which they call RetryRealistic. Agents work on a real file system with genuine permission checks, SQLite databases, a local web server and a restricted command line. There are 30 multi-step tasks, and the researchers injected nine kinds of faults, such as a permission error, a login required, a timeout, a malformed result or a truncated one. Every answer was graded against the known correct result. [1]
They tested four agents: Llama-3.1-8B, Llama-3.1-70B, DeepSeek-V4 and Claude Haiku 4.5. Across 2,100 runs with a fault, the share of runs that recovered and gave the correct answer ranged from 18.9% to 67.6% depending on the agent. [1]
What the researchers found
The worse finding is how the failures looked. Depending on the agent, between 6% and 26% of faulted runs ended in what the authors call "a confident fabrication, a wrong answer asserted as fact". The authors illustrate the risk with a hypothetical: an agent that reports a total of 32,000, the sum of the half of the rows that a truncated read returned, when the correct answer is 48,750 "looks successful to a downstream consumer". [1]
The kind of fault mattered more than the model. When a tool refused access outright, for example with a permission error, agents most often stopped and said so. When a tool returned partial or malformed data without any error, agents fabricated in up to 38% of runs. The authors call the mechanism "silent ingestion": the agent accepts the faulty data as valid the first time and builds an answer on it. In 91% of the runs where a partial-data fault occurred, the agent repeated the call at most once. Of those runs, 27.8% ended in fabrication. [1]
Better models helped but did not solve it. DeepSeek-V4 fabricated least overall, in 5.5% of faulted runs, yet still fabricated in 27.2% of the runs where a tool returned partial data. Claude Haiku 4.5 recovered almost as often as DeepSeek-V4 but fabricated in 19.0% of faulted runs, more than three times as often. [1]
What helped, and what to do
The authors tested a fix: a monitor, mostly code that compares the agent's final answer with what the tools actually returned, plus a second AI model that watches for the agent drifting off task, which sends corrective directions instead of blocking the answer. It raised the share of correct recoveries from 45.6% to 56.3% and cut fabrication from 17.3% to 10.8%. It worked least well where silent ingestion was strongest: on truncated results, fabrication only fell from 38.3% to 32.1%, because a truncated result raises no error and in 224 of 324 such runs the monitor never acted. [1]
Removing the agents' step-by-step reasoning (chain-of-thought) raised fabrication by 8.3 percentage points, from 17.3% to 25.6%, without changing how often agents recovered correctly. The authors read this as evidence that reasoning helps agents catch bad data. [1]
The study has limits. It uses a constrained command line and a mock web server, only scalar calculations such as totals were checked by the monitor, and the monitor and the grading judge are strong commercial models. Only four agents were tested, two of them Llama models. [1]
