The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(relay): scale-to-zero obligation 7 — relay-fronted only, re-checked at suspend time
teknium1e81d4b8d961a
diff --git a/website/docs/developer-guide/relay-connector-contract.md b/website/docs/developer-guide/relay-connector-contract.mdindex 5f8a3f6d75e..2657def4cbb 100644--- a/website/docs/developer-guide/relay-connector-contract.md+++ b/website/docs/developer-guide/relay-connector-contract.md@@ -386,6 +386,15 @@ primitives assume:drain machinery (`gateway_state` running→draining) rather than introduce aparallel relay-only idle path — the same integration constraint §3.2 placeson `going_idle`.+7. **Suspend only while every messaging connection is relay-fronted — and+ re-check that at suspend time, not just at boot.** A directly connected+ platform (Photon iMessage's gRPC stream, BlueBubbles, a bot token dialled from+ the gateway itself) holds a socket the connector cannot buffer or poke for, so+ a suspend with one live loses its inbound and never wakes. The gate counts the+ enabled launch-profile platforms AND the live adapters of every served+ profile (`gateway.multiplex_profiles` secondaries included), and the idle+ watcher asks it again before each dormant sequence so a direct adapter that+ came up after startup (profile reconcile) keeps the instance awake.These are guarantees the behaviour layer OWES the primitives; the primitives owethe behaviour layer only what §3.2/§3.3 already specify (a flip-on-going_idle,