
The 808 Books / Five Floors Up / Chapter 3
Delegation, scopes and short-lived access
When an agent acts for someone, the system on the other end should know three things: who asked, which agent is acting, and exactly what it's allowed to do right now.
The short version
- When an agent acts for a person, use proper delegation that records both of them, not the person's raw login.
- Every step down a chain of agents should narrow the access, never widen it.
- Give agents no standing access. Issue short-lived, narrowly scoped tokens when a task starts, and take them back when it ends.
By the numbers
8 security gapsin today's identity standards for agents, identified by the OpenID Foundation's AI identity group in October 2025 (Security Boulevard)
Thousandsof authorization requests users will face as agents spread, creating risk from reflexive approval, per the same whitepaper (Biometric Update, quoting OpenID Foundation)
Short-livedaccess tokens are what the Model Context Protocol tells authorization servers to issue, to limit the damage from leaked tokens (MCP specification)
01 Two ways an agent acts
An agent either acts for itself (a nightly job that reconciles invoices) or for someone (an assistant that books a meeting for the person who asked). Both are fine. The mistake is mixing them up, and it's the mistake I spend the most whiteboard time on.
| Mode | Whose authority | Token should show | Example |
|---|---|---|---|
| For itself | The agent's own, from its identity card | The agent | Nightly reconciliation, monitoring |
| For someone | The person's, narrowed for this task | The person and the agent acting for them | Booking travel, answering a tenant |
For the second, standard OAuth tools already exist. Token exchange (RFC 8693) is a temporary permission slip traded in for a narrower one. It lets a service swap a person's token for a new one aimed at a specific downstream system, and the new token can record both the person and the acting agent (IETF, RFC 8693). Microsoft's on-behalf-of flow does the same job in its ecosystem. If that sounds dense, here's the plain version I give executives: it's the difference between lending someone your house key and writing them a note that says "let Sam into the kitchen, today only." The receiving system sees "the agent, acting for Priyanka", not just "Priyanka", and can apply rules to each.
The OpenID Foundation's October 2025 whitepaper makes the same call: treat agents as first-class identities, with proper lifecycle and accountability, and build on existing standards rather than proprietary schemes (OpenID Foundation).
The rest of this chapter is for Pro members
Keep reading with Pro, C$10 a month.
You’ve read the first section. Pro opens every chapter of all seven 808 Books, their print editions as PDFs, and every guide in the library.
- 02 Narrow at every hop
- 03 No standing access
- 04 Consent that means something
- The exercise and template
- The chapter check
- Sources