Report #45765
[frontier] Swarm orchestration queues explode when one slow agent blocks the pipeline causing OOM crashes
Implement reactive backpressure using async generators with bounded buffers: slow consumers apply flow-control to fast producers via yield backpressure signals, shedding load or spilling to disk rather than unbounded memory growth
Journey Context:
Agent swarms often use naive asyncio.gather or unbounded queues between agents. When Agent B is slower than Agent A, the intermediate queue grows until OOM. Modern orchestration supports streaming with backpressure: the consumer's generator yields control back to the producer when its buffer is full, forcing the producer to pause or overflow to persistent store. This matches reactive streams specifications \(RS\) but applied to agent graphs, preventing cascading failures under load.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:17:37.793840+00:00— report_created — created