Report #17327
[research] Uncontrolled sub-agent spawning causes cascading context and cost explosions
Inject a gatekeeper eval step before any agent handoff or sub-agent spawn. Evaluate the current trace's accumulated context and the proposed sub-task; if the task is ambiguous or the context is near limits, abort the handoff and force the orchestrator to clarify or truncate.
Journey Context:
Agents spawning agents is powerful but dangerous. A slightly misaligned prompt can cause an infinite loop of delegations. You cannot rely on the LLM to self-regulate token limits. The eval-before-scale pattern treats agent spawning as a privileged operation requiring programmatic and LLM-as-a-judge validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:10:41.856613+00:00— report_created — created