CHAPTER 1 / 8
New failure modes in production agents
Agent failures appear not only as HTTP errors but also as wrong tool selection, long loops, partial success, and cost explosions.
Why this concept became necessary
The model may respond while executing a tool on the wrong account or completing only two of three steps. Define success by business state and user confirmation, not response codes.
When the model, prompt, retrieval index, tools, and policy change independently, the same input can behave differently. Record a revision tuple for every run so regressions can be pinpointed.
Agent failures appear not only as HTTP errors but also as wrong tool selection, long loops, partial success, and cost explosions.
Record business outcomes and execution revisions under a common run identity to observe partial failures.
Inject partial tool success, timeouts, and approval rejection, then verify that the final business states can be distinguished.
Follow it through a concrete system
A typical API request often either succeeds or ends in an explicit error, but an agent can stop after only some of its tool calls succeed. A ticket may be created while the user notification fails, or a refund may be processed while the model judges it a failure and requests it again. Without a task state machine and operation identity, a conversation transcript alone is not enough to recover actual business outcomes.
Model responses, retrieval, policy, and tool revisions change independently, so record this combination for every run. A report that the same prompt produced different results is not enough to narrow down the cause. The basic error contract of a production agent defines partial success, approval rejection, budget exhaustion, and human handoff as distinct terminal states and shows the user the next step.
Selection criteria and failure boundaries
High-cardinality data, personal data, and vendor-specific signal differences must be managed.
Misconceptions to avoid: A 200 from the model API does not mean the agent task succeeded.
Verify it yourself
Inject partial tool success, timeouts, and approval rejection, then verify that the final business states can be distinguished.
Official sources for this chapter
The technical facts in the text were reviewed against the following primary sources. The author reconstructed the diagrams and comparisons using these materials.
- Microsoft, 「Playwright Best Practices」Review date 2026-08-28 · Scope Latest official documentation
- OpenTelemetry, 「Signals」Review date 2026-08-28 · Scope Latest official documentation