{"id":"TIE-AGT-024","title":"Multi-hop delegation across agents","maturity":"documented","collection":"Agent identity","category":"Delegation and authorisation","complexity":"High","intent":"When agents call other agents and tools on a person's behalf, keep the person and every agent in the chain visible to each system, shrink authority at every hop, cap the chain's depth, and never forward a token to an audience it was not issued for.","summary":"Orchestrator agents hand work to specialist agents, which call tools and other agents. This pattern exchanges a new token at every hop that names the person and the full chain of agents, allows only pre-approved agent-to-agent paths, narrows scopes at each step and lets every resource decide on the whole chain.","problems":["Agent-to-agent calls","Privilege escalation through delegation","Confused deputy","Token passthrough","Accountability for AI actions","Cross-domain agent access"],"standards":["OAuth 2.0 Token Exchange (RFC 8693, nested act claim)","OAuth Identity and Authorization Chaining Across Domains (IETF draft)","OAuth Transaction Tokens (IETF draft)","Agent2Agent (A2A) protocol","OWASP Top 10 for Agentic Applications 2026 (ASI03 Identity and Privilege Abuse","ASI07 Insecure Inter-Agent Communication)"],"tags":["multi-agent","agent-to-agent","A2A","delegation chain","act claim","may_act","token exchange","transaction tokens","identity chaining","attenuation","orchestrator","sub-agent","depth limit","confused deputy"],"roles":["IAM architect","Identity engineer","Security leader","Platform engineering","AI engineering"],"industries":["Cross-industry","Financial services","Healthcare","Retail","Public sector"],"builds_on":["TIE-AGT-002","TIE-AGT-005"],"related":["TIE-AGT-003","TIE-AGT-015","TIE-AGT-025"],"authors":"Trevonix Innovation","reviewers":"Trevonix IAM architecture","version":"1.0","last_reviewed":"2026-11-24","published":"2026-11-24","og_image":"og-tie-agt-024.png","sections":{"summary":[{"type":"bullets","content":"At **every hop** the calling agent **exchanges** its token for a new one for the next audience. The new token names the **person** as subject and the **chain of agents** as actors.\nOnly **pre-approved paths** are allowed (which agent may call which), **scopes can only shrink**, and the **chain has a maximum depth**.\nEach resource decides on **the person, every agent in the chain and the requested action**, and logs the whole chain."}],"problem":[{"type":"paragraph","content":"Single agents are giving way to systems of agents: an orchestrator receives a request, plans, and hands parts of the work to specialist agents for research, finance or scheduling, which in turn call tools and sometimes other agents. Each hop is a chance to lose track of who the work is for, or to gain authority along the way.\n\nThe common shortcuts are dangerous. Agents forward the original user token to every downstream service, so any service that receives it can replay it elsewhere. Or each agent uses its own broad service credentials, so a specialist agent acts with far more authority than the person had, and the resource cannot tell whose request it is serving. When something goes wrong, nobody can reconstruct which agent asked which to do what."},{"type":"note","content":"OWASP's agentic risk list treats insecure inter-agent communication and identity abuse through delegation as separate top risks. Both are identity problems with identity answers.","title":"Why this matters"}],"use_when":[{"type":"bullets","content":"An orchestrator agent delegates to other agents that call APIs or tools on a person's behalf.\nAgents from different teams, platforms or organisations call each other.\nResources need to know both the person and the agent that is acting, through several hops."}],"avoid_when":[{"type":"bullets","content":"A single agent calls tools directly. Single-hop delegation (TIE-AGT-002) is enough.\nSub-agents are internal functions of one agent in one process with one identity. Treat them as one agent; do not invent identities for code modules."}],"forces":[{"type":"bullets","content":"**Traceability against token size.** Recording every hop grows tokens and logs.\n**Attenuation against flexibility.** Strictly shrinking authority can block legitimate plans that need a different tool later.\n**Standards against maturity.** Token exchange is standard; verifiable chain attenuation is still being drafted.\n**Speed against checks.** An exchange at every hop adds latency."}],"solution":[{"type":"paragraph","content":"Treat every agent-to-agent or agent-to-tool call as a new delegation. The caller presents the token it received (the subject token) and its own credentials to the authorisation server and asks for a token for the next audience with the scopes the next step needs. The authorisation server checks that this agent may act for this subject towards that audience, that the path is on the approved graph, that the depth limit is not exceeded and that the requested scopes are a subset of the incoming ones. It issues a token whose subject is still the person and whose act claim nests the chain, newest agent outermost. Resources validate audience and scopes, inspect the chain and apply policy to all of it."},{"type":"image","content":"A new token at every hop: subject stays the person, act claims record the chain, scopes shrink, depth is capped.","title":"Solution overview","media":"tie-agt-024-solution.png","alt":"Diagram. A person asks an orchestrator agent to prepare an expense report. Hop 1: the orchestrator holds token T1 with sub user-4821, aud orchestrator, scopes expenses.read expenses.write receipts.read. Hop 2: it exchanges T1 at the authorisation server for T2: sub user-4821, act agent orchestrator,"},{"type":"code","content":"{\n  \"sub\": \"user-4821\",\n  \"aud\": \"https://receipts.api.example.com\",\n  \"scope\": \"receipts.read\",\n  \"exp\": 1795600000,\n  \"act\": {\n    \"sub\": \"agt-receipts\",\n    \"act\": { \"sub\": \"agt-orchestrator\" }\n  }\n}","title":"Example token after two hops","language":"json"},{"type":"table","content":"Rule | Enforced at\nSubject stays the person (or the autonomous agent that started the task) | Authorisation server\nEach caller may only act for subjects it received tokens for | Authorisation server (may_act or equivalent policy)\nOnly approved caller-to-callee paths | Authorisation server, delegation graph\nScopes at each hop are a subset of the incoming scopes | Authorisation server\nMaximum chain depth (for example 3) | Authorisation server and resources\nEvery token has one audience; no forwarding | Resources reject other audiences\nResources decide on the whole chain | Resource or PDP\nChain recorded in every log entry | Gateways, resources","title":"Chain rules"},{"type":"numbered","content":"**Register agents and paths.** Every agent has its own identity (TIE-AGT-001). Record which agents may call which other agents and tools: the delegation graph.\n**Exchange at each hop.** The caller requests a token for the next audience with the incoming token as subject and its own identity as actor.\n**Check and narrow.** The authorisation server applies the chain rules and issues a token with nested act claims and narrower scopes.\n**Authenticate hop by hop.** Agent-to-agent protocols such as A2A authenticate each hop at the transport layer; use OAuth tokens from this exchange rather than API keys.\n**Decide on the chain.** Resources (or their PDP) check the person's rights, each agent's rights and the depth.\n**Propagate context inside a domain.** Within one trust domain, transaction tokens can carry the immutable subject and actor context through internal services without re-exchanging at every microservice.\n**Cross domains deliberately.** Between organisations, chain through each domain's authorisation server (identity chaining) instead of trusting foreign tokens directly.","title":"How it works"},{"type":"tip","content":"Draft standards are emerging for verifiable attenuation, where each hop's narrowing is signed and checkable by the final resource. Until they mature, enforce narrowing at your authorisation server and record the chain in logs.","title":"Watch this space"}],"design_rules":[{"type":"numbered","content":"**New token per hop.** Never forward a token to another audience.\n**The person stays the subject;** agents are actors.\n**Approved paths only.** A delegation graph, not open calling.\n**Authority only shrinks.**\n**Cap the depth.**\n**Resources see and judge the whole chain.**\n**Log the chain, not just the last caller.**\n**Cross organisations through each side's authorisation server.**"}],"anti_patterns":[{"type":"table","content":"Anti-pattern | What goes wrong\nForwarding the user's token to every agent and tool | Any recipient can replay it wherever its audience allows\nSpecialist agents use their own broad service credentials | They act with more authority than the person; the person disappears from the record\nOnly the last caller is logged | Investigations cannot reconstruct who asked whom\nUnlimited agent-to-agent calling | A manipulated agent recruits others to reach new systems\nScopes widen downstream | A read request becomes a write at hop three\nAPI keys between agents | No subject, no chain, no revocation per person"}],"benefits":[{"type":"bullets","content":"Every system knows whose request it is serving and which agents touched it.\nAuthority cannot grow along the chain.\nUnexpected agent-to-agent paths are refused before they start.\nComplete chains in logs for investigation and audit."}],"costs":[{"type":"bullets","content":"A token exchange at each hop, with latency and authorisation server load.\nMaintenance of the delegation graph as agents are added.\nResources and PDPs that understand nested actor claims.\nSome products do not yet emit nested act claims; you may need custom claims or logs."}],"tests":[{"type":"table","content":"Test | Expected result\nOrchestrator calls an approved specialist | Exchange succeeds; token has sub = person and act = orchestrator\nSpecialist calls an approved API | Token has nested act with both agents; API permits within the person's rights\nSpecialist calls an agent or API not on the graph | Exchange refused\nSpecialist requests a scope the incoming token did not have | Exchange refused\nChain deeper than the limit | Exchange refused\nSpecialist forwards its incoming token to the API | API rejects: wrong audience\nLog for an API call | Shows the person and every agent in order"}],"maturity_notes":[{"type":"paragraph","content":"**Documented.** Trevonix has built single-hop delegated token exchange and gateway enforcement on Ping Identity in lab tenants (November 2026); multi-hop chains as described here are written from standards and vendor documentation and have not yet been lab-tested."},{"type":"warning","content":"Identity chaining, transaction tokens and chain-attenuation proposals are IETF drafts in November 2026, and agent-to-agent protocols are evolving quickly. Check the revision each product implements.","title":"Drafts in motion"}],"faq":[{"type":"faq","content":"Yes. RFC 8693 defines the act claim and allows it to nest, so a token can record that one agent acted for another, which acted for the person. Few products expose controls over nesting yet, so test what your authorisation server emits.","title":"Is nesting act claims standard?"},{"type":"faq","content":"Three is a practical default: orchestrator, specialist, tool. Deeper chains are hard to reason about and to explain to auditors; require an explicit exception for them.","title":"How deep should chains be allowed to go?"},{"type":"faq","content":"A2A defines how agents discover each other and exchange tasks; each hop is authenticated at the transport layer with the scheme the remote agent's card declares. Use OAuth with the exchanged tokens from this pattern as that scheme.","title":"How does this work with A2A?"}],"references":[{"type":"bullets","content":"[RFC 8693: OAuth 2.0 Token Exchange](https://www.rfc-editor.org/rfc/rfc8693)\n[IETF draft: Transaction Tokens for Agents](https://datatracker.ietf.org/doc/html/draft-araut-oauth-transaction-tokens-for-agents)\n[IETF draft: Delegation Chain for OAuth 2.0](https://datatracker.ietf.org/doc/draft-liu-oauth-chain-delegation/)\n[Okta Developer: Set up AI agent token exchange (agent-to-agent connections)](https://developer.okta.com/docs/guides/ai-agent-token-exchange/main/)\n[PingOne: AI agents and token exchange for delegation](https://docs.pingidentity.com/pingone/ai_agents/p1_ai_agents.html)\n[Agentic AI Foundation: Designing secure authorization across A2A and MCP](https://aaif.io/blog/designing-secure-authorization-across-a2a-and-mcp)"}]},"recipes":{"ping":{"status":"documented","product_name":"PingOne or Advanced Identity Cloud token exchange with PingGateway","summary":"Token exchange per hop with act claims added by mapping, may_act-based path control and gateway enforcement. Written from Ping documentation and Trevonix single-hop lab work.","last_verified":"2026-11","blocks":[{"type":"numbered","content":"Register each agent as an AI agent identity in PingOne or Advanced Identity Cloud.\nConfigure token exchange so each agent can exchange the token it received for a token to the next audience. PingOne does not include the act claim by default; add it with an attribute mapping that uses an advanced expression.\nModel the delegation graph in the may_act data or in your exchange policy so only approved callers can act for a subject towards a given audience.\nEnforce audience and inspect the act chain at PingGateway or in Ping's authorisation engine before forwarding to resources.","title":"Configure (Ping)"},{"type":"bullets","content":"PingGateway's built-in token exchange filter performs impersonation exchanges; for delegation with actor tokens, call the authorisation server's token endpoint from a script or have the agent perform the exchange itself.","title":"Gotchas"}]},"okta":{"status":"documented","product_name":"Okta for AI Agents with agent-to-agent resource connections","summary":"Agent-to-agent connections let one registered agent call another as a protected resource, with per-path scopes. Written from Okta documentation; not lab-tested by Trevonix for chains.","last_verified":"2026-11","blocks":[{"type":"numbered","content":"Register each agent in **Directory > AI agents** with a public key.\nFor each approved agent-to-agent path, add an **agent-to-agent** resource connection on the calling agent, so it can invoke the other agent as a downstream resource protected by a custom authorization server.\nDefine custom scopes per downstream agent and grant only the scopes the path needs.\nFor agent-to-tool hops, use authorization server or MCP server connections; Okta performs the token exchange per connection.\nLog the chain from Okta's System Log events and your gateway logs, as tokens may not carry nested actor claims.","title":"Configure (Okta)"}]},"entra":{"status":"documented","product_name":"Microsoft Entra Agent ID with on-behalf-of","summary":"New token per hop via on-behalf-of; chain recorded in logs because tokens do not nest actors. Written from Microsoft documentation.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"Microsoft Entra agent identities can receive access tokens addressed to them and use the on-behalf-of flow to call downstream APIs, so each hop gets a new token for the next audience. Entra's tokens identify the user and the calling application rather than a nested chain of actors, so record the chain in your own logs (for example with a correlation ID and the caller's agent ID at each hop) and restrict which agents can call which APIs through API permissions and Conditional Access for agents."}]},"saviynt":{"status":"documented","product_name":"Saviynt Agent Access Gateway","summary":"Distinguishes direct, on-behalf-of and agent-through-agent calls and enforces tool policies. Written from Saviynt's published material.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"Saviynt's Agent Access Gateway can determine whether an agent is acting on its own, on behalf of a person, or through another agent, and apply policies to tool access accordingly. Use it to block calls outside the approved delegation graph."}]},"misc":{"status":"documented","product_name":"Transaction Tokens and A2A","summary":"Draft standards for propagating agent context inside a domain, and agent-to-agent transport authentication.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"Within one trust domain, OAuth Transaction Tokens (IETF draft) carry immutable subject and agent context through internal service graphs, and a draft extension adds agent context for multi-agent flows. For agent-to-agent communication, the A2A protocol authenticates each hop with the security scheme declared in the remote agent's card."}]}},"slug":"tie-agt-024-multi-hop-delegation-across-agents","updated_at":"2026-11-24T18:10:12.154Z","url":"https://exchange.trevonix.com/patterns/tie-agt-024-multi-hop-delegation-across-agents","markdown_url":"https://exchange.trevonix.com/patterns/tie-agt-024-multi-hop-delegation-across-agents.md","publisher":"Trevonix","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}}