Delegation Chains
Delegation chain governance controls how your agents hand work to each other. In multi-agent systems, one agent often delegates work to another: Agent A asks Agent B to query a database, and Agent B asks Agent C to format the results. This creates a delegation chain, a sequence of agent-to-agent handoffs that MITRITY tracks, governs and shows in the dashboard.
Without governance, delegation chains introduce serious security risks:
- privilege escalation: Agent A reaches resources through Agent B that it could not access directly;
- circular delegation: loops, where a delegation re-enters an agent already in the chain;
- fan-out attacks: one agent triggers hundreds of sub-agents.
MITRITY's delegation chain system addresses all of these.
Prerequisite: grant the MCP Delegate capability
Through a gateway, an agent delegates by calling a delegate_to tool that an upstream of your own serves under the namespace delegate, so the call is mcp:delegate__delegate_to. The gateway does not serve this tool itself; the multi-agent demo ships such an upstream. MCP Delegate is the catalog's definition for that tool, not the tool: it ships as a built-in in the Tools catalog (Built-in tab), with the single operation delegate_to and the action pattern mcp:delegate__*, so there is nothing to create. It matches only that namespace: an agent-to-agent hop on the mesh is delegate:delegate_to, which it does not match.
Grant the MCP Delegate capability on each participating agent, so that the capability layer covers its delegation calls: on the agent's detail page, open Capabilities → Add capability.
Without this grant, the agent's delegate_to calls fall through to policy-rule evaluation only. That is fine if your policy allows them, but you lose the capability-layer narrowing. The hop is recorded either way, because the edge evaluates the delegation before it checks Capabilities, and the privilege-escalation diff compares all of the two agents' Capabilities, not only MCP Delegate.
Evaluation architecture
Delegation hops are evaluated through a path that the backend mediates. The control plane, not the edge node, is the source of truth on chain state.
The edge sends every hop to the MITRITY backend, the first hop of a chain included, through POST /api/v1/delegation-chains/evaluate. Cycle detection, depth, fan-out and privilege escalation all need the agents' delegation history, which the edge does not hold in trustworthy form. A call is a hop when:
- through a gateway or a sidecar, it calls a delegation tool:
delegate_to, or a tool on your delegation tools list (by defaulthandoffandspawn_agent), under any namespace, matched without regard to case; - through a gateway or a sidecar, its arguments carry
delegation_chain_id, whatever the tool; - on the mesh, an agent-to-agent call carries the
x-mitrity-delegation-chain-idheader (see Mesh Identity).
Through a gateway or a sidecar, to_agent_id names the delegate and delegation_chain_id names the chain. A delegation that names no chain starts a new one. A delegation whose to_agent_id is missing or is not a UUID is refused, whatever the policy's fail_mode.
For each hop, the edge sends the chain_id, the calling agent's ID, name and mission scope, the action type it evaluated, and the proposed delegate's agent ID and worker name. The backend then:
- looks up the persisted chain from
delegation_hops; - runs every check (depth, cycle, unauthorized-delegate, fan-out, privilege-escalation), comparing the two agents' enabled Capabilities the way the edge enforces them (see Privilege-escalation detail);
- applies each broken setting's mode;
- persists the new hop with its decision, and records any violation on the audit trail;
- returns the decision.
If the endpoint cannot be reached, the policy's fail_mode decides: closed denies the hop, and open evaluates it on the edge against that single hop, and marks the audit event with chain_state_fallback.
The edge enforces what the backend returns.
Chain state never comes from the calling agent, because an agent's own account of its chain is not evidence. Prior hops carried in the request (args.prior_hops) are ignored. The backend rebuilds chain state from delegation_hops on every hop, so it catches transitive cycles, where one hop alone looks fine but the chain as a whole loops.
The /evaluate request and response
curl -X POST https://api.mitrity.com/api/v1/delegation-chains/evaluate \
-H "X-Agent-Key: ak_your-agent-key" \
-H "Content-Type: application/json" \
-d '{
"chain_id": "ch_8k2m4n",
"current_agent_id": "1b2c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"current_agent_name": "orchestrator",
"current_mission_scope": "Coordinate customer-order workflow",
"current_action": "mcp:delegate__delegate_to",
"proposed_target_agent_id": "3f2a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"proposed_target_worker": "data-worker"
}'
current_agent_id must be the agent the key authenticates, or the call gets 403 Forbidden. An edge that can wait for a person's approval also sends "supports_hold": true. On the first hop of a chain, the response looks like this:
{
"allowed": false,
"reason": "privilege_escalation",
"chain_depth": 1,
"agents_in_chain": ["3f2a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"],
"action_taken": "blocked",
"audit_event_id": "7c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
}
reason names the setting the hop broke, also when the hop went ahead under a log or alert setting, and is empty when it broke none. audit_event_id is the ID of the delegation.violation audit event recorded for the hop, and is empty when the hop broke no setting. The edge's own event for the delegation call stays the record of the call. A held hop's response also carries approval_id and hold_timeout_seconds (1800). The privilege-escalation diff is not in the response: it is stored on the hop as effective_permissions, which the chain detail shows as Escalated resources.
action_taken vocabulary
action_taken on the evaluate response is past tense: it describes what already happened, not what should happen next. The four values are:
action_taken | Meaning |
|---|---|
allowed | The hop broke no setting. The edge proceeds with the delegated call. |
logged | The hop broke a setting in log mode. It was allowed and recorded. The edge proceeds. |
alerted | The hop broke a setting in alert mode. It was allowed, recorded and announced. The edge proceeds. |
held | The hop broke a setting in hold mode, and an approval request was opened. The edge waits for a person to approve or deny it. |
blocked | The hop was refused. The edge returns a denial to the calling agent. |
Present-tense verbs (allow / block) are not the wire format. Always read action_taken as past tense.
Model
The system records two related entities:
- A chain: one per multi-agent workflow. It tracks the initiator, depth, status and, if blocked, the reason.
- Zero or more hops: one per agent-to-agent handoff within the chain. A hop tracks the from-agent, the to-agent, the action requested and the governance decision.
Every chain has a stable chain_id, a string that the delegating agent supplies: the delegation_chain_id argument through a gateway, or the x-mitrity-delegation-chain-id header on the mesh. Hops within a chain are ordered by hop_index (zero-based).
Chain
{
"id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"tenant_id": "9f8a7b6c-5d4e-3f2a-1b2c-4d5e6f7a8b9c",
"chain_id": "ch_8k2m4n",
"initiator_agent_id": "1b2c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"initiator_agent_name": "orchestrator",
"chain_depth": 3,
"status": "completed",
"blocked_at_hop": null,
"blocked_reason": null,
"started_at": "2026-05-22T10:00:00Z",
"completed_at": "2026-05-22T10:00:02Z",
"created_at": "2026-05-22T10:00:00Z"
}
Status values:
| Value | Meaning |
|---|---|
active | Chain has at least one hop and is still receiving new hops. |
completed | Chain finished without any blocked hop. |
blocked | A hop was blocked; the chain is closed in this state. blocked_at_hop and blocked_reason are populated. |
timed_out | No new hop arrived within the timeout window after the last hop. Closed in this state. |
Hop
{
"id": "2d95038-4c54-7b2a-9d35-597a1e4f3b21",
"chain_id": "ch_8k2m4n",
"hop_index": 0,
"from_agent_id": "1b2c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"from_agent_name": "orchestrator",
"to_agent_id": "3f2a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"to_agent_name": "data-fetcher",
"action_requested": "mcp:delegate__delegate_to",
"decision": "allowed",
"violations": [{ "reason": "depth_exceeded", "action": "log" }],
"approval_id": null,
"approval_status": null,
"effective_permissions": null,
"occurred_at": "2026-05-22T10:00:01Z"
}
decision is "allowed", "held" or "blocked". A held hop waits for its approval request (approval_id, with its approval_status). When a person approves it, the hop becomes "allowed". When a person denies it, or the approval times out, the hop becomes "blocked". violations lists the settings the hop broke and the mode each was handled in, the deciding one first, and is null when it broke none. action_requested is the action type of the delegation call. effective_permissions is null, except on a hop the privilege-escalation check fired on, whatever the setting's mode, where it holds the diff: delegator_permissions, delegate_permissions and escalated_resources. from_agent_id is the calling agent, and is null only on a chain's first hop when the calling agent names itself as the delegate.
Blocked hops are persisted. When a hop is denied (depth, cycle, fan-out, unauthorized-delegate or privilege-escalation), it is still written to delegation_hops, with decision: "blocked", and the chain becomes blocked with its blocked_reason populated. A held hop that a person denies, or whose approval times out, blocks its chain the same way. This powers the dashboard's Blocked tab, and lets you audit denied attempts after the fact.
Governance controls
Tenant-wide settings
The tenant-wide delegation policy applies to every agent, unless you override it per agent. Configure it at Security > Delegation Chains > Settings in the dashboard, or through the API:
curl -X PUT https://api.mitrity.com/api/v1/delegation-chains/settings \
-H "Authorization: Bearer mk_your-api-key" \
-H "Content-Type: application/json" \
-d '{
"max_chain_depth": 5,
"depth_exceeded_action": "deny",
"max_fan_out": 10,
"fan_out_window_seconds": 60,
"fan_out_exceeded_action": "alert",
"circular_action": "deny",
"privilege_escalation_action": "hold",
"delegation_tools": ["handoff", "spawn_agent"]
}'
| Field | Type | Default | Description |
|---|---|---|---|
max_chain_depth | integer (1–20) | 5 | Maximum number of hops in a delegation chain. |
depth_exceeded_action | mode | deny | What happens when the next hop would exceed the limit. |
max_fan_out | integer (1–100) | 10 | Maximum number of distinct agents one agent may delegate to within fan_out_window_seconds. |
fan_out_window_seconds | integer (10–3600) | 60 | Rolling window for the fan-out count. |
fan_out_exceeded_action | mode | deny | What happens when an agent delegates to a new agent past max_fan_out. |
circular_action | mode | deny | What happens when a delegation would re-enter an agent already in the chain. |
privilege_escalation_action | mode | deny | What happens when a hop would grant the delegate access the delegator lacks. |
delegation_tools | array of tool names (up to 20) | ["handoff", "spawn_agent"] | Tools governed as delegations, besides delegate_to. See Delegation tools. |
A mode is one of log, alert, hold or deny; see Modes. Send every field on PUT. fan_out_exceeded_action and delegation_tools may be left out, which keeps their saved values.
Tenant settings are a Pro+ feature. Starter tenants run with the built-in defaults above. Changing them needs the manager or owner role, because they decide what is denied, held for approval or let through. Every change is recorded on the audit trail as delegation.settings.updated, with each value before and after.
Modes
Each of the four action settings says what happens to a delegation that breaks it:
| Mode | The delegation | Recorded | Notification |
|---|---|---|---|
log | goes ahead | on the hop (violations) and as a delegation.violation audit event | none |
alert | goes ahead | as log | Delegation flagged (delegation.alert), to the bell and Slack by default, at most once every 10 minutes for the same agent, delegate and setting |
hold | waits for a person: MITRITY opens an approval request in Approvals, and the delegation goes ahead only if it is approved within 30 minutes | on the hop (held, then allowed or blocked) and as a delegation.violation audit event | Action held for approval (approval.requested) |
deny | is refused | on the hop (blocked) and as a delegation.violation audit event | none of its own |
When a hop breaks several settings, every violation is recorded, and the strictest mode decides what happens: deny, then hold, then alert, then log. A delegate outside the agent's allowed_delegates, or on its disallowed_delegates, is always refused.
A held delegation's approval times out after 30 minutes and is then denied, as a hold rule's approval is by default. Approving it lets the delegation go ahead. The hop then counts in the chain's later depth, cycle and fan-out checks.
Where an edge can't wait for a person, hold denies. On the service mesh, the mesh authorizer answers each request within its deadline, so a held delegation there is refused, and no approval is opened. Edge nodes that predate delegation holds do the same. Their delegation events show action_taken: blocked, and the audit event carries hold_unsupported: true.
MITRITY also refuses the delegation, without opening an approval, in two cases. The first is when your lifecycle gate is set to enforce and the delegating agent isn't approved: a hold is the one way a person can let an action through, and such an agent's actions can't be approved. The second is when the agent already has 10 delegations waiting for approval, so an agent that retries a held delegation can't flood the queue. The audit event says why in hold_refused: lifecycle_gate, pending_limit, or lifecycle_unverified when MITRITY couldn't read the gate or the agent to check. When a person approves a held delegation, it goes ahead only if the lifecycle gate still lets the agent through.
Fan-out
An agent's fan-out is the number of distinct agents it delegated to within the last fan_out_window_seconds, across all of its chains, counting only delegations that went ahead. A delegation to a new agent breaks the fan-out setting when the agent has already delegated to max_fan_out agents in the window. Delegating again to an agent it already delegated to in the window, or invoking itself, never does. With the defaults, an agent may delegate to 10 distinct agents within 60 seconds, and the 11th is refused.
Delegation tools
delegate_to is always a delegation tool. Add the names of other tools your agents call to hand work to another agent, so MITRITY governs those calls as delegations too. The list defaults to handoff and spawn_agent. Names are matched against the tool's own name, without the gateway's namespace (delegate__handoff matches handoff), and without regard to case.
A name is 1 to 64 characters of letters, digits, _, . and -, starts with a letter or a digit, and does not contain __. Names are saved in lower case.
A call to a delegation tool must name its delegate in to_agent_id, like a delegate_to call. A call that doesn't is refused. If one of your tools is called handoff or spawn_agent but does not hand work to a MITRITY agent, remove that name from the list.
Edge nodes that predate this list govern delegate_to only.
Per-agent overrides
To override the tenant-wide limits for an individual agent:
curl -X PUT https://api.mitrity.com/api/v1/agents/1b2c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e \
-H "Authorization: Bearer mk_your-api-key" \
-H "Content-Type: application/json" \
-d '{
"delegation_settings": {
"max_chain_depth": 8,
"allowed_delegates": ["agt-uuid-a", "agt-uuid-b"],
"disallowed_delegates": []
}
}'
allowed_delegatesis an allow-list. When it is non-empty, the agent can delegate only to the listed agent IDs.disallowed_delegatesis a deny-list.
The two lists are independent, and you can set both. Per-agent values fall back to the tenant settings when null.
Blocked reasons
When a hop is blocked, the chain's blocked_reason explains why:
| Reason | Description |
|---|---|
depth_exceeded | The chain would exceed max_chain_depth. |
circular_delegation | The delegation would re-enter an agent already in the chain. |
privilege_escalation | The delegate would gain access the delegator does not have. |
fan_out_exceeded | The delegating agent already delegated to max_fan_out distinct agents within the window, and this delegation names a new one. |
unauthorized_delegate | The delegate isn't in allowed_delegates (or is in disallowed_delegates) for the delegating agent. |
Privilege-escalation detail
The privilege-escalation check fires inside the backend /evaluate call. At each hop, MITRITY computes the (tool, operation) pairs that the proposed delegate holds and the calling agent does not. If that set is non-empty, the hop is flagged as privilege escalation, and the resolver populates delegation_hops.effective_permissions (JSONB) with the diff.
The check is per-hop: it compares the delegator with the proposed delegate. It does not intersect permissions across every hop of the chain.
The two agents' Capabilities are compared tool by tool, the way the edge enforces them. A Capability whose operations list is empty, or contains *, allows every operation of its tool:
| Calling agent's Capability on the tool | Delegate's Capability on the tool | Escalated |
|---|---|---|
Every operation (empty or *) | Anything | Nothing |
| Named operations, or no Capability on the tool | Every operation (empty or *) | The tool, listed as * |
| Named operations | Named operations | The delegate's operations that the calling agent's list does not name |
| No Capability on the tool | Named operations | All of the delegate's operations |
So a delegate on read, write under a calling agent on read escalates write, and a calling agent on * holds every operation a delegate can have on that tool.
Operations are compared by name. A delegate's wildcard, such as fetch_*, or regex: entry is covered only by the same entry in the calling agent's Capability, or by a Capability on every operation. A calling agent's fetch_* does not cover a delegate's fetch_orders either, so that hop is reported. Scopes, rate limits, payload limits and time windows are not part of the comparison.
The action taken depends on the tenant's privilege_escalation_action setting:
| Setting | Behavior |
|---|---|
deny (default) | The hop is blocked with blocked_reason: "privilege_escalation". |
hold | The hop waits for a person's approval (action_taken: "held"), and goes ahead only if it is approved. |
alert | The hop is allowed (action_taken: "alerted"), and a Delegation flagged notification is sent. |
log | The hop is allowed (action_taken: "logged"), with no notification. |
In every mode, the escalated resources are stored on the hop and the violation is recorded as a delegation.violation audit event.
The full diff payload looks like:
{
"hop_index": 1,
"from_agent_id": "1b2c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"to_agent_id": "3f2a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
"action_requested": "mcp:delegate__delegate_to",
"decision": "blocked",
"effective_permissions": {
"delegator_permissions": [
{ "tool_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b", "tool_name": "MCP Delegate", "allowed_operations": ["delegate_to"] }
],
"delegate_permissions": [
{ "tool_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b", "tool_name": "MCP Delegate", "allowed_operations": ["delegate_to"] },
{ "tool_id": "8b9c0d1e-2f3a-4b5c-8d6e-7f8a9b0c1d2e", "tool_name": "MCP Database", "allowed_operations": ["create_order", "fetch_orders", "query_database"] }
],
"escalated_resources": [
{ "tool_id": "8b9c0d1e-2f3a-4b5c-8d6e-7f8a9b0c1d2e", "tool_name": "MCP Database", "allowed_operations": ["create_order", "fetch_orders", "query_database"] }
]
}
}
escalated_resources is the set difference: the (tool, operation) pairs that the delegate holds and the calling agent does not. delegator_permissions and delegate_permissions show each Capability as you saved it, an empty operations list included. The dashboard's chain-detail page shows this diff in an Escalated resources card under the hops table, for every hop the privilege-escalation check fired on: denied hops, and hops that went ahead or were held under log, alert or hold.
Delegation policies
Beyond the tenant and per-agent settings above, you can write policies that target delegation by action pattern. Through a gateway that serves the delegation upstream under the namespace delegate, the action type is mcp:delegate__delegate_to: the namespace joined to the tool name by __. A rule with tool_pattern: mcp:delegate__* therefore matches every delegation hop through that upstream:
{
"name": "hold-delegation",
"tool_pattern": "mcp:delegate__*",
"action": "deny",
"hold": true,
"priority": 400,
"hold_timeout_minutes": 15,
"timeout_action": "deny"
}
Action patterns are globs, so
.is a literal character, and*does not treat:specially.delegate.*matches nothing, because the separator is a colon. In the mesh, the Authorizer emitsdelegate:delegate_towithout themcp:prefix, so a mesh-scoped rule needsdelegate:*.
There is no
constraints.delegationblock. Rule constraints match the arguments of an action, and the edge silently drops any constraint whose value is a JSON object: see Writing Policies. A policy carrying adelegationobject is accepted by the API and then ignored, so the rule behaves as if the constraint were not there.cross_environmentandmax_depth_overridedo not exist in any form.
Which delegates an agent may reach, and how deep a chain may run, are the per-agent settings above (allowed_delegates, disallowed_delegates, max_chain_depth under delegation_settings). The delegation engine evaluates them on every hop. Use policies for the decision shape: hold every delegation for approval, alert on it, or deny it outright. Use per-agent settings for who may delegate to whom.
API Reference
All endpoints are mounted at /api/v1/delegation-chains, with Bearer-token auth, and tenant-scoped.
List chains
curl "https://api.mitrity.com/api/v1/delegation-chains?status=blocked&blocked_reason=privilege_escalation&limit=50" \
-H "Authorization: Bearer mk_your-api-key"
Query parameters are all optional and composable. Empty values are treated as absent.
| Parameter | Type | Description |
|---|---|---|
agent_id | UUID | Chains where this agent is the initiator or appears as from/to in any hop. |
status | enum | active, completed, blocked, timed_out. |
blocked_reason | enum | Filter blocked chains by reason. |
min_depth | integer | Chains with chain_depth >= N. |
started_after | RFC3339 | Chains started after this timestamp. |
started_before | RFC3339 | Chains started before this timestamp. |
limit | integer (1–100) | Default 50. |
offset | integer | Default 0. |
Returns an array of chain objects, sorted by started_at desc.
Get a chain
curl https://api.mitrity.com/api/v1/delegation-chains/ch_8k2m4n \
-H "Authorization: Bearer mk_your-api-key"
Returns the chain plus its ordered list of hops:
{
"id": "...",
"chain_id": "ch_8k2m4n",
"initiator_agent_id": "...",
"...": "...",
"hops": [
{ "hop_index": 0, "from_agent_id": null, "to_agent_id": "...", "decision": "allowed", "..." : "..." },
{ "hop_index": 1, "from_agent_id": "...", "to_agent_id": "...", "decision": "allowed", "..." : "..." }
]
}
Summary
curl https://api.mitrity.com/api/v1/delegation-chains/summary \
-H "Authorization: Bearer mk_your-api-key"
Aggregate counts for the calling tenant, as lifetime totals.
{
"total_chains": 4521,
"total_hops": 12847,
"avg_depth": 2.8,
"max_depth_observed": 7,
"by_status": {
"active": 12,
"completed": 4475,
"blocked": 30,
"timed_out": 4
},
"by_blocked_reason": {
"circular_delegation": 3,
"depth_exceeded": 8,
"privilege_escalation": 15,
"fan_out_exceeded": 3,
"unauthorized_delegate": 1
},
"top_initiators": [
{ "agent_id": "...", "agent_name": "orchestrator", "chain_count": 2340 }
],
"top_delegates": [
{ "agent_id": "...", "agent_name": "data-fetcher", "delegation_count": 3450 }
]
}
Settings
GET /api/v1/delegation-chains/settings
PUT /api/v1/delegation-chains/settings
See Tenant-wide settings for the request body.
Evaluate a hop
POST /api/v1/delegation-chains/evaluate
Edge nodes call this endpoint on every hop, the first one of a chain included. It is authenticated with the calling agent's key in the X-Agent-Key header, not with an API key. The backend resolves the full chain from delegation_hops, runs the engine, persists the new hop and returns the decision.
Most customers never call this endpoint directly, because their edge nodes call it on their behalf. It is documented here for completeness, and for customers who build custom integrations. See Evaluation architecture above for the request and response shape.
Dashboard
Go to Security > Delegation Chains. The page has four tabs:
- Chains: a paginated list, with the same filters as the API.
- Blocked: pre-filtered to
status=blocked. It fills with every denied hop the engine catches (depth, cycle, fan-out, unauthorized-delegate, privilege-escalation). Use it for quick triage of hot spots. It is the first place to look when a customer reports "the agent stopped delegating." - Topology: a DAG of all delegation pairs within a rolling window (7 / 30 / 90 days). Node = agent, edge thickness = delegation count, red = blocked attempts.
- Settings: the tenant-wide controls described above (Pro+ only).
The chain detail view shows the full hop sequence and the chain visualization: linear for chains under depth 6, a DAG for deeper ones. Each hop shows its decision, the settings it broke and how each was handled (for example "Depth exceeded · logged"), and, for a held hop, its approval's status with a link to Approvals. When the privilege-escalation check fired on a hop, the detail page shows an Escalated resources card with the (tool, operation) diff between the calling agent and the proposed delegate.
Audit trail
Every evaluation that finds a violation records one delegation.violation event on your audit trail, whatever the mode. The event is about the calling agent and carries chain_id, hop_index, to_agent_id, the deciding reason and its action (mode), action_taken, every violation in violations, and, for a hold, approval_id. When a hold was applied as a deny, hold_unsupported or hold_refused says why. It is a governance record, with no decision of its own: the edge's event for the delegation call records the call. Changes to the settings are recorded as delegation.settings.updated.
Best practices
Start with the defaults
The tenant defaults (max_chain_depth: 5, max_fan_out: 10, every *_action set to deny) are a safe baseline for most deployments. Loosen a knob only with evidence, for example a specific workflow that needs depth 8, or a specific agent that legitimately fans out to 20 sub-agents.
Use allowed_delegates for critical agents
For agents that touch sensitive resources (billing, customer data, infrastructure), list explicitly which agents they may delegate to. Production agent topologies do drift, and an allow-list catches new delegation paths before they go live.
Treat privilege escalation as deny
privilege_escalation_action: alert lets the escalation happen, records it and notifies you; log only records it. In production, deny is the right choice unless you have a specific reason: with intersection semantics, the delegator's reach is the ceiling. Use hold when a person should decide each escalating delegation.
Review blocked chains weekly
Blocked delegations are signal. Spend 15 minutes a week in the Blocked tab. Recurring patterns point either at an over-tight policy, which you loosen with intent, or at a misbehaving agent, which is what the system is there to catch.
Related documentation
- Injection Detection: detect prompt injection in delegated instructions
- Credential Broker: manage credential access across delegation chains
- Threat Intelligence: behavior-based threat indicators on agent actions
- RBAC: role-based access control for team members