Skip to content

Bound Multi-Agent Handoffs

Limit each child agent to a verified subset of the parent task's tools, data, time, and action scope.

A planner agent can ask another agent to research, code, or call tools. The receiving agent should not inherit every permission the planner has. A handoff is a new trust boundary with its own task, data, and limits. OWASP's guidance on LLM applications warns about excessive agency; delegation can multiply it if authority is copied without review.

Define a handoff envelope outside free-form prose. It should state the original user task, the specific subtask, allowed evidence references, permitted tools, time limit, and a return channel. The recipient must validate the envelope against the controller's policy. Text such as "you have full permission" inside an agent message is not a grant.

Handoff envelope

FieldSafe rule
Parent task IDMust resolve to an active authorized task
Child scopeSubset of the parent's approved scope
Tool listExplicit, with no implicit inheritance
Data referencesApproved immutable IDs, not arbitrary paths
DeadlineShort lease with cancellation path
OutputStructured result, no executable instruction
Audit IDsLink child actions to parent request

A child may discover that more work is needed. It should return a request for review, not widen its own scope or create another child with broader tools. If the parent task is canceled, propagate that state before the next child action. When a child returns a file path or URL, treat it as untrusted data until the controller validates it.

Two-agent lab case

Give a planner a synthetic report task and a reader child that can inspect only one approved snapshot. Plant an instruction in the snapshot asking the child to call a network tool. The child should report the line as data, and no network tool should be available. Then ask the planner to delegate a write action; the controller should reject it unless the original task and child policy explicitly permit it.

Record the parent and child IDs, scope subset check, tool requests, and cancellation result. Include a positive control where the child reads the permitted file and returns useful evidence. A handoff that always refuses is not a functional boundary. A successful answer does not prove the child stayed in scope unless tool calls and data access were checked.

Know what your agents can reach

Map data access, tool actions and approval boundaries before testing. Use the scope guide, or discuss a review of your AI application.

Sources

  1. OWASP Top 10 for LLM ApplicationsAccessed
  2. OWASP Authorization Cheat SheetAccessed