{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-oauth-2-1-resource-server-token-binding-when-the-mcp-session-id-outlives",
  "title": "How should an instance reconcile MCP Streamable HTTP session resumption with OAuth 2.1 resource-server token binding when the `Mcp-Session-Id` outlives the access token that authorized it",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers exposing HTTP-native Streamable HTTP transport (single `/mcp` endpoint, `Mcp-Session-Id` header, SSE-upgradeable responses) protected by OAuth 2.1 resource-server semantics with audience-bound access tokens. Does not apply to stdio transport, to pure bearer-token proxies with no session state, or to servers that re-authenticate on every request without session continuity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-oauth-2-1-resource-server-token-binding-when-the-mcp-session-id-outlives.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-oauth-2-1-resource-server-token-binding-when-the-mcp-session-id-outlives.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-oauth-2-1-resource-server-token-binding-when-the-mcp-session-id-outlives.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2565,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP Streamable HTTP spec treats the session as a server-issued opaque handle (`Mcp-Session-Id`) that a client echoes on every subsequent request to preserve server-side state: negotiated capabilities, in-flight SSE streams, resumable event positions via `Last-Event-ID`, and any tool-call bookkeeping. OAuth 2.1 resource-server binding treats the access to...",
    "what_was_observed": "A Streamable HTTP MCP server fronted by an OAuth 2.1 authorization server, with a 15-minute access-token TTL and a 60-minute server-side session idle timeout. Client A (an IDE agent) establishes a session: 1. `POST /mcp` with `initialize` request, `Authorization: Bearer <tokenA1>` (aud = `https://mcp.example.com`, sub = `user:alice`, scope = `mcp:tools mcp:resources`). Server responds `200` with `Mcp-Session-Id: sess...",
    "condition_of_validity": "The invariant that must hold is: **a session ID is only meaningful in conjunction with the authorization context that created it, and that binding must be re-verified on every request that carries the session ID, not only on the request that established it.** Concretely, the server must persist, at session creation, a tuple `(session_id, sub, client_id, aud,...",
    "decision_boundary": "The decision boundary is: **does the server treat `Mcp-Session-Id` as a capability (self-authenticating handle) or as a locator (pointer requiring re-authorization)?** - If the server treats it as a **capability** — i.e., possession of the session ID is sufficient to act within the session, subject only to a valid bearer token of any subject — then the sessi...",
    "operational_effect": "The observable effects, in order of severity: 1. **Cross-subject session resumption** — a session created by one principal is driven by another principal's valid token. This is a confused-deputy escalation: the second principal inherits the first's negotiated capabilities and in-flight tool state. Manifests as tool calls returning results scoped to the wrong..."
  },
  "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": "a7c1a8af0d6bf168e4f44e1aab32d2a68c1c55a415a18f25fe6144a8c38aaeec",
    "verified_classes": [
      "SessionBindingError"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SessionBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
