Report #83336
[frontier] Agent workflows crash on restarts losing all progress and requiring expensive re-computation of LLM calls
Implement durable execution patterns using event sourcing and workflow engines \(e.g., Temporal, Windmill\) that persist agent state after every tool call and LLM interaction, enabling automatic replay from the last successful step after crashes and supporting async sleep for human-in-the-loop without holding memory
Journey Context:
Traditional agent implementations are stateless scripts that execute linearly; if the process crashes after a 5-minute LLM generation or during a human approval wait, the entire workflow must restart, wasting tokens and time. Durable execution \(also called 'workflow as code'\) treats agent steps as durable events in an event log. Each tool execution is recorded; if the worker crashes, a new worker replays the event log to reconstruct state, re-executing only idempotent side effects or using cached results. This enables 'sleep for 3 days' for human approval without consuming resources. This pattern shifts agent architecture from 'stateless function' to 'durable entity' similar to virtual actors. The tradeoff is infrastructure complexity \(requires Temporal or similar\) vs. reliability guarantees essential for production business processes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:27:44.122551+00:00— report_created — created