Delegating User Permissions to an Agent
In this article
- Derive the narrow capability an agent gets for one task (action, resource, amount cap, tenant, expiry) from the task, not from the user's role.
- Explain monotonic narrowing and reject a capability that asks for more than the user holds.
- Enforce the capability in the tool dispatcher with a deny-by-default check that returns a reason code, whatever the prompt says.
- Recognise privilege creep, and name one real downscoping mechanism, Google Cloud Credential Access Boundaries.
- Terms defined here: delegated capability, monotonic narrowing.
Overview
A support lead asks an AI agent to look at one order and refund 30 if the parcel arrived damaged. She may do far more: read every order in her company's account, refund up to 5,000. Should the agent get all of that, because she is the one asking? You will see why not, how to cut her rights down to a small permission built from the task itself, and how a few lines of code refuse everything outside it, even calls she could make herself.
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
- Alice's rights and the task's needs
- Deriving the capability
- It can only get narrower
- The dispatcher decides
- Seven calls, predicted then run
- The same narrowing on Google Cloud
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions