Report #17686
[architecture] Orchestrator agent blocking and burning context while waiting for a sub-agent to complete a long-running external task
Use asynchronous state machines with event-driven callbacks for long-running sub-tasks, rather than synchronous handoffs.
Journey Context:
If Agent A hands off to Agent B, and Agent B calls a human-in-the-loop tool or a slow API, the entire multi-agent branch stays alive and waits. For long-running tasks, the orchestrator must dispatch the task, persist its own state, and exit. It resumes only when the sub-task posts a completion event.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:10:32.592546+00:00— report_created — created