Binding Approval to the Exact Action
In this article
- List the fields an approval must cover so it names one exact action.
- Check a tool call against its approval just before the write, and block it when a bound field changed.
- Explain why a material change opens a new approval request instead of reusing or editing the old one.
- Tell a per-call approval from a sticky "always approve" and say why the sticky one approves the tool, not the action.
- Terms defined here: approval binding.
Overview
A team lead looks at a refund request and clicks Approve. Ten seconds later the system sends money. Was the refund that left the bank the same one the team lead read? If nothing checks, you do not know. The amount could have grown by a digit, or the refund could have landed on a different order, and the click would still count as a yes.
The fix is to treat a yes as a promise about one exact call: these arguments, from this reviewer, under this approval id. Here you learn to list the fields an approval must cover, check a call against them just before it runs, block a call that changed, and explain why a tool-wide "always approve" covers far more than one refund.
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 a yes covers
- Why a call changes after approval
- Store, recompute, compare
- Two mutations and a note
- Per call or sticky
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions