Retries and Replanning After Resume
In this article
- Say which retry counters and observations a paused run must keep in its stored state, and why each one survives a resume.
- Decide retry, replan, stop or escalate for a failure after a resume from the attempt count, the observation age and the plan version.
- Show why a resume that resets the attempt count can loop forever across restarts.
- Explain what a replan keeps from the old plan and what it changes.
Overview
An agent run that waited six hours for a person wakes up and its next call fails. Should it try the same call again, or think again? The answer depends on things the run knew before the pause: how many times it already tried, how old its facts are, and which version of its plan it is following. Take a made-up support agent's run that refunds 49.00 EUR on order 1042 after a manager approves it, resumed 6 h later with its run state. By the end you can read that stored state and classify four failures after the resume as retry, replan, stop or escalate, and you can show why a resume that forgets its attempt count never stops.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What survives a resume
- Retry or replan
- Four failures after the resume
- The decision in code
- A counter that resets
- What a replan keeps
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions