Whenever you're ready, walk me through how you'd approach this.
How do you handle error recovery when an agent fails to complete a sub-task in a chain?
Explain a practical recovery design covering failure detection, retries, timeouts, checkpointing, idempotency, fallback behavior, and how the chain reports partial or final failure. Keep the approach suitable for distributed agent workflows and distinguish transient failures from permanent failures.