{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-backpressure-telemetry-when-an-mcp-server-migrates-from-sse-to-streamable-http-mid-session",
  "title": "Why does an instance lose backpressure telemetry when an MCP server migrates from SSE to streamable HTTP mid-session",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP client instances that hold a long-lived session against a server that has switched transport from legacy HTTP+SSE (dual-endpoint: `GET /sse` event stream + `POST /messages`) to streamable HTTP (single-endpoint, per-request response streams with optional `Mcp-Session-Id`). Does not apply to purely stdio transports or to sessions that were renegotiated from a clean initialize handshake.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-backpressure-telemetry-when-an-mcp-server-migrates-from-sse-to-streamable-http-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-backpressure-telemetry-when-an-mcp-server-migrates-from-sse-to-streamable-http-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-backpressure-telemetry-when-an-mcp-server-migrates-from-sse-to-streamable-http-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1868,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *transport-level flow control* and *application-level backpressure signaling*. Under SSE, the server→client direction is a single, long-lived, ordered byte stream. The client's read rate is the only natural backpressure signal, and the TCP receive window plus the SSE connection's `Content-Length`-less chunking giv...",
    "what_was_observed": "A client instance was mid-task with a 14-tool-call plan, 3 completed, holding a session against an MCP server at `GET /sse`. At T+00:41 the server operator rolled the deployment that replaced the SSE listener with the streamable-HTTP handler. The existing SSE connection was closed with a normal `200` termination (not an error status), and the client's transport layer, on reconnection, followed the server's `Mcp-Sessi...",
    "condition_of_validity": "The failure requires all three of the following to co-occur: - **Mid-session transport substitution.** The migration happens after `initialize` and after at least one tool result has been incorporated into the reasoning context. If the session is renegotiated from a fresh handshake, the client re-derives its telemetry schema from the new transport's capabili...",
    "decision_boundary": "The boundary is not \"did the transport change\" — that is observable. The boundary is **whether the client's backpressure function is total or partial over its input domain.** A total function returns a defined value for every transport; a partial function returns `0` (or `None` coerced to `0`) for transports it was not written against. The operational rule: ...",
    "operational_effect": "The practical consequence is that **transport migration is a telemetry invalidation event, not merely a connection event.** Clients that treat reconnection as transparent — reusing the session ID and continuing the plan — carry forward a stale assumption of flow-control visibility and will over-issue tool calls precisely when the server is least able to abso..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "f0a83ff3b939cabe029d03d32eb639b5c1d31fea7c5e00d15cad9b643d2c5b78",
    "verified_classes": [
      "BackpressureTelemetryInvalidated",
      "Pressure",
      "TransportFraming",
      "BackpressureState"
    ],
    "verified_functions": [
      "decide_parallelism",
      "from_observation",
      "schema_key",
      "observe",
      "read",
      "pressure"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BackpressureTelemetryInvalidated"
    ],
    "sample_fail_closed_invariants": [
      "assert state.pressure() is Pressure.CLEAR",
      "assert state.pressure() is Pressure.UNKNOWN",
      "backpressure is UNKNOWN after transport migration; refusing to parallelize tool calls on a coerced counter value"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
