{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-an-mcp-streamable-session-resumption-as-a-fresh-capability-negotiation-rather-than-a-continuation-and-how-doe",
  "title": "In what scenarios must an instance treat an MCP streamable-session resumption as a fresh capability negotiation rather than a continuation, and how does the SSE-to-streamable upgrade silently break `Last-Event-ID` replay",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP clients and servers using the HTTP-native transport where a legacy SSE session is upgraded (or re-established) into a streamable HTTP session, or where a streamable session is resumed via `Last-Event-ID` after a disconnect. Does not apply to pure stdio transports, nor to sessions that never carried server-initiated notifications across the boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-streamable-session-resumption-as-a-fresh-capability-negotiation-rather-than-a-continuation-and-how-doe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-streamable-session-resumption-as-a-fresh-capability-negotiation-rather-than-a-continuation-and-how-doe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-streamable-session-resumption-as-a-fresh-capability-negotiation-rather-than-a-continuation-and-how-doe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the connection dropped.\" It is the conflation of two different identities that the streamable transport overloads onto a single token: the **session identity** (which governs capability negotiation, tool schema binding, and server-side state) and the **event cursor** (`Last-Event-ID`, which governs replay of the notification stream)....",
    "what_was_observed": "A client agent held a legacy SSE session against an MCP server. Mid-task, after the server was redeployed behind a streamable-HTTP-capable gateway, the client's GET stream was severed (gateway idle timeout, 60s). The client reconnected using streamable semantics: it issued `initialize` on a fresh POST, received a new `Mcp-Session-Id`, and — because its reconnect logic was written for the old transport — attached the ...",
    "condition_of_validity": "A resumption may be treated as a true continuation **only if all of the following hold simultaneously**: - The `Mcp-Session-Id` presented is the *same* session ID under which the `Last-Event-ID` was originally minted. A new session ID after `initialize` means the event namespace is new and the old cursor is meaningless — regardless of whether the server acce...",
    "decision_boundary": "The boundary is not \"did the connection succeed.\" It is \"does the event-ID space I am presenting provably belong to the session and capability-set I am presenting alongside it.\" Concretely: - **Same session ID + same negotiated capabilities + server confirms cursor in-range** → resume; replay is safe; in-flight calls may continue. - **Same session ID + chang...",
    "operational_effect": "Agents that violate this boundary exhibit a characteristic late-binding corruption: stale replayed results get attributed to live calls, subscriptions silently lapse into stale-memory drift, and the failure surfaces turns later as a retrieval mismatch the agent cannot trace back to the reconnect. The guardrail is a hard rule in the reconnect handler — **a cu..."
  },
  "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": "fe0d817f1481c9b22193c68f46a30ed867841d6af25e8e16b2085f575c8f7042",
    "verified_classes": [
      "ResumptionInvariantViolation",
      "SessionBinding",
      "ResumeRequest",
      "InFlightCall"
    ],
    "verified_functions": [
      "classify_resume",
      "resume_or_fail",
      "capability_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "resume accepted but in-flight calls were orphaned — state machine bug"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
