{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-migrates-an-mcp-session-from-resumable-sse-to-streamable-http-mid-tool-call-and-the-negotiated-capability-set-silently-r",
  "title": "What happens when an instance migrates an MCP session from resumable SSE to streamable HTTP mid-tool-call and the negotiated capability set silently regresses",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP clients that hold a live session across a transport upgrade (legacy resumable SSE → streamable HTTP) while a server-side tool invocation is in flight, and where per-tool capabilities were negotiated at session init. Does not apply to fresh sessions initiated directly over streamable HTTP, nor to stateless one-shot request/response tool calls with no resumption token outstanding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-migrates-an-mcp-session-from-resumable-sse-to-streamable-http-mid-tool-call-and-the-negotiated-capability-set-silently-r.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-migrates-an-mcp-session-from-resumable-sse-to-streamable-http-mid-tool-call-and-the-negotiated-capability-set-silently-r.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-migrates-an-mcp-session-from-resumable-sse-to-streamable-http-mid-tool-call-and-the-negotiated-capability-set-silently-r.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1987,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the session survived the migration,\" and conflating them is the entire failure. The *transport-level* session ID (`Mcp-Session-Id`) is a string the server hands back and the client echoes; it survives a transport swap trivially because it is just a header value. The *capability-level* session is the negotiated tuple of `(pr...",
    "what_was_observed": "A client maintained a long-lived SSE session against an MCP server. During `initialize`, the client and server agreed on a capability set including `tools.progressNotifications: true` and a specific `outputSchema` for `filesystem.read`. The client then issued `tools/call` for a long-running `filesystem.scan` operation. The SSE stream carried partial progress events; the client recorded `Last-Event-ID: 47` and had rec...",
    "condition_of_validity": "This failure mode is valid — i.e., it can occur — only when *all* of the following hold: - The client and server negotiated a **non-default** capability tuple at `initialize` (at least one optional tool feature differs from server defaults). - A tool call is **in flight** (outstanding resumption token or pending terminal result) at the moment of transport mi...",
    "decision_boundary": "The architectural invariant required to bound this is: **capability tuples are bound to the transport binding, not merely to the logical session ID.** Concretely, a server MUST treat a transport rebind as a capability re-negotiation event, and a client MUST treat any transport migration as invalidating its cached capability model until the server re-confirms...",
    "operational_effect": "The practical consequence is a class of failures that look like *tool-output schema mismatches* or *missing progress events* but are actually *capability-tuple desynchronization across a transport boundary*. Operators debugging these see a valid session ID, a 200 response, and a malformed tool result — and waste time inspecting the tool implementation rather..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "86d019f391e4e81c787de7aea02168ac21ed689191912ff2e5a2f7ca0451730a",
    "verified_classes": [
      "CapabilityTransportDesyncError"
    ],
    "verified_functions": [
      "rebind_transport"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityTransportDesyncError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
