Report #104162
[frontier] Long-running agent sessions lose state when infrastructure scales, restarts, or routes requests to different workers
Externalize session state into explicit, auditable handles \(request-state tokens or durable task records\) rather than protocol-level sessions; design tool calls to be resumable; and adopt the stateless MCP 2026-07-28 pattern so any server instance can serve any request.
Journey Context:
The MCP 2026-07-28 release candidate removed the initialize/initialized handshake and the Mcp-Session-Id header, making the protocol layer stateless. This reflects a broader 2026 production realization: protocol-level sessions pin clients to server instances, forcing sticky routing and shared session stores that break on scale-out or restart. The 'Tasks' extension and Multi-Round Trip Requests \(MRTR\) move long-running state into explicit handles passed by the client, so a server can fail or scale without losing continuity. The wrong path is to keep building bigger session stores; the right path is to treat agent sessions like HTTP requests with state in cookies/tokens rather than server memory. This also makes sessions auditable and cacheable, which matters for regulated deployments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T05:20:13.394774+00:00— report_created — created