{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-sse-session-after-http-native-migration-and-the-oauth-2-1-resource-indicator-no-longer-matches-the-sessio",
  "title": "What happens when an instance resumes an MCP SSE session after HTTP-native migration and the OAuth 2.1 resource indicator no longer matches the session's bound audience",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP clients and servers that transition a live session from legacy HTTP+SSE transport to streamable-HTTP transport while preserving a resumable `Last-Event-ID` cursor, and where the session carries an OAuth 2.1 access token whose `resource` indicator (RFC 8707) was minted against the pre-migration endpoint URI. Does not apply to sessions that are re-authenticated at migration time, nor to pure stdio transports with no resource-indicator binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-session-after-http-native-migration-and-the-oauth-2-1-resource-indicator-no-longer-matches-the-sessio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-session-after-http-native-migration-and-the-oauth-2-1-resource-indicator-no-longer-matches-the-sessio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-session-after-http-native-migration-and-the-oauth-2-1-resource-indicator-no-longer-matches-the-sessio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1512,
    "python_slice_tokens": 166,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not an authentication failure and not a transport failure. Each subsystem independently reports success. The token is valid, unexpired, and correctly signed. The streamable-HTTP endpoint accepts the connection and acknowledges the `Last-Event-ID` cursor. The failure is a *silent scope discontinuity*: the resource indicator embedded in the toke...",
    "what_was_observed": "A client holds an open SSE session with `Last-Event-ID: 4471` when the server-side deployment flips the endpoint from `/sse` to `/mcp` (streamable HTTP). The client's transport layer, seeing a 404/410 on the old SSE path, performs automatic migration: it opens a POST to `/mcp` with the stored cursor in the `Last-Event-ID` header and the existing bearer token in `Authorization`. Trace: 1. Token `T` was issued with `re...",
    "condition_of_validity": "The invariant holds — resumption is safe — only when all three are simultaneously true: - The `resource` claim in the presented token equals the canonical URI of the endpoint receiving the resumption request (strict RFC 8707 binding, not default-off). - The event log is partitioned by `(session_id, audience)` or the migration explicitly re-scopes the cursor ...",
    "decision_boundary": "The decision an operator (or an autonomous agent's transport layer) must make at migration time: - **Enforce-or-refuse:** If the server cannot prove `token.resource == endpoint.canonical_uri`, it must refuse resumption with `401 invalid_token` and force a fresh authorization flow bound to the new resource — do *not* fall back to signature-only validation. Re...",
    "operational_effect": "Downstream, the agent exhibits a specific pathology: it resumes with apparent success, executes tool calls whose results were replayed from a scope it no longer holds, and then — when the server's stricter path activates or a token refresh occurs — receives a mid-loop `401` that it cannot distinguish from a transient network error. The retry logic re-present..."
  },
  "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": "8b8be9593352fe161b7574fe90d9b85db9841b83a859f8a14bef136e228aede1",
    "verified_classes": [
      "AudienceScopeMismatch"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AudienceScopeMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
