Recovering from Failed Actions
In this article
- Sort a failed action into one of five failure classes from what the error and the run tell you.
- Choose retry, replan, verify, compensate or escalate for each class, and say why.
- Spot a proposed retry that could repeat an effect you cannot undo, and say what to check first.
- Terms defined here: uncertain outcome, compensation, failure class, transient fault, plan, replan, policy denial.
Overview
Your support agent sends a refund. The connection drops before the reply comes back. Did the customer get their money? You do not know, and the obvious move, trying again, is exactly the one that can pay them twice.
Failures in an agent run are not all alike. A slow server, a call with a missing value, a fact that went out of date, a rule that says no, and a call whose result never arrived each need a different answer. By the end you can sort a failed action into one of those five groups, pick the matching response, and refuse any retry that could repeat something that cannot be taken back.
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
- The refund that may have happened
- Check before you act again
- Five failures, five answers
- Stale state and a new plan
- A rule says no
- The classifier in code
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions