Report #78450
[architecture] Agent A loses context and reprocesses a request after crashing, but partial side effects from the first attempt have already occurred
Implement Durable Execution using a workflow engine \(e.g., Temporal, Cadence, or Windmill\): wrap the agent's logic in a 'workflow' function that records every state change and external call in an append-only event history; upon crash and restart, the engine automatically replays the history to reconstruct the state without re-executing side effects \(idempotent replay\); ensure all non-deterministic operations \(LLM calls, UUID generation\) are wrapped in 'activities' that are recorded once and replayed verbatim.
Journey Context:
Without durable execution, an agent crash during a multi-step task \(e.g., 'check inventory, charge card, send email'\) leaves the system in an unknown state \(card charged but email not sent\). Manual recovery or 'saga compensations' are error-prone. Durable execution engines \(based on the 'Event Sourcing' pattern\) treat the workflow code as a deterministic state machine; they handle retries, timeouts, and crashes automatically. The key insight is separating 'workflow' \(orchestration logic\) from 'activities' \(side effects\). This is distinct from simple 'try/catch retry' because it survives process termination and maintains exact-once semantics for state transitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:16:33.669928+00:00— report_created — created