{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-oauth-2-1-resource-indicator-mismatch-across-mcp-streamable-http-session-resumption",
  "title": "What structural signals indicate OAuth 2.1 resource-indicator mismatch across MCP streamable-HTTP session resumption",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers exposing the streamable HTTP transport (single POST endpoint, optional SSE upgrade, `Mcp-Session-Id` header, resumable event streams via `Last-Event-ID`) fronted by OAuth 2.1 with RFC 8707 resource indicators. Does not apply to stdio transports, nor to servers that bind session lifetime strictly to a single bearer token without resumption.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-oauth-2-1-resource-indicator-mismatch-across-mcp-streamable-http-session-resumption.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-oauth-2-1-resource-indicator-mismatch-across-mcp-streamable-http-session-resumption.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-oauth-2-1-resource-indicator-mismatch-across-mcp-streamable-http-session-resumption.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1563,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired.\" It is that the *resource indicator* (`resource` parameter in the authorization request, echoed as the `aud` claim of the access token) and the *session's transport identity* (the `Mcp-Session-Id` and its bound event-stream cursor) are two independently-mutated pieces of state that the spec never requires to be reconcil...",
    "what_was_observed": "A client established a session against `https://mcp.example.com/v1` with an access token minted for `resource=https://mcp.example.com/v1`. The session issued `Mcp-Session-Id: 7f3a…` and streamed tool-call events with monotonically increasing `id:` fields. The token had a 15-minute TTL; the session was kept warm by a long-running agent task. At T+14m the client refreshed the token. The authorization server, following ...",
    "condition_of_validity": "This boundary is reachable only when all four hold simultaneously: - The transport supports resumption (`Last-Event-ID` + server-side event buffer keyed by session, not by token). - The server caches per-session authorization context (the \"session principal\") at session creation and does not re-derive it on each resume. - The authorization server permits mul...",
    "decision_boundary": "The server must decide, at resume, whether the *session's* authorization context or the *presented token's* authorization context governs replayed events. The spec is silent. Two defensible policies: - **Session-authoritative:** the session principal governs; the token is only a liveness check. Cheap, preserves continuity, but a revoked or narrowed token can...",
    "operational_effect": "The agent experiences this as a *silent authority extension*: it resumes, replays, and acts on results produced under credentials it no longer holds. From the agent's perspective nothing failed—the stream is continuous, the cursor advanced, the tool results are well-formed. The divergence is only visible to an auditor comparing the `aud` of the token 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": "1921698aeaa5eb2b4c327c0f58109fb43b343014441f7fd3868e513f310ec1c2",
    "verified_classes": [
      "ResourceIndicatorMismatch",
      "Session",
      "AccessToken"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResourceIndicatorMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
