Handling agents that crash mid-task: the hard part is the unknown outcome across the network

Responsible-Dare5139 · reddit · 2026-10-16

A discussion of the hardest agent crash case: an external API created a record, but the worker died before saving the response, so durable state says the call never completed. Blind restart risks inconsistency; resuming at that tool call risks duplicates. The author's approach: a stable operation ID that survives retries, idempotency keys where supported, result lookup for uncertain outcomes, and handing the run to human review when the third-party API offers neither dedup nor reconciliation. Durable runtimes (e.g. Diagrid Catalyst's Dapr-based approach) handle progress persistence, but the interesting boundary is the contract between the tool and the external service, not whether the framework has a resume method.

Original post →

More from coding & agent

coding & agent channel →