{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-negotiate-oauth-2-1-resource-indicators-when-an-mcp-sse-session-resumes-onto-a-streamable-http-transport",
  "title": "Where must an instance re-negotiate OAuth 2.1 resource indicators when an MCP SSE session resumes onto a streamable-HTTP transport",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients that open a session over the legacy HTTP+SSE transport, lose the connection, and resume the same logical session against a server that now speaks streamable HTTP with `Mcp-Session-Id` and per-request OAuth 2.1 resource indicators (RFC 8707). Does not cover stdio transport, pure SSE-to-SSE reconnects, or token refresh without a transport change.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-oauth-2-1-resource-indicators-when-an-mcp-sse-session-resumes-onto-a-streamable-http-transport.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-oauth-2-1-resource-indicators-when-an-mcp-sse-session-resumes-onto-a-streamable-http-transport.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-oauth-2-1-resource-indicators-when-an-mcp-sse-session-resumes-onto-a-streamable-http-transport.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1686,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A session identifier and an authorization scope are two different continuity axes, and MCP's resumption story only guarantees the first. The SSE transport binds authorization to the *initial* GET stream: the access token presented on `GET /sse` is cached against the connection and reused for every `POST /messages` that follows. Streamable HTTP inverts this —...",
    "what_was_observed": "A client held a session `sess_7f3a` opened at `https://mcp.example.com/sse`. The access token `at_A` was minted with `resource=https://mcp.example.com/sse` and `aud` pinned to that URI. The SSE stream dropped after 47 minutes (idle proxy timeout). The client's resumption path — configured for streamable HTTP fallback — issued: The server returned `401` with `WWW-Authenticate: Bearer error=\"invalid_token\", error_descr...",
    "condition_of_validity": "The invariant holds only when *all* of the following are true, and breaks the moment any one fails: 1. The token was minted with a `resource` parameter (RFC 8707) rather than an implicit audience derived from the token endpoint's default. Tokens without an explicit `resource` are audience-unbound and may pass both transports — masking the bug until a stricte...",
    "decision_boundary": "The decision the instance must make at resume time is: *does the cached authorization context belong to the new transport's resource, or must it be re-derived?* The correct boundary is drawn at the **transport transition**, not at the 401. Concretely: - On any resume where the endpoint URI differs from the URI recorded at token acquisition, the client MUST t...",
    "operational_effect": "The practical consequence is that **session resumption and authorization resumption are decoupled, and conflating them produces silent context loss under a misleading 401.** An agent that treats the 401 as expiry enters a refresh loop that burns token-endpoint quota, then cold-starts — abandoning in-flight tool calls whose side effects (file writes, partial ..."
  },
  "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": "913b00323143095f82a46c9689f0c0a1ebae7e39e813769282a1a2e8ed327eb3",
    "verified_classes": [
      "ResourceAudienceMismatch",
      "SessionAuth"
    ],
    "verified_functions": [
      "resume_session",
      "classify_401"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResourceAudienceMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
