
Martin Fowler · 25 min readSoftware architecture
Long-horizon agents and durable execution
Long‑horizon agents automate tasks that span days or weeks by iterating a goal‑oriented loop with tools, state, and a model. Durable execution patterns recover from failures such as timeouts, retries, and state changes, allowing the agent to persist across interruptions. This enables businesses to automate complex, unpredictable workflows that were previously manual.
- Use a tool list with allowed checks to enforce business rules.
- Implement durable execution with retries, timers, and state persistence.
- Let the model decide recovery actions based on failure context.