
When AI Agents Delete Production: 3 Incident Teardowns
Three documented AI agent incidents — Replit, Google Gemini CLI, and a Cursor agent — the root cause of each, and the control that would have prevented it.
A falsifiable six-part checklist for production-ready AI agent frameworks: pass/fail tests, official docs, failure math, and real July 2026 tooling prices.

A production-ready agent framework is defined by what happens when a step fails, not by what happens when every step works. Concretely, it means six testable capabilities: durable execution, state recovery, approval gates, permissioned tool access, an eval harness, and observability hooks. Each one has a pass/fail test you can run against a candidate framework before you commit budget to it.
Most framework evaluations never get that concrete. They compare GitHub stars, abstractions, and multi-agent diagrams — properties of the demo, not of the third week in production. Meanwhile, in LangChain's State of Agent Engineering survey (1,340 respondents, fielded November 18 to December 2, 2025), 57.3% of teams reported agents in production, and about a third named quality — not cost, not latency — as the top blocker.
A demo proves the agent can succeed once; production-readiness is about the other 5% of the time.
This article is the checklist we use in our own architecture reviews. Every item carries a test a framework can fail and a link to the official documentation that defines the capability. As of July 2026, none of the guides leading the rankings for this question offers that — we compare them one by one below.
Because failure compounds across steps. A workflow of twenty sequential steps succeeds only if every single step succeeds. Even at 99% per-step reliability, the full run finishes cleanly roughly 82% of the time. At 95%, roughly 36%. The framework's job is not to make models perfect; it is to make the imperfect runs recoverable instead of fatal.
The arithmetic is simple: if each step succeeds with probability p, a run of n independent steps completes at pⁿ.
| Per-step reliability | 5 steps | 10 steps | 20 steps |
|---|---|---|---|
| 99.9% | 99.5% | 99.0% | 98.0% |
| 99% | 95.1% | 90.4% | 81.8% |
| 95% | 77.4% | 59.9% | 35.8% |
Completion rates are pⁿ, computed July 2026. This is illustrative arithmetic under an independence assumption, not a measurement: real steps are correlated, agents sometimes catch their own mistakes, and retries claw back failures. The direction, however, is not negotiable — chained steps multiply risk.
Practitioners hit this wall before the industry named it. Utkarsh Kanwat, an engineer who says he has built more than a dozen agent systems, put it bluntly in July 2025: "If each step in an agent workflow has 95% reliability, which is optimistic for current LLMs, then: 5 steps = 77% success rate, 10 steps = 59% success rate, 20 steps = 36% success rate." His conclusion — "Production systems need 99.9%+ reliability" — is a practitioner report, not a study, but it matches what the arithmetic predicts.
Anthropic's own guidance on building effective agents says the same thing in fewer words: "The autonomous nature of agents means higher costs, and the potential for compounding errors."
So the question "is this framework production-ready?" reduces to: what does it give you for the runs that don't go cleanly?
Six capabilities, each falsifiable. Durable execution: a crashed run resumes instead of restarting. State recovery: conversations survive a redeploy. Approval gates: irreversible actions wait — indefinitely — for a human. Permissioned tool access: per-tool, per-call authorization. An eval harness: behavioral regression tests in CI. Observability hooks: standard telemetry for every step. A framework that cannot pass a test is, for that workload, a toy.
| Capability | Pass/fail test | Defined in | Who can skip it |
|---|---|---|---|
| Durable execution | Kill the process between steps 5 and 6. The run resumes at step 6 without re-running side effects. | Temporal docs | Single-call, stateless agents |
| State recovery | Deploy a new version mid-conversation. The thread resumes from its last checkpoint. | LangGraph persistence | Agents with no multi-turn state |
| Approval gates | Pause before an irreversible action for 48 hours, restart the infrastructure, then approve. It executes once. | LangGraph interrupts | Read-only agents |
| Permissioned tool access | Require approval for one specific tool per call, based on its arguments — not a global on/off switch. | OpenAI Agents SDK | No one with write-capable tools |
| Eval harness | Replay a fixed dataset of real conversations against a new prompt or model in CI and get a pass rate before deploy. | LangSmith evaluation docs | No one |
| Observability hooks | Reconstruct any failed run — every model call, tool call, input, output, latency — from standard telemetry. | OpenTelemetry (OTel) GenAI conventions | No one |
Tests are the author's; each capability definition links to the official documentation. Table compiled July 2026.
Temporal — the reference implementation of the idea — defines it as guaranteeing an application "will run to completion" despite adverse conditions, replaying event history to recreate state "to what it was immediately before the crash." LangGraph implements the same property through checkpointing.
The test: pull the plug mid-run. If the framework's answer is "start the workflow again," every side effect before the crash — the email sent, the record written — happens twice. That is a failed test.
Skip it if your agent makes one model call and touches nothing. A retry loop is simpler and more debuggable.
Related but distinct: durable execution survives crashes; state recovery survives you — deploys, migrations, restarts. LangGraph's persistence docs are explicit about the scope: checkpoints exist so an agent can "continue a conversation, resume after an interruption, recover from a failure, or remember information across interactions."
The test: ship a deploy while a conversation is mid-flight. If the user starts from zero, you fail — and at production traffic there is always a conversation mid-flight.
Skip it if every interaction is single-shot. Then there is no state worth recovering.
The gate has to hold across time and infrastructure, not just across a function call. LangGraph's interrupt "saves the graph state using its persistence layer and waits indefinitely until you resume execution." The OpenAI Agents SDK makes the state itself portable: "RunState is designed to be durable" — serialize it to a database, approve it days later, resume. Anthropic's guidance frames the pattern plainly: agents "can then pause for human feedback at checkpoints or when encountering blockers."
The test: a refund above $500 must wait for a human. The approval arrives two days and one redeploy later. The refund executes exactly once. Anything else fails.
Skip it if the agent cannot execute irreversible actions at all — which is itself a legitimate production design.
Tool permissions are where agent security actually lives — an if statement in front of a function, not a paragraph in the system prompt. The OpenAI Agents SDK's needs_approval accepts a function evaluated per call, on the tool's arguments, which is the right granularity: "send email to a customer" and "send email to the whole list" are different risks with the same tool. Why prompts alone cannot do this job is its own article — see prompt injection defenses that actually hold.
The test: scope one tool to require approval only when its arguments cross a threshold. If the framework offers only a global toggle, it fails.
Skip it: no one running write-capable tools gets to skip this. Purely read-only agents on public data can relax it.
This is the emptiest column in the industry's report card. In LangChain's survey, 89% of organizations had observability in place — but only 52.4% ran offline evals, and 37.3% online evals. Teams can watch their agents fail in beautiful dashboards; half of them cannot test for the regression before it ships. The capability itself is well documented: offline evaluation means scoring a new version against a dataset of test examples before deployment — regression testing to "ensure new versions don't degrade quality," in LangSmith's definition.
The test: change one line of the system prompt. Can CI tell you the booking-completion rate dropped from 94% to 71% before customers do? If evals live in a notebook someone runs "when things feel off," you fail.
Skip it: no one. Depth scales with stakes, but zero is not a depth. What to measure, and how to write eval thresholds into a vendor contract, is the subject of its own companion article: how do you know an AI agent works before you pay for it?
The standard is converging: the OpenTelemetry GenAI semantic conventions define spans, metrics, and events for model calls, tool executions, and MCP (Model Context Protocol, the emerging standard for connecting agents to tools) — still in active development, but already the schema the tooling ecosystem is building against. A framework that only emits its own proprietary logs is betting your debugging workflow on its vendor roadmap.
The test: for an arbitrary failed run from yesterday, reconstruct the full trace — every model input and output, every tool call, every latency — without adding print statements.
Skip it: no one. The survey's 89% got this one right.
At July 2026 public prices, the durable-execution and observability spine for an agent handling 1,000 conversations a day costs about $193 a month — roughly $0.006 per conversation, model API costs excluded. Tooling is the cheap part of production-readiness. The expensive part is the engineering discipline the tools assume: writing the evals, defining the approval thresholds, actually reading the traces.
Here is the math, with every assumption labeled. Prices are from the vendors' live pricing pages, retrieved July 4, 2026; the workload is a modeled scenario, not a measurement.
Workload (modeled): 1,000 conversations a day ≈ 30,000 a month, averaging 10 model-or-tool steps each.
| Layer | Tool and tier | Public price (retrieved 2026-07-04) | This workload |
|---|---|---|---|
| Durable execution | Temporal Cloud Essentials | From $100/mo, 1M actions included | ~600k actions → $100/mo |
| Durable execution (alt.) | LangGraph OSS + own Postgres | Framework free, open source | Your infra + ops time |
| Observability + evals | LangSmith Plus | $39/seat/mo, 10k base traces incl., then $2.50/1k base (14-day retention) or $5.00/1k extended (400-day) | 30k traces → $39 + $50 = ~$89/mo on base traces |
| Observability + evals | Langfuse Core | $29/mo, 100k units included, +$8 per 100k | ~900k units → $93/mo |
| Observability (alt.) | Langfuse self-hosted | "Open source and you can self-host it for free" | Your infra + ops time |
The Temporal line assumes ~20 billable actions per conversation (workflow start, activity executions, timers — check your own decomposition against their action definitions). That gives 30,000 × 20 = 600,000 actions, inside the Essentials tier's included million at $100/month.
The Langfuse line assumes ~30 ingested units per conversation trace — one per step plus nested spans and generations. That gives 30,000 × 30 = 900,000 units: the Core plan's $29 base plus eight additional 100k blocks at $8 each, so $29 + $64 = $93/month.
Total: $100 + $93 = $193 a month, about $0.0064 per conversation. The worked line uses Langfuse; LangSmith Plus prices the same 30,000 traces at about $89 a month on base traces (10,000 included, then $2.50 per 1,000 at 14-day retention, per the pricing page's FAQ) or about $139 on extended traces ($5.00 per 1,000, 400-day retention). Langfuse Core sits between those retention windows at 90 days of data access — so swap LangSmith into the spine and the total runs $189 to $239, depending on how long you need your traces. Both vendors publish free tiers (5k traces on LangSmith Developer, 50k units on Langfuse Hobby) that comfortably cover a pilot.
So if the question is "is anyone running AI agents in production reliably — what's your stack?", here is a straight answer. A minimal reliable production stack in July 2026: Temporal (or LangGraph over your own Postgres) for durable execution, Langfuse or LangSmith for traces and evals, and OpenTelemetry GenAI conventions as the wire format — about $193 a month at 1,000 conversations a day, model costs excluded.
The punchline is the ratio. If this spine costs $193 and your agent's model bill is thousands, tooling cost is never the real argument against production-readiness. The real cost is the discipline — and that one does not have a subscription tier.
The leading guides — we read each of the five below in full — are either uncited, selling a framework, or written at the altitude of principles. None gives you a test a framework can fail. That is not an accusation of bad faith — a vendor cannot be neutral about its own product — but it means a falsifiable, cross-framework checklist has to come from outside the framework vendors.
| Guide | What it does well | What it lacks |
|---|---|---|
| GoCodeo (Jul 2025) | Exact-title conceptual overview: ten readiness dimensions | No sources, no tests, no numbers anywhere |
| Diagrid (Jul 2025) | Five capability areas, cites external docs | Written to sell Dapr Agents; no pass/fail tests, no prices |
| Google Cloud (Feb 2026) | Framework-agnostic principles (published with Google product pointers); strong on trajectory-based evaluation and MCP/A2A interoperability | Principles-level: nothing falsifiable, no cost dimension |
| Anthropic (Dec 2024) | The honest foundation: patterns plus when not to build agents | Pre-dates today's framework landscape; no operational checklist |
| LangChain (Apr 2025) | Sharpest analysis of what frameworks cost you in control | A framework vendor analyzing frameworks; no dollar figures |
Assessment based on reading each guide in full, July 2026.
Our own stake, disclosed: Visione Edge designs and builds custom agent systems for clients, so we benefit when buyers take production-readiness seriously. The checklist is falsifiable precisely so you do not have to take our word for anything on it.
Teams whose workload is one model call, teams that have not yet earned the complexity, and teams hoping a framework substitutes for eval discipline. Anthropic's advice remains the correct default: "We suggest that developers start by using LLM APIs directly: many patterns can be implemented in a few lines of code." A framework you did not need is pure debugging surface.
There is a second, subtler cost. Harrison Chase — who sells a framework — concedes it openly: "The hard part of building reliable agentic systems is making sure the LLM has the appropriate context at each step," and framework abstractions can make it "really really hard to understand or control exactly what is going into the LLM at all steps." When the vendor's own analysis warns you about abstraction overhead, believe it.
Concretely, skip the heavy machinery when:
And a caveat on us: this checklist is calibrated for agents that take real actions in business systems. If you are running research prototypes or internal experiments, most of it is premature — we would tell you that on a call, too.
Run the six tests against your actual workload, not the vendor's quickstart. Wire the candidate framework to one real use case, then kill the process mid-run, deploy mid-conversation, park an approval for two days, scope one tool by its arguments, replay fifty real transcripts in CI, and trace yesterday's worst failure. A weekend of hostile testing beats a quarter of framework debates.
Score it honestly: six passes is production-ready for your workload. Four or five means you know exactly what you are building around — which is a fine, adult decision if it is written down. Fewer than four means you have a demo, and the failure arithmetic above says how that story ends at twenty steps.
If you want a second pair of eyes: book a 30-minute architecture review — we'll score your candidate stack against this checklist with you. No pitch, no deck; you keep the scorecard either way.

Three documented AI agent incidents — Replit, Google Gemini CLI, and a Cursor agent — the root cause of each, and the control that would have prevented it.

We opened primary sources behind six named AI agent case studies, a withdrawn Big Four report, and two independent benchmarks to see what actually holds up.

Automation runs a fixed, predefined workflow. An AI agent is given a goal and decides its own steps. A sourced, plain-English guide with a comparison table.
Book an architecture call — 30 minutes, no pitch