Check your EU AI Act status

    Get a free risk tier assessment and personalized gap checklist in 5 minutes.

    Take the Assessment
    Technical Guide

    Agent Delegation Depth: Limits and Runtime Enforcement

    Agent delegation depth is the number of sequential hops a task travels as one agent invokes a sub-agent or tool, which in turn invokes another, before the chain terminates. Left unbounded, each hop can extend the reach of the original permission grant. Runtime enforcement addresses this by tracking depth as a first-class property of every delegated call and rejecting or halting execution once a defined limit is reached, rather than relying on agents to self-limit their own behavior.

    What Delegation Depth Means in Practice

    In a multi-agent system, an agent rarely completes a task alone. It calls a tool, hands a sub-task to another agent, or invokes a downstream service that itself may call further agents or tools. Delegation depth is the count of these sequential hops from the originating request to the final action taken on a resource. A depth of one means the initiating agent acted directly. A depth of four means the original request passed through three intermediate agents before the action occurred.

    This is distinct from breadth, which describes how many sub-agents or tools are invoked in parallel at a single hop. A system can have shallow depth with wide breadth, or deep chains with a single path at each step. Both dimensions matter for security, but they require separate controls, and conflating them leads to policies that cap the wrong thing.

    In architectures built around protocols that standardize how agents discover and call tools or other agents, delegation happens through structured invocation rather than ad hoc scripting. This makes depth a measurable, addressable property of the system rather than an emergent behavior that is only visible after the fact in logs.

    Why Unbounded Delegation Chains Create Risk

    The core problem with unbounded delegation is that permission and trust do not naturally shrink as a chain extends. An agent granted access to a customer database, for example, may delegate a lookup task to a sub-agent, which may delegate formatting to another agent, which may call an external tool to send the result somewhere. If each hop inherits the same scope as the originating agent without re-evaluation, the effective attack surface at the end of the chain is as broad as the surface at the start, even though the agents furthest from the original request were never explicitly granted that access.

    This creates three concrete problems for security engineers:

    • Implicit privilege propagation: nobody explicitly decided that the fourth agent in the chain should be able to read customer data, but the chain structure allowed it.
    • Difficult accountability: an action taken at hop four may have no direct record connecting it back to the human or system that initiated the original request at hop one.
    • Pivot risk: a single compromised or misconfigured agent anywhere in the chain can extend an attacker's reach through legitimate delegation pathways rather than through an external exploit.

    These risks compound in production systems where delegation chains are not fixed at design time but form dynamically based on the task at hand, making it impractical to reason about every possible chain in advance.

    Where Runtime Enforcement Fits

    Static review of agent configurations cannot catch delegation depth problems, because the actual depth of a chain is a runtime property that depends on the specific task, the agents involved, and the decisions each agent makes as it executes. Enforcement therefore needs to happen at the point where delegation actually occurs, not only during design or deployment review.

    A runtime enforcement point sits between an agent's decision to delegate and the execution of that delegation. At this point, the system can inspect the current depth of the chain, evaluate whether the next hop would exceed a configured limit, and either allow, deny, or require additional approval for the call. This requires that depth be tracked and carried forward as metadata attached to the task itself, similar to how a trace ID follows a request through a distributed system, so that each new hop knows how many hops preceded it.

    Enforcement at this layer also creates a natural point for logging. Because every delegation passes through the same checkpoint, that checkpoint can record which agent initiated the call, what permission scope was requested, and what depth the chain had reached, producing an audit trail that does not depend on each individual agent implementing its own logging correctly.

    Setting Practical Limits

    There is no universal correct value for maximum delegation depth. The appropriate limit depends on how the system is designed and what legitimate workflows require. A customer support agent that delegates to a single specialized lookup agent needs a much shallower limit than a research workflow that legitimately chains several analysis agents together.

    What matters more than the specific number is that a limit exists and is enforced consistently, and that permission scope is reassessed at each hop rather than passed through unchanged. A well-designed hierarchy narrows scope as it descends: the agent at hop three should generally have access to less, not the same amount, as the agent at hop one. Depth limits work best when paired with this kind of scope reduction, since a shallow chain with unchecked scope inheritance can still cause significant damage, while a deeper chain with properly narrowed scope at each step may pose less risk.

    Security engineers evaluating delegation depth limits for their own systems should also define what happens when a limit is reached. A task that simply fails silently at the limit creates a poor operational experience and may push teams to raise the limit rather than redesign the workflow. A task that fails with a clear, logged reason gives operators the information needed to decide whether the workflow needs restructuring or the limit needs adjustment for a specific, reviewed use case.

    Tradeoffs Between Flexibility and Control

    Strict delegation depth limits reduce the attack surface created by long, opaque chains, but they also constrain what agents can accomplish autonomously. Some legitimate multi-step workflows genuinely require several hops, particularly in systems where specialized agents handle narrow tasks and hand off results to one another. Setting the limit too low forces workarounds, such as agents bypassing structured delegation to accomplish a task directly, which can undermine the visibility that depth limits were meant to provide in the first place.

    The practical approach is to treat depth limits as one control among several, alongside scope narrowing at each hop, approval workflows for delegation that would otherwise exceed normal limits, and audit logging that captures the full chain regardless of whether a limit was reached. This gives security teams a way to permit legitimate deep chains under review while still catching chains that extend beyond expected patterns without authorization.

    Delegation Depth at a Glance

    Depth
    Number of sequential agent-to-agent or agent-to-tool hops in a single task chain.
    Breadth
    Number of parallel sub-agents or tools invoked at any single hop, a related but separate control.
    Propagation
    How permission scope carries forward, or is reduced, at each successive hop.
    Enforcement Point
    Where in the request path depth is measured and a limit is applied.

    Bring Delegation Chains Under Runtime Control

    Trussed AI provides runtime governance for enterprise AI agents, including policy enforcement, permission controls, and audit logging across agent-to-agent and tool-call delegation.

    Explore MCP Security