Approval Gates for Consequential Actions
In this article
- Explain why an instruction in the prompt cannot approve an action, and why a "yes" typed in chat is not an approval.
- Walk an approval request through its five steps, from the proposed call to the released refund.
- Check a decision against the four conditions that make it valid, and deny everything else.
- Write and test a small gate that keeps a refund tool uncalled until a valid decision exists.
- Terms defined here: approval gate, pending approval, approval decision, default deny.
Overview
An AI support agent in an online shop offers a customer a 49.00 EUR refund. The customer types "yes, go ahead", and the agent calls the refund tool. Was that refund approved? The shop's rule sends refunds above 40.00 EUR to a staff member, and no staff member saw this one. The "yes" felt like consent, yet nothing in the system could check it.
Here you build the piece that closes this hole: a gate in your own code that holds the refund until a valid staff decision exists. You follow one request from proposal to payout, test the gate against five cases, and see the same idea in the OpenAI Agents SDK.
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 a prompt cannot approve
- Approval as a state
- What makes a decision valid
- The gate in forty lines
- The same state in the OpenAI Agents SDK
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions