DENY/delegation-depth

DENY/delegation-depth

Delegation depth exceeded

The delegation chain grew beyond the runtime's autonomy envelope.

What it means

Aarmos caps how deep sub-agents can delegate to further sub-agents. This deny fires when the chain hits the ceiling, preventing runaway agent trees.

Common causes

  • Agents recursively spawning sub-agents past `MAX_DELEGATION_DEPTH`.
  • Long fan-out planners that call planners.

How to fix

  • Flatten the plan: collapse intermediate agents into direct tool calls.
  • Raise the depth cap in policy only if the tree is intentional.

Related

← All error codes