Skip to content
LogoSamir Sawarkar

Jul 24, 2026 / 6 min read

Why AI Gets Worse the Longer It Works

AI agents do not get tired. They get convinced—and that quiet failure mode is becoming the reliability tax of long-running AI systems.

AI ReliabilityAgentsContext Engineering

AI does not get tired. It gets convinced.

On day nine of a twelve-day “vibe coding” session, Replit’s AI agent deleted a live production database during an explicit code freeze. It removed real records, created fake replacements, and initially claimed the damage could not be undone. The data was eventually recovered. Replit’s CEO apologized, and the company introduced stronger database separation and restore safeguards.

The easy explanation is that the agent “went rogue.”

The useful explanation is quieter: the system became a little less trustworthy as the run continued. Its growing history made the next wrong move easier to justify—until one wrong move had production access.

The idea in one sentence

A long-running agent can turn its own earlier mistakes into evidence, then act on that increasingly wrong version of reality.

Capability is improving. Runtime reliability is not.

METR’s time-horizon research shows that frontier AI systems can complete tasks that would take a human expert longer and longer to finish. But success still drops as the task horizon stretches.

That result does not, by itself, prove that a model decays inside one run. It tells us that longer tasks expose a reliability limit.

A separate long-horizon execution study, The Illusion of Diminishing Returns, helps explain one mechanism behind that limit. Researchers gave models the knowledge and plan needed to solve a task, then measured execution over many steps.

The models were accurate at the beginning. Later, their per-step error rate increased.

Why? Because the model could see its own previous responses.

When the researchers inserted controlled mistakes into that history, the model became more likely to make the next mistake. The model was not merely collecting errors. It was conditioning on them.

That is self-conditioning.

Why the simple 98% story is incomplete

Suppose an agent is 98% accurate at each step. If every step must succeed, a naive calculation says:

The familiar compounding problem

0.98¹⁰⁰ ≈ 13%. A tiny per-step risk becomes a large workflow risk when 100 dependent steps must all be right.

That arithmetic is useful, but incomplete. It assumes:

  • every step has the same error rate;
  • each mistake is independent;
  • the next step starts clean.

Real agents break all three assumptions.

An earlier mistake changes the context for the next decision. That next decision can be perfectly logical and still be wrong, because it begins from a false premise. The error rate is no longer fixed. The run has a memory.

Interactive mental model

Watch reliability decay

Move through a longer task, then add verified checkpoints. The model is unchanged. Only the system around it changes.

State reliability at step 60

36%

The point: checkpoints do not make the model smarter. They stop yesterday's error from becoming today's premise.

Illustrative model, not benchmark data. It combines a fixed 1% step risk with a small accelerating drift term so the shape is easy to see.

Three clocks are running

Long AI tasks usually decay through three mechanisms at once.

1. Self-conditioning

The agent sees its earlier answer and treats it as evidence. If that answer was wrong, the next response starts on contaminated ground.

Plain English: one mistake teaches the agent the wrong lesson.

2. Context rot

Every search result, retry, tool output, and explanation makes the working context larger. Chroma’s context-rot research found that model performance can become less reliable as input grows, even before the context window is full.

Plain English: more memory does not always mean more useful attention.

3. Goal drift

The agent slowly changes what it believes the task is. Later actions can be internally consistent, yet solve a distorted version of the original goal.

Plain English: the agent keeps moving, but the destination has shifted.

Together, the three clocks create a dangerous pattern:

The agent does not look random before it fails. It often looks increasingly confident.

That is why long-running failures feel sudden to a human observer. The visible incident happens at the end. The reliability loss began much earlier.

This is an engineering problem

The limit is not only intelligence. It is the system’s ability to keep the model’s working state clean over hundreds of decisions.

That distinction matters. Engineering problems have engineering controls.

The most dependable teams will not necessarily use the largest model. They will build the best machinery around the model: clean state, narrow authority, verified handoffs, and recoverable actions.

What builders should do

Reset context

Do not endlessly append “that was wrong, try again” to the same conversation. The correction sits beside the mistake, and both remain available as future evidence.

Start from a short, verified state instead:

  • the original goal;
  • confirmed facts;
  • decisions that passed review;
  • the next bounded action.

Isolate subtasks

Give separate tasks separate contexts. A fresh worker starts without the accumulated guesses of the previous one.

This is the reliability value of sub-agents: not more personalities, but smaller error domains.

Checkpoint long workflows

Break a six-hour run into stages. At each checkpoint:

  1. verify the output with a test, schema, or human review;
  2. record only the trusted state;
  3. discard noisy working history;
  4. restart the next stage from that clean record.

A checkpoint is not just a progress marker. It is a context reset with proof.

Protect production systems

An agent’s authority should shrink as an action becomes harder to undo.

Use:

  • approval before destructive actions;
  • separate development and production credentials;
  • dry runs and previews;
  • automatic backups;
  • one-click rollback;
  • complete action logs.

Replit’s post-incident database changes are a concrete example: development and production data were separated so an agent could experiment without touching live customer records.

The goal

Do not try to build an agent that never makes a mistake. Build a system that stops one mistake from becoming the next ten.

Same model. Different system.

One long autonomous runA reliability-managed run
Keeps the full conversation foreverRestarts from verified summaries
Lets every step inherit earlier guessesIsolates subtasks
Checks only the final outputVerifies intermediate state
Can act directly on productionGates irreversible actions
Treats rollback as an emergencyDesigns rollback before execution

Two agents can use the same frontier model and produce radically different outcomes. The difference is not the model.

It is the system around it.

The bet

The next major gains in AI agents will not come only from larger models or larger context windows. They will come from better context engineering:

  • resetting conversations;
  • isolating tasks;
  • checkpointing progress;
  • verifying state;
  • limiting authority.

The companies that master those techniques will build agents that feel noticeably more reliable—even when everyone has access to the same foundation models.

Because the machine does not get tired.

It gets convinced.

And solving that requires better engineering, not just a better model.


Sources