← Back to Foundations

Topic Agent oversight

Foundations · AI agents · 7 min read

When an AI agent goes wrong, where should a human step in?

Updated November 28, 2026: Added a note for every reader card.

Agent oversight · Part 1 of 3 · 2 min

Most bad fixes start with a wrong belief

Some AI doesn't just answer. When a takes actions with tools, it becomes an . When an agent breaks something, the instinct is to blame the final action, the bad edit or the wrong message. Often the real mistake happened earlier, in what the agent believed about the job before it acted, and that is the problem agent oversight exists to catch. A person can inspect the finished result, but the moment where a correction does the most good may come sooner, while a mistaken belief is still steering the next step.

A 2026 study of coding agents gives that idea real numbers. The researchers examined 400 recorded runs of AI models working on real software bug-fixing tasks, from a collection called SWE-bench Pro. Each run left a , a step-by-step record of what the agent said about the task, what it did, and the it finally made, meaning the code edit meant to fix the bug. Then they looked closely at 188 patches that turned out wrong. Two thirds of them traced back to a faulty claim the agent had made about the work, a statement such as which file held the bug or what a function was supposed to do. So the error usually began before the edit, in what the agent thought it was fixing. The study doesn't show that every wrong thought produces a bad patch, but it sharpens the question oversight has to answer, namely which misunderstanding is connected to an action that is hard to undo.

If faulty claims lead to bad patches, why not simply flag every faulty claim? The researchers checked that too. They pulled out every statement the agents made about their tasks and checked each one. At least 9.6% were faulty, roughly one in ten, which makes an alarm on faulty statements sound practical. Another number shows why it isn't. Faulty statements also appeared in 96.7% of the runs that solved their task, so a rule that halted every run containing a mistake would have halted almost every successful run too.

The team then went further than counting. For each wrong patch they could link to a particular faulty statement, they corrected that statement themselves and ran the agent again from that point. In 89.0% of those replays, the agent went on to fix the defect. That was a controlled experiment on those runs, not a promise that one correction always repairs a working agent, but it tells you what a review point is for. Rather than asking a reviewer to hunt for any imperfect sentence, you show them the assumption behind the proposed change, the evidence for it and the action the agent is about to take, because that is where a correction can still stop the wrong assumption from becoming a patch.

In short

An agent's bad action often starts earlier, with a wrong belief about the task. Wrong beliefs show up even in runs that succeed, so the one worth catching is the belief that drives the next action.

  1. The task
  2. The agent's belief about itwhat it thinks needs doing
  3. The action
  4. The outcome
Example In a 2026 study of coding agents, two thirds of 188 wrong patches traced to a faulty claim, and correcting that claim fixed the defect in 89% of replays.

Quick check (optional)

You're setting up review for a coding agent. A teammate proposes stopping any run in which the agent says something false about the code. Based on the patch study, what's the problem?

Go deeper2 short reads · 2 min
Where coding agents go wrong1 min

The study's finer findings say where a reviewer's attention pays off. Statements about the task made up only 18.5% of the agents' written reasoning, yet each run still produced about 191 separate checkable claims, far too many for a person to read one by one. The errors were not spread evenly. The researchers found that agents understood the task better than the code, with 5.5% of claims about the requirements faulty, against 13.5% of claims about the existing code and 14.7% about how the fix would work. And most faulty claims were not inventions of code that doesn't exist. They misstated how existing code behaves. So the most valuable thing to show a reviewer is the agent's account of what the current code does, because that is where its beliefs most often go wrong.

Make the wrong action hard to take1 min

Oversight doesn't only happen at checkpoints. It can be built into the tools themselves, an idea Anthropic borrows from manufacturing, where poka-yoke means designing a part so it can't be assembled wrong. Anthropic says that while building its agent for the SWE-bench coding test, its team spent more time improving the tools than the prompt. In one case the model kept making mistakes with file paths written relative to the current folder once it had moved out of the main folder, so the team changed the tool to require full paths, and the mistakes stopped. Every error a tool makes impossible is one a reviewer never has to catch.

For your work · Generalist

Say your team uses an agent that closes support tickets and issues refunds, and one morning it refunds a customer twice. The study in this lesson tells you where to look first. Two thirds of the agents' wrong code fixes traced back to one false belief stated along the way, like "this function already checks for duplicates". Open the agent's trace and find the sentence where it got a fact wrong. Then list the actions it can't take back (a refund, a sent email, a deleted file), and have a person approve those before they run.

Your toolkit · The one-wrong-belief check. When an AI tool gets something wrong, find the single sentence where it stated a false fact before you blame the whole tool.

For your career · Reading an agent's trace is step one on the path to running AI tools at work. Next comes Evaluating a result (did the task really pass?), then Reading benchmarks and leaderboards (how to judge the scores vendors quote).

Career paths are getting more detailed and more tailored to you soon.

Words in this lesson (12)
agent
An AI system that chooses its own actions and uses tools to carry them out, one step after another.
evaluation
A test of how well a model or AI system does a job, with set tasks and a rule for scoring the answers.
guardrails
Limits built around an agent, such as which tools it may use, how much it may spend, or which actions need a person's approval first.
MCP
Model Context Protocol, a standard way of connecting AI applications to tools and data sources.
model
A program that has learned from examples to turn an input, such as your question, into an output, such as an answer. Inside, it is a large set of learned numbers.
open-weight
A model whose weights are published, so anyone can download it and run it on their own machines.
patch
A change to a codebase, the edit a coding agent proposes to fix a problem.
sandbox
A sealed off environment for testing an agent, where its actions cannot cause real harm.
side effect
A change an action makes outside the agent, such as a payment, a deleted file or a sent message.
tool
Something a model can ask to use, such as web search, running code or a payment system. The software runs it and hands the result back to the model.
trace
The full record of an agent run, including what it said, what it did and what each tool returned.
unit tests
Small automatic checks that code does what it should. They judge the result, not the agent's explanation.

Sources

Original research and official documents used for this version.

arxiv.org ↗anthropic.com ↗anthropic.com ↗metr.org ↗developers.openai.com ↗arxiv.org ↗

Core path · 19 of 25

Before this · What an AI agent is

Next · GPUs and AI chips (Coming soon)

See all of Core path

Where things stand now (2026-11-21)

As of November 21, 2026, Anthropic’s agent guidance still describes human checkpoints and stopping conditions. The October 2026 coding-agent study supplies a dated failure case: false task beliefs were linked to many incorrect patches under its setup. These findings guide review design; they do not set a universal approval threshold.

Version history

Earlier lessons remain available when the evidence changes.

Version 2 · Added a note for every reader card.

Version 1 · Written from original sources