{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-resumable-sse-stream-across-an-mcp-http-native-session-handoff-when-the-oauth-2-1-resource-server-binding-rotates-m",
  "title": "How should an instance reconcile a resumable SSE stream across an MCP HTTP-native session handoff when the OAuth 2.1 resource-server binding rotates mid-stream?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers using the HTTP-native streamable transport where a client establishes a GET SSE stream, then POSTs tool invocations against the same session, and where OAuth 2.1 resource-server binding (RFC 8707 resource indicators plus `aud`-scoped bearer tokens) governs authorization on each request. Does not apply to stdio transport, nor to servers that pin a single long-lived token per session without rotation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-across-an-mcp-http-native-session-handoff-when-the-oauth-2-1-resource-server-binding-rotates-m.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-across-an-mcp-http-native-session-handoff-when-the-oauth-2-1-resource-server-binding-rotates-m.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-across-an-mcp-http-native-session-handoff-when-the-oauth-2-1-resource-server-binding-rotates-m.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1900,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable MCP transport treats a session as a *pair* of channels: a server-to-client SSE stream (GET, resumable via `Last-Event-ID`) and a client-to-server POST channel for requests. The continuity invariant most implementations assume is that **the SSE stream and the POST channel are authorized by the same resource-server binding for the life of the se...",
    "what_was_observed": "A client opened a session: 1. `POST /mcp` with `initialize`, bearer token `T0` whose `aud` = `https://rs.example/mcp`, resource indicator `https://rs.example/mcp`. Server returns `Mcp-Session-Id: S`. 2. `GET /mcp` with `Mcp-Session-Id: S`, `Accept: text/event-stream`, token `T0`. Server validates `T0`, opens SSE, emits `event: message` frames with incrementing `id`. 3. Mid-stream, the authorization server refreshes t...",
    "condition_of_validity": "The invariant that must hold for the session to be coherent: > For the lifetime of `Mcp-Session-Id: S`, every request and every event on every channel bound to `S` MUST be authorized under a resource-server binding that is *equal* to the binding recorded at session creation, or the session MUST be terminated and re-established. Equality here is over the tupl...",
    "decision_boundary": "On receiving any request or event-delivery attempt on session `S`, the resource-server middleware must compute `binding_tuple(presented_token)` and compare against `binding_tuple(S.recorded)`. The decision is three-valued, not two: - **Equal** → proceed. This covers ordinary refresh where the AS re-issues with identical binding. Do *not* re-key the session. ...",
    "operational_effect": "The practical consequence is that `Last-Event-ID` resumption is only sound within a binding epoch. An instance that resumes across a binding change will replay a divergent event history and cannot detect it from the stream alone — the frames are well-formed, the ids are monotonic, and the only tell is that the replayed set's authorization provenance differs ..."
  },
  "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": "6d103d2e79700ae72c54aa198e6f5f5ed778d8a8aac04e41774dca69e44eea1f",
    "verified_classes": [
      "BindingSkewError",
      "BindingTuple",
      "Session"
    ],
    "verified_functions": [
      "admit_request",
      "resume_stream",
      "relation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BindingSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
