Check out our upcoming events | Learn More

In the event of agent failure

Why we need to start talking about what an agent’s 404 looks like

  • Navan Tirupathi
  • Jamil Jadallah
  • November 5, 2026
  • 9 Minute Read
Back to All Insights

KEY TAKEAWAYS

  • When a server breaks, it throws an error code. When an agent breaks, it keeps talking. We can’t fix agentic systems until we build error codes designed for intent, not just infrastructure.

  • Servers crash with a 404 or 500; agents fail in plain English. Because agent failures don’t trigger standardized status codes, we need an entirely new vocabulary to diagnose what went wrong.

  • The hardest agent bug to detect isn’t an unhandled exception; it’s a false success signal. The system executes every step, drops the actual objective, and reports completion.

When an agent fails, it doesn’t look like failure. It looks like completion.

Every layer of the stack has a vocabulary for failure. APIs have status codes. Forms return validation errors. Servers have logs. Every surface has designed copy for when something breaks. The web learned, over decades, how to fail in public with enough precision that you know what went wrong and what to do next.

AI agents don’t have that yet.

When an agent fails, it doesn’t look like failure. It looks like a confident summary. A closed workflow. A cheerful confirmation. The UI shows success. The agent says: done.

Meanwhile, the objective is missing.

We believe agent failure needs the same designed vocabulary the web spent decades building for itself. This paper names the failure mode at the center of the problem, separates the two questions every agent outcome must answer, and proposes a working set of run-level status codes, plus the three fields that make them operational.

You don’t need to be building agents to need this. Agents are already making decisions inside your work, which means their failures are already inside your outcomes. When an agent says done and the objective wasn’t found, the debrief needs more than “it made a mistake.” It needs a name for the kind of mistake.

I. The Invisible Failure

Agent failures are quiet. They fail through completion. The system finishes the task while dropping the thing that made the task matter. The interface reports: done.

Agent failures are invisible. That’s a different problem than agents failing.

Traditional software fails loudly, or at least legibly. The failure state is designed. You feel the resistance of the thing not working, and that resistance is information. It tells you where the system stopped, what it expected, what it needs.

Agent failures are quiet. They fail via a completion signal. The system finishes the task while dropping the thing that made the task matter. The context drifts. The constraint goes unread. The source gets fabricated. The success condition never gets checked. The interface reports: done.

This is a category of error without a name. So we named it.

Definition: Agent 404

An agent produces a completion signal while the actual goal, context, constraint, or success condition is missing, misunderstood, or was never validated.

The label was intentional. In HTTP, a 404 means the server was reachable, the request was valid, the system worked. The thing you wanted just wasn’t there. Same shape here: the pipeline ran, the response was fluent, the interface looked fine. The objective wasn’t present.

Note which item in that list does the most damage: the success condition. If nothing ever defined what “done” meant, the agent isn’t cutting a corner when it reports done. It has no corner to cut. Completion is unverifiable by construction.

Then we tried to build the rest of the vocabulary around it, and the name broke.

The name was slightly wrong, and the wrongness is the interesting part

A real HTTP 404 is a response. The server tells you the thing isn’t there. That’s the whole value: you know, immediately, and you can act.

But the failure we described does the opposite. The agent doesn’t tell you the objective is missing. It reports success. Which means “Agent 404” was never a 404 at all. A 404 is what should have happened, and didn’t.

That gap is the diagnostic signal. A single list of failure names isn’t enough, because it collapses two independent questions:

  1. Did the objective get met? Fully, partially, or not at all.
  2. How did the run end? Cleanly, off-path, stopped by design, or broken.

These are orthogonal, and almost every expensive agent outcome lives in a cell you can’t name until you separate them.

Exhibit 1

Twelve cells. Most failure vocabularies name four or five of them, and they name the wrong ones.

Two independent questions define the grid. The rows answer “did the objective get met?” The columns answer “how did the run end?” Collapse them into one list and you lose the cells that cost the most.

The distinction between blocked and failed with partial writes is the one operations teams feel first. Both mean “didn’t finish.” One goes to an approvals queue. The other goes to a cleanup ticket. Routing them to the same place guarantees one of them is handled wrong.

Three categories almost nobody discusses

  1. Policy-violating success. The agent hit the objective by skipping a required review, or by finding a second route after a guardrail declined the first. The outcome is correct. The process is a serious incident. Every dashboard we’ve seen reports this as a pass.
  2. Stopping correctly is not failure. An agent that halts because it lacks authority, because a policy declined, or because it genuinely couldn’t find the objective and said so: that’s the system working exactly as designed. Filing it under “agent failures” teaches your organization to optimize the number down, which means optimizing the guardrails away.
  3. Failure with committed side effects. An agent that dies at step 7 of 10 has written seven steps’ worth of side effects. “It failed” and “it half-happened” require completely different responses, and only one of them is a retry.

II. A Status Code Vocabulary for Agent Runs

The power of HTTP status codes isn’t any single code. It’s the shared vocabulary: it lets you reason about failure, design for it, and build recovery around it.

In the event of agent failure, the following codes apply

Two conventions make this usable. First, prefix them: RUN-404 is a run-level outcome, bare 404 is the HTTP response a tool call returned. You will have both in the same log line, and you’ll want to tell them apart. Second, and more importantly, one rule turns these from labels for assigning blame into labels that drive system behavior.

The Core Invariant

A 4xx means the agent halted and reported why. If it guessed and continued, it isn’t a 4xx.

Exhibit 2

1xx: In flight. Not outcomes.

A paused run is not a finished run; if you record it as one, resumption becomes a new run and you lose the causal chain.

An undetected 404 surfaces as a 202

RUN-404 and RUN-202 are the same incident at different times.

RUN-404 is a missing success criterion. RUN-202 is a success nobody verified. An agent cannot verify against a condition that was never specified. So when the criterion is absent and nothing halts the run, the agent falls back on the only signal it has, which is its own account of its own work. That gets recorded as completion. The UI shows success.

Which means the vocabulary has a direction of travel. Every 202 in your logs is either a verification gap you know about, or a 404 that was never caught. The fix isn’t downstream, at the point where the agent overclaims. It’s upstream, at the point where the objective arrived without a definition of done and nothing objected.

Exhibit 3

Practical Implication

Most real tasks arrive with no success criteria at all, so a strict implementation would 404 constantly. That’s probably correct, but it’s unusable as a hard halt. The workable version is for the agent to propose criteria and get them confirmed, which is a RUN-103, not a RUN-404. Reserve the 404 for when it asked and got no answer.

III. Making It Operational

Codes alone don’t survive contact with operations. Three fields on every terminal outcome, and the invariants between them, are what make the vocabulary enforceable.

Three fields that belong on every outcome

  1. side_effects: none / rolled_back / partial_committed / orphaned / complete. This is what decides whether a failure is safe to retry, and it’s the field most agent frameworks simply don’t have. Default it to orphaned when unknown, never none: an agent that crashed mid-write cannot vouch for its own cleanliness, so absence of evidence has to route to cleanup.
  2. evidence: verified / self_reported / none. This is the entire difference between RUN-200 and RUN-202. Enforce it at write time: a 200 with self-reported evidence is downgraded automatically, or “verified” quietly becomes a synonym for “the agent felt good about it.”
  3. next_actor: none / agent / human / engineering. The field ops actually routes on, and the reason blocked and failed have to stay distinct. Both mean “didn’t finish.” One goes to an approvals queue, the other to a bug tracker.

Most combinations of code and field are illegal, which is exactly what makes them enforceable.

Five invariants fall out of that

  1. RUN-200 with self_reported evidence auto-downgrades to RUN-202.
  2. RUN-404 must fire before work starts. A 404 with side effects means you checked for a success criterion after committing writes: a validation-ordering bug.
  3. RUN-412 with evidence: none is really a RUN-500. “The input isn’t there” and “I couldn’t find it” are different runs.
  4. RUN-4xx with orphaned is illegal. The gate fired late; record it as RUN-500 plus a cleanup ticket.
  5. Unknown side effects default to orphaned, never none.
Exhibit 4

Implementation Note

Don’t write if code < 400: success. That predicate swallows every 3xx (every off-path completion, every worked-around control) into the success path silently. Make it 200 <= code < 300, and route 3xx to review by default.

What a good error message looks like

The web’s 404 page works because it does five things: names what was requested, explains why it failed, gives a path forward, doesn’t pretend the page exists, and doesn’t over-apologize. The same standard applies to an agent’s error messages.

CURRENT

“I’ve created the report. Let me know if you’d like any changes!”

RUN-412, SURFACED PROPERLY (A NAMED INPUT IS MISSING)

“I started the report but couldn’t locate the Q3 dataset you referenced. Without it I can draft the structure and section headers, but the numbers will be placeholders. Nothing has been saved yet. Share the file, or confirm you want me to proceed with estimates.”

RUN-404, SURFACED PROPERLY (NOTHING DEFINED DONE)

“I can produce this report, but there’s no stated criterion for what makes it correct: no target audience, no decision it feeds, no accuracy threshold on the figures. I can write something fluent and you won’t be able to tell whether it’s right. Tell me what this needs to be true for, or confirm one of these three definitions of done and I’ll work to it.”

Exhibit 5

Same system. Same capability. One of them treats failure as a product decision. And note the sentence doing the quiet work: nothing has been saved yet.

Confidence is not comprehension. The current generation of these systems maximizes apparent completion rather than actual completion. They’re optimized against human feedback (e.g., RLHF) that rewards fluency, coherence, and helpfulness. “I can’t find the objective” scores worse than a plausible completion. The result is systems that emit completion signals rather than complete the task. The correction is better failure design, not only better model behavior: named states, surfaced honestly, recoverable by construction.

This is RFC 1

The web’s status codes didn’t arrive complete. They accumulated through RFCs, edge cases, real incidents, and arguments between engineers about what the protocol should say when something went wrong. That vocabulary is now so settled it’s invisible.

You don’t need to be building agents to need this. Agents are already making decisions inside your work, which means their failures are already inside your outcomes. When an agent says done and the objective wasn’t found, the debrief needs more than “it made a mistake.” It needs a name for the kind of mistake.

If you instrument only one thing, instrument the RUN-202 rate: the share of your agent’s reported successes that nobody has actually verified. Almost nobody builds verification, so that number starts high, and it is the most honest metric you have.

The web got good at failing in public because practitioners demanded precise language for what went wrong. The same sequence applies here. It starts with knowing what to ask.