# The agent demo crashed right after its stunning launch because the demo had no failures

Date: 2026-11-27
Category: Technology
Tags: Agents, Launch Acceptance, Failure Handling
Summary: Demo environments have no noise, no adversarial inputs, and no partial failures, so single-step accuracy is mistaken for end-to-end success rate. This article dismantles these three layers of shielding and provides executable pre-launch acceptance criteria and trade-off criteria for failure handling

An agent demo review has a fixed shape: first a page of architecture diagrams, then a sentence typed live that was prepared in advance, the model plans three steps, the tools return success in sequence, and finally a nicely formatted conclusion pops up. Everyone in the meeting room nods, and the project enters scheduling.

Once the same thing is connected to real traffic, the most common feedback is "sometimes it doesn't do it" and "it does half of it." The model hasn't changed, the prompt hasn't changed—only the environment it faces has.

The demo environment actually shields the product from three things: noise, adversarial input, and partial failure. None of these three ever appear in a demo, so what a demo measures is not the agent's capability ceiling, but how well it fits a clean world.

| Dimension | Demo environment | Production environment |
| --- | --- | --- |
| Input | Chosen by the developer, all fields present | Colloquial, missing parameters, multiple intents mixed in one sentence |
| Tools | Just integrated, same subnet, low latency | Timeouts, empty results, rate limiting, insufficient permissions |
| Intent | Single, benign | Mixed, some probing boundaries |
| Steps | 3 to 5 steps | More than 10 steps, including clarification and retries |
| Failure handling | Fixed on the spot, kept out of the demo | Requires retry, degradation, or handoff to a human |

## Every step in the demo returns 200

Demo scripts are usually prepared by the people who wrote the code. The inputs are hand-picked, the tools were just integrated, and the network is in the same office. In this environment, tool calls have only two outcomes: success, and failure (failures get fixed on the spot, then the demo is run again).

In the real environment, tools return a whole spectrum. Timeouts, empty results, missing fields, insufficient permissions, rate limiting, returning 200 but with semantically wrong content—for example, a search returns 20 results and none of them are relevant. Pull the production failure logs by type and look: 5xx is often just the small head; the bulk is timeouts and empty results. These two categories never surface in a demo, because they don't look like bugs—they look more like "didn't find it this time."

The agent's default reaction to these inputs is usually to keep going. It won't stop just because a field is missing; it fills in a plausible-looking value. In a demo this is called fluency; in production this is called fabrication.

This difference changes a team's judgment. A smooth demo means the model can plan on this task; a stuck demo means the tool interface has a problem. But a smooth demo does not imply smooth production, because in between sits a layer nobody has tested: what it does when the tools don't cooperate.

## 95% per step is not 95%

An agent task split into 10 steps, with 95% success per step, has an end-to-end success rate of 0.95 to the 10th power, about 60%. At 90% per step, the same 10 steps leave only 35%. A demo usually runs only 3 to 5 steps, and every step is the path that was picked because it works.

This multiplicative relationship is the most easily overlooked piece of arithmetic in shipping an agent. A two-point gain in per-step accuracy sounds like "the model got upgraded" in a meeting; end-to-end success going from 60% to 66% still sounds like "unstable" on the business side. The two numbers describe the same thing, but they lead to opposite decisions.

Real tasks also have more steps than demos. The extra part is clarification, validation, retries. Every extra step consumes both success rate and latency budget, and latency in turn affects success rate: the user gets impatient, closes the page midway, and the task counts as failed.

So when evaluating an agent, I only accept end-to-end task success rate. And I require stating how many steps, how many retries allowed, and what time budget produced that number. Without these three preconditions, success rates can't be compared across versions, nor against demo numbers.

## Demo samples are picked; production samples grow

The refund requirement makes the gap very clear.

In the demo, the input is "help me refund that order from last week," the order number is in context, account information is complete, and the user is already logged in. The agent looks up the order, checks whether it has shipped, calls the refund API—three steps done.

In production the user says "don't want this anymore, just refund it." That one sentence hides at least four judgments: which order, whether it has shipped, whether it's past the refund deadline, and which account the money goes back to. If any of the four lacks information, the correct behavior is to ask, not to guess. And the demo script has never tested the asking path, because asking looks like failing to get things done in a demo.

The shape of real traffic input is far from the internal eval set. A user's sentence is often only eight to twelve characters, dropping the subject and object, carrying typos and emotion. This isn't dirty data—this is the data itself.

There's a low-cost check: have someone not involved in developing this agent pull a few real conversations straight from the work chat, unprocessed, and throw them in. The input shapes that show up in the first five minutes are usually closer to production than the internal eval set. This process needs no labeling and no scoring—just record "where it gets stuck, and what it does after getting stuck."

## How partial failure is handled determines the product shape

The demo has no layer between success and failure. In a usable system, that layer is the norm. Where the agent goes after a tool timeout determines not only the success rate, but also what this product is in the user's mind.

```mermaid
flowchart TD
    A[Agent 发起工具调用] --> B{工具返回什么}
    B -->|正常结果| C[进入下一步]
    B -->|超时或空结果| D{动作能否撤回}
    B -->|权限不足| F[停下并请人确认]
    D -->|能撤回| E[限次重试]
    D -->|不能撤回| F[停下并请人确认]
```

Automatic retry is only safe for read-only, idempotent calls. Looking up orders, checking logistics, searching the knowledge base—retrying twice costs little. Write operations are different: placing orders, issuing coupons, changing addresses—a retry may become a duplicate execution. To do retries you must first have an idempotency key, so the server recognizes this as the same request, not a new one.

A degraded response must state clearly what's missing. "Based on your last three orders" and "based on your orders" are understood completely differently by users. The first is an acceptable degradation; the second disguises an incomplete answer as a complete one, and the user will find the mismatch elsewhere.

Handoff to a human needs a channel. "Suggest contacting customer service" without a human entry point equals failure. You also need to state the expected wait: a few minutes until someone picks up, or a few hours. If you can't say it, the user will try again themselves, pumping duplicate requests into the system.

There's a criterion here more reliable than model confidence: whether this action can be undone. What can be undone can be done first and reported after; what can't must be confirmed first. Confidence is a number the model reports about itself; reversibility is a system fact. The two should not be mixed.

The time budget also needs to be split before calling tools, rather than taking the default for each tool. In customer-service scenarios, what users tolerate is usually on the order of seconds, not tens of seconds. Give 8 seconds end to end, and the budget for five tool calls must be allocated up front; if each defaults to a 30-second timeout, the first timeout eats the entire budget.

```yaml
tool_policy:
  read:
    timeout_ms: 3000
    max_retries: 2
  write:
    timeout_ms: 5000
    max_retries: 0
    require_confirm: true
task_budget:
  end_to_end_ms: 8000
  on_budget_exceeded: degrade_and_report
```

## The most expensive agent is the one that can't answer "what other failures are there"

One class of error invisible in demos is the agent saying it's done while the system has no corresponding record. The user finds out two days later that the order wasn't refunded, the ticket wasn't created, the calendar wasn't scheduled. This class of error is more expensive than a wrong answer, because what it consumes is trust, and trust has no retry mechanism.

The criterion is one sentence: for actions with side effects, the server receipt is authoritative, not the model's self-report. The receipt must have an ID, a status, and a timestamp. Without a receipt, the UI should mark "pending confirmation," not put a checkmark.

For measurement, sample a batch of production sessions for manual reconciliation and compute the proportion of "claimed complete but actually not complete." This number usually doesn't make it into the weekly report, because handling the problems it surfaces is a hassle—but it predicts whether users will use it a second time better than accuracy does.

## Five things I check before launch

1. End-to-end task success rate. Samples drawn from real logs, including final outcomes after retries, with step counts and time budgets clearly stated.
2. Fault injection. Randomly make some tool calls time out, return empty, or return 500, and see whether it retries, degrades, or makes things up.
3. Adversarial inputs. Prompt injection, privilege escalation requests, and attempts to induce skipping confirmation—prepare a few of each.
4. P95 latency and tool calls per task. Call count exposes design problems earlier than latency does.
5. Consistency rate between claimed completion and actual execution. Sample and reconcile to see how big the gap is.

The first four can be done within a week; the fifth has to be ongoing. Of the first four, the one most easily skipped is the second, because it requires changing code to simulate failures, which looks like going out of your way to make trouble for yourself. But it is precisely the widest gap between the demo and production.

## Scenarios where the gap isn't that large

There are also cases with little degradation: internal tools, where users are trained operations or support staff, input is constrained by structured forms, and every action is reversible. In such scenarios, noise and adversarial input are kept out by process, and part of the demo's success rate carries over to production.

Conversely, when free-text input, cross-system write operations, and unattended batch processing all come together, degradation is greatest. To judge whether an agent should be scheduled based on demo numbers, you don't need to look at how strong the model is—look at three variables: the freedom of the input, the side effects of the actions, and whether there is a human in the loop. If all three trend in the bad direction, even halving the demo numbers is optimistic.

After ten years in AI products, I now look less at whether a demo runs smoothly and more at what it does when it gets stuck. Next time you sit in an agent review meeting, you can ask just one question: in this workflow, which tool is most likely to time out, and what does it do after the timeout. Teams that answer clearly have usually already thought through retries, degradation, and who provides the safety net; teams that can't answer—no matter how smooth the demo—should hold off on scheduling launch.
