Signal Over Noise

· 5 min read

What Happens When Your Agent Crashes on Step 37?

We talk about agent failure like it is hallucination. Most of the time it is not. Most of the time the agent just stops.

Nobody runs an agent on a long horizon and watches it die at step 37 and thinks the problem was the model. You watch it die at step 37 and you think the problem is that you picked the wrong agent framework, or you structured the prompt wrong, or the tool definitions are ambiguous, or the model got confused. You spend two days rewriting the system prompt and three days redefining the tool schemas and a week instrumenting the trajectory to figure out where it went off the rails. And sometimes the agent actually did get confused, and the prompt rewrite helps, and the more precise tool schema helps. But sometimes, more often than anyone writing agent-framework marketing copy wants to admit, the agent did not get confused. It just crashed. The process died. The runtime panicked. The API call timed out after a three-second retry window and the framework had no durable retry policy, so the trajectory was abandoned mid-flight and the half-finished work drifted into the ether. You spend a week debugging the prompt when the problem was a network blip and a framework that does not know how to survive one.

The hallucination discourse has consumed so much oxygen that it has made people forget the older, dumber failure mode that every distributed-systems engineer learned the hard way two decades ago: long-running processes crash. They crash because the machine runs out of memory. They crash because the network partitions. They crash because the LLM provider returns a 503 after 90 seconds of silence and the HTTP client in the framework you picked does not have a retry budget. They crash because the Python process hits the OOM killer when the conversation history grows past 200 turns and nobody thought to checkpoint intermediate state. They crash because somebody deployed a new version of the tool server while the agent was mid-trajectory and the framework's tool-calling stub got a connection-refused error and raised an unhandled exception. None of these failure modes has anything to do with the model. All of them are infrastructure problems that we solved for web servers twenty years ago and forgot to pack when we moved to agents.

The blindness is baked into how agent frameworks are marketed. Every framework demo shows a short trajectory. Three steps, five steps, maybe ten. The agent searches the web, finds a document, summarizes it, writes an email, done. The demo never runs for forty-five minutes. The demo never spans a hundred tool calls. The demo never has to survive a Kubernetes pod restart. The demo is designed to show you how easy it is to build an agent, and building an agent is easy. Building an agent that does not lose its work when something outside your control fails is hard, and the marketing does not talk about it because the frameworks do not solve it.

LangChain will retry an LLM call if it fails. Most frameworks will. But retrying one call is not the same as surviving a crash. If the process dies entirely, the retry policy is gone with it. The agent's state, the conversation history, the partial results from the last three tool calls, the intermediate reasoning that was not persisted anywhere, all of it evaporates. When the process restarts, the agent has no memory of what it was doing. The framework does not checkpoint. It does not journal. It does not give you a way to replay from the last known-good state. It assumes the process will stay alive, and when it does not, you start over from step one.

The cost of starting over is not just the wasted inference tokens. It is the compound damage to trust. If an agent fails silently on a long task and nobody notices for six hours, the downstream consumers of whatever it was building get stale data, and the team that was supposed to act on the agent's output misses a window, and the person who discovers the failure six hours later has to manually reconstruct what the agent was supposed to have done and whether any of its partial work is salvageable. The cost of a crash at step 37 is not the cost of running steps 1 through 37 again. It is the cost of discovering the crash, understanding what happened, and deciding whether to trust the output of a system that has now proven it can fail without telling you.

The tools that solve this problem exist, and they are not new. Temporal has been doing durable execution for years. It journals every step, checkpoints every state transition, and replays from the last checkpoint when a worker dies. Inngest does the same thing with a lighter footprint and a better developer experience for function-level workflows. Restate, which we will cover tomorrow, builds journaled handlers where every LLM call, every tool invocation, and every retry is crash-safe by default, and it does it without asking you to adopt a new programming model. Dapr Agents, on Wednesday, wires durable state and workflow primitives directly into the agent definition so the agent persists itself as a distributed actor on your existing Kubernetes cluster. These tools are not obscure. They have production users and active maintainers and shipping releases within the last three weeks. They just do not call themselves agent frameworks, so the agent ecosystem does not talk about them.

The durability problem is a category error. Agent frameworks are built by AI researchers and ML engineers who think of agents as reasoning problems. Durability is an infrastructure problem, built by distributed-systems engineers who think of agents as long-running processes with state. The two groups do not talk to each other enough, and the gap is where agents die at step 37. The fix is not a better model. It is not a better prompt. It is not a more expressive tool-calling schema. It is a runtime that checkpoints state, journals every operation, and replays from the last checkpoint when the process restarts. The teams that figure this out will ship agents that run for hours and survive. The teams that do not will keep debugging prompts for crashes that were never the model's fault.

The list of things that can kill your agent mid-trajectory is long and boring. An LLM provider rate limit. A tool server that restarts during a rolling deploy. A Python process that grows its heap past the container limit. A DNS resolution failure on the third retry attempt. A Kubernetes node that gets preempted. A cloud region that has a bad hour. If your agent framework treats any of these as terminal, your agent is not reliable. It is lucky, and luck runs out faster than you think on trajectories that take an hour. The frameworks that handle this well do not make a big deal about it because the mechanism is old news. Durable execution was solved for microservices. The frameworks that handle it poorly do not mention it at all, because acknowledging the problem would mean admitting they left out the one thing that makes long-running processes trustworthy.

The durability arc we are kicking off this week is about closing that gap. Over the next six days, we will walk through the tools that treat agent execution as an infrastructure problem rather than a reasoning problem. Restate, which journals every step and makes crash recovery a property of the runtime. Dapr Agents, which treats agents as durable distributed objects on a cluster you already run. AgentScope, which was built distributed-first from Alibaba's internal infrastructure. Motia, which wires agents together across languages on a shared event bus. These tools are not competing with LangGraph on model support or prompt ergonomics. They are competing on something more fundamental: whether your agent finishes what it starts.

If you are building agents that run for more than thirty seconds, the question you need to be asking is not which framework has the best prompt templating. It is what happens when the process dies at step 37. If your framework does not have an answer, you do not have an agent. You have a script that might finish.

Discussion

Leave a comment

We’ll email you a link to confirm. Comments appear after review.

Get the next post by email