Report #63040
[frontier] How do you prevent agent state loss on crashes during long-running tasks?
Wrap agent steps in Temporal workflows with explicit versioning; persist state after each tool execution using Temporal's deterministic replay for fault tolerance and time-travel debugging.
Journey Context:
Agents running for hours \(research, data processing\) lose all progress on container crashes or spot instance termination. Simple checkpointing fails because agent logic is non-deterministic \(LLM temperature, tool timing\). Temporal provides deterministic replay: it logs every external effect \(tool call, LLM response\) to event history; on recovery, it replays the workflow code against the log, skipping side effects. This enables 'time-travel debugging' for agents—rewind to any step and fork execution. Tradeoff: requires writing workflow code in Temporal's specific style \(idempotent activities\); adds infrastructure complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:17:33.035147+00:00— report_created — created