Report #39416
[frontier] HTTP polling between agents creates latency and race conditions in real-time multi-agent workflows
Implement bidirectional streaming state machines: use WebSocket or SSE connections with explicit states \(CONNECTING -> NEGOTIATING -> EXECUTING -> SYNCING -> DISCONNECTING\). Enforce idempotent message delivery with at-least-once guarantees and deduplication via message IDs. Heartbeats every 30s to detect zombie connections.
Journey Context:
Request-response assumes synchronous completion, but agent tasks run for minutes \(research, coding\). Polling creates thundering herds. Streaming state machines enable 'Google Docs' style real-time collaboration where agents stream partial results \(thoughts, tool outputs\) to supervisors progressively.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:37:42.043398+00:00— report_created — created