Report #78197
[frontier] Long-running agent workflows fail catastrophically on transient errors
Orchestrate agent steps with Temporal workflows, using async activities for LLM calls and saga patterns for compensating actions when partial failures occur
Journey Context:
Agent workflows chain multiple LLM calls and tool executions over minutes or hours. If step 5 of 10 fails, naive retry logic can double-charge APIs or leave systems inconsistent \(e.g., booked flight but not hotel\). Temporal provides durable execution: workflow code is persisted after every step, and processes can crash and resume without losing progress. LLM calls are wrapped in Activities with configurable retry policies \(exponential backoff, non-retryable errors\). For irreversible actions \(payments, bookings\), implement saga compensations: if hotel booking fails after flight booked, automatically cancel flight via compensation activity. This turns fragile scripts into reliable systems that survive restarts and maintain consistency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:50:53.777784+00:00— report_created — created