Verified Is Not Trusted: A Five-Step Bot Accountability Loop
A five-step loop for treating bots as accountable actors: verify identity, honor opt-out preferences, measure sustained behavior, band trust, and bound blast radius.
Auth0Andrea ChiarelliExplainer
The post distinguishes the On-Behalf-Of pattern from the OAuth 2.0 Token Exchange standard (RFC 8693) and Microsoft’s implementation, warning against forwarding a user’s token downstream as it breaks the audience trust boundary. Token Exchange uses a subject_token for the user’s identity and an optional actor_token to record the calling service, with a chainable act claim for multi-hop calls. Microsoft’s implementation uses a jwt-bearer grant, only works for user principals, and can mint SAML assertions for legacy integrations, but the resulting token must never be relayed back to the client. For AI agents, neither OBO nor Token Exchange handles explicit user delegation, so integrators must log act claims, scope tokens to specific tasks, issue per-agent credentials, and build audit trails. The post notes the confused deputy problem resurfaces with agents, and regulatory transparency requirements around automated decision-making are already in effect.
The post clarifies the distinction between the On-Behalf-Of architectural pattern, the OAuth 2.0 Token Exchange standard (RFC 8693), and Microsoft’s vendor-specific implementation. It explains the delegation problem where a middle-tier service needs to act on behalf of a user without forwarding the user’s original token. The post then discusses how AI agents introduce new complexity because neither OBO nor Token Exchange was designed to handle explicit user delegation to an agent, and provides practical guidance for building audit trails and scoping tokens.
Forwarding a user’s original access token to a downstream service breaks the trust boundary because the token’s audience is the middle-tier API, not the downstream one.
OAuth 2.0 Token Exchange (RFC 8693) formalizes the On-Behalf-Of pattern using a subject_token for the user’s identity and an optional actor_token to record the calling service, with a chainable act claim for multi-hop calls.
For AI agents, neither OBO nor Token Exchange handles explicit user delegation, so integrators must log act claims, scope tokens to specific tasks, issue one credential per agent per purpose, and build audit trails now rather than waiting for standards to settle.
The On-Behalf-Of pattern is an architectural concept for delegation, while OAuth 2.0 Token Exchange (RFC 8693) is the IETF-ratified standard that implements that pattern in an interoperable way. Microsoft's implementation is a third, non-standard variant that predates the standard.
Forwarding the original token is unsafe because the token's audience is the middle-tier API, not the downstream one. This breaks the trust boundary the token was scoped to, and the downstream API cannot verify the user's authorization.
Neither OBO nor Token Exchange was designed for explicit user delegation to agents. Integrators should log the act claim, scope tokens to specific tasks, issue one credential per agent per purpose, and build audit trails now to meet regulatory transparency requirements.
Summaries are generated from the original by a language model. Check the original before relying on it.
See the idea
A five-step loop for treating bots as accountable actors: verify identity, honor opt-out preferences, measure sustained behavior, band trust, and bound blast radius.
In B2B, most of the engineering lives in the seams: the tenancy boundary, the integration surface, state sync, and the cross-cutting trust rail. This diagram maps those four layers end to end.
Keep reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
One useful email. Unsubscribe anytime.