SEARCH
Why we need to start talking about what an agent’s 404 looks like
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.
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.
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.
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:
These are orthogonal, and almost every expensive agent outcome lives in a cell you can’t name until you separate them.
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.
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.
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.
A 4xx means the agent halted and reported why. If it guessed and continued, it isn’t a 4xx.
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.
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.
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.
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.
Most combinations of code and field are illegal, which is exactly what makes them enforceable.
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.
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.”
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.
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.
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.