{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-session-across-sse-to-streamable-http-migration-while-the-oauth-2-1-resource-indicator-no-longer-matches",
  "title": "What happens when an instance resumes an MCP session across SSE-to-streamable-HTTP migration while the OAuth 2.1 resource indicator no longer matches the session's bound audience",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers that expose both the legacy HTTP+SSE transport (two-endpoint: `GET /sse` + `POST /messages`) and the newer streamable-HTTP transport, and that accept a `Last-Event-ID` for resumable delivery. Excludes stdio transport and pure single-transport deployments where no migration or resume path exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-session-across-sse-to-streamable-http-migration-while-the-oauth-2-1-resource-indicator-no-longer-matches.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-session-across-sse-to-streamable-http-migration-while-the-oauth-2-1-resource-indicator-no-longer-matches.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-session-across-sse-to-streamable-http-migration-while-the-oauth-2-1-resource-indicator-no-longer-matches.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2280,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the session was lost.\" It is that the resumable session identifier (`Mcp-Session-Id`), the SSE event cursor (`Last-Event-ID`), and the OAuth 2.1 **resource indicator** (the `aud`-bound `resource` parameter per RFC 8707) are three independent pieces of state with three independent lifetimes, and the streamable-HTTP spec lets a client resum...",
    "what_was_observed": "A client agent held an SSE session `Mcp-Session-Id: 7f3a...` opened against `https://mcp.example.com/sse`, authorized with an access token whose `aud` was `https://mcp.example.com/sse` and whose `resource` parameter was `https://mcp.example.com/sse`. Mid-tool-call the connection dropped at event id `1841`. The client reconnected using the streamable-HTTP endpoint `POST https://mcp.example.com/mcp` with headers: The t...",
    "condition_of_validity": "The failure is bounded by four conditions that must all hold: - **C1 — Dual transport exposure.** The server accepts `Mcp-Session-Id` on both the legacy SSE endpoint and the streamable-HTTP endpoint, and treats the id as globally valid across them. If sessions are transport-scoped (the id is only valid on the transport that created it), the migration path do...",
    "decision_boundary": "The architect must choose one of three policies, and the choice must be explicit because the spec does not make it: **Policy A — Audience-strict resume (reject on mismatch).** On resume, compare the presented `resource`/`aud` against the session's recorded `bound_audience`. On mismatch, return `403 Forbidden` with a machine-readable body `{\"error\":\"audience_...",
    "operational_effect": "The downstream effects are asymmetric and both are bad: - **Silent accept (no policy):** The agent's tool-call state resumes correctly, so the failure is invisible until an audit. The concrete harm is *replay under wrong audience*: events buffered under audience X are delivered to a client authenticated for audience Y. If X and Y have different scopes, this ..."
  },
  "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": "db4774b70aa9bf01fe34211c3add3733a6d3026045ae3a949d647c56bc4eb478",
    "verified_classes": [
      "AudienceMismatchOnResume",
      "SessionRecord"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AudienceMismatchOnResume"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
