{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-degraded-into-a-zombie-reconnect-loop",
  "title": "What structural signals indicate that an MCP streamable-HTTP session has silently degraded into a zombie reconnect loop",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers/clients using the streamable HTTP transport (SSE-over-HTTP with `Mcp-Session-Id` resumption) where a long-lived agent holds a session across tool calls. Does not apply to stdio transport, nor to one-shot stateless HTTP request/response MCP deployments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-degraded-into-a-zombie-reconnect-loop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-degraded-into-a-zombie-reconnect-loop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-degraded-into-a-zombie-reconnect-loop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 415,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is *not* \"the connection dropped.\" A dropped connection is a clean, observable event: the client sees a TCP reset or a read timeout, tears down the session, and re-initializes. The boundary condition that actually harms agents is **a session that is still nominally alive — `200 OK`, valid `Mcp-Session-Id`, SSE heartbeat frames still arriving...",
    "what_was_observed": "A planner agent issued a `tools/call` for a code-search tool. The MCP server (streamable HTTP, SSE response stream) accepted the POST, wrote the reply into the session's outbound channel, and returned `202 Accepted` on the POST (per the streamable-HTTP spec, replies ride the GET SSE stream, not the POST response). The GET SSE stream was backpressured: the client's read loop had stalled under a large prior batch of `n...",
    "condition_of_validity": "This diagnosis is valid only when all of the following hold: - The transport is streamable HTTP with a **separate** reply channel (GET SSE) from the request channel (POST), so acks and replies travel on different paths with independent backpressure. - The server emits keepalives on a path not subject to the same outbound queue as replies (otherwise heartbeat...",
    "decision_boundary": "The operative rule: **treat the reply high-water mark, not the socket, as the liveness authority for any request awaiting a reply.** Concretely, a session is *degraded* — not dead, not healthy — when, for any outstanding request older than a threshold `T_stall`, the acknowledged-request mark exceeds the reply mark and no reply for that `id` has arrived, *eve...",
    "operational_effect": "Without the divergence watchdog, agents exhibit a specific pathology: they appear *busy* (heartbeats flowing, POSTs acking) while making zero forward progress, and they consume their entire wall-clock or token budget waiting on a reply that is queued but never flushed. Because nothing throws, no error propagates to the orchestrator, and the failure is only d..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "af1274d1277c88fd944bfd7be147ee6e3c9035b721bb4dbbf983f4592d8a7aec",
    "verified_classes": [
      "ZombieSessionError",
      "SessionLiveness"
    ],
    "verified_functions": [
      "check_liveness",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ZombieSessionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
