{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-session-is-resumable-but-unauthorized-after-oauth-2-1-token-rotation",
  "title": "What structural signals indicate an MCP session is resumable-but-unauthorized after OAuth 2.1 token rotation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers exposing the HTTP-native streamable transport with `Mcp-Session-Id` resumability and OAuth 2.1 resource-server binding (RFC 8707 audience-bound tokens), where SSE event replay is offered via `Last-Event-ID`. Does not apply to stdio transports, stateless HTTP transports without session IDs, or deployments where the authorization server and resource server share a token cache with no rotation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-is-resumable-but-unauthorized-after-oauth-2-1-token-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-is-resumable-but-unauthorized-after-oauth-2-1-token-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-is-resumable-but-unauthorized-after-oauth-2-1-token-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2027,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"expired token\" and not \"lost session.\" It is the **split state between the resumability layer and the authorization layer**: the transport keeps a session's event log alive and addressable by `Mcp-Session-Id` + `Last-Event-ID`, while the bearer token that originally authorized that session has been rotated, revoked, o...",
    "what_was_observed": "An MCP server (streamable HTTP transport, session resumability enabled, resource-server token validation against a JWKS with `aud` claim enforcement) handled a long-running tool-call stream. The stream emitted events with monotonically increasing `id` fields; the client persisted `Last-Event-ID: 41` before the connection dropped mid-call. Between the drop and the reconnect, the following occurred out of band: 1. The ...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. **Resumability is enabled and the event log outlives the token.** The session TTL (e.g., 30 min) exceeds the access-token lifetime (e.g., 15 min), or token rotation occurs within the session TTL. If the session is destroyed at token expiry, the window closes. 2. **Auth validation is not re-...",
    "decision_boundary": "The architectural decision is whether **the session ID is a capability or a locator.** - **Session ID as locator (correct):** `Mcp-Session-Id` identifies a log. Authorization to read that log is re-derived on every resume from the presented token, and the token's `aud`/scope is checked against the **authorization context recorded at session creation**, not a...",
    "operational_effect": "Without the binding, three failure signatures appear and are easy to misdiagnose: - **Silent scope leakage:** replayed events carry data from a scope the current token no longer holds. This is not logged as an auth event because the transport succeeded. Detection requires comparing the token's scope set to the scope set embedded in the replayed events — whic..."
  },
  "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": "ad4fc8086ac55ad5084a55f19a16977fba0097f912ded34580222324d0386ef4",
    "verified_classes": [
      "ResumeAuthContextMismatch",
      "EventLogDestroyedOnAuthFailure",
      "AuthContext",
      "SessionRecord"
    ],
    "verified_functions": [
      "resume_session",
      "fingerprint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EventLogDestroyedOnAuthFailure",
      "ResumeAuthContextMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
