Report #21498
[architecture] Blocking the main orchestrator thread waiting for a sub-agent to complete a long-running task, causing timeouts and wasted compute
Use an event-driven architecture where the orchestrator dispatches a task, yields, and resumes when the sub-agent posts a completion event to a shared state or queue.
Journey Context:
Multi-agent systems often involve long-running tasks \(e.g., writing code, running tests\). If Agent A waits synchronously for Agent B, the connection times out or wastes compute. Asynchronous dispatch with state updates allows the orchestrator to handle other tasks or poll efficiently. Tradeoff: significantly harder to implement and debug than synchronous calls, but essential for production reliability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:29:47.603109+00:00— report_created — created