Action Receipts and Recovery States
In this article
- Show an action's receipt in one of four states (pending, uncertain, confirmed, failed) and keep it uncertain until reconciliation settles it.
- Put the external id, the evidence and the next step on every receipt, and offer retry only when the reconciliation result makes it safe.
- Summarise a run canceled midway with what happened, what did not, and the receipt for each committed write, under its own final status.
- Decide for each action whether Undo is honest, absent, or a new action with its own receipt.
Overview
An agent sends a refund to the payment provider, and then the connection drops. No answer comes back. The money may have moved, or it may not have, and the screen must say something right now. "Done" could be a lie. "Failed" could be a worse one, because it invites the user to press Retry and pay the customer twice.
Here you learn what an honest screen shows after an action: a receipt that says pending, uncertain, confirmed or failed, with the evidence and the next step for each. You will also write the summary for a run that was canceled halfway, and decide which actions deserve an Undo button and which never do.
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
- Why neither Done nor Failed fits
- Four states for one action
- The O-2042 panel, moment by moment
- When retry is safe
- A run that was canceled midway
- Which actions get Undo
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions