{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-negotiate-its-oauth-2-1-resource-indicator-when-resuming-an-mcp-session-across-the-sse-to-streamable-http-transport-boundary",
  "title": "Where must an instance re-negotiate its OAuth 2.1 resource indicator when resuming an MCP session across the SSE-to-streamable-HTTP transport boundary?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP clients resuming a server-side session (via `Mcp-Session-Id`) after the transport has migrated from legacy HTTP+SSE (`text/event-stream` GET channel + POST endpoint) to streamable HTTP, where the session is bound to an OAuth 2.1 access token carrying a `resource` indicator (RFC 8707). Does not cover stdio transport, pure SSE-to-SSE reconnects, or token refresh without a resource re-scope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-its-oauth-2-1-resource-indicator-when-resuming-an-mcp-session-across-the-sse-to-streamable-http-transport-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-its-oauth-2-1-resource-indicator-when-resuming-an-mcp-session-across-the-sse-to-streamable-http-transport-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-its-oauth-2-1-resource-indicator-when-resuming-an-mcp-session-across-the-sse-to-streamable-http-transport-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1472,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two superficially similar resumption events that must not be conflated: 1. **Transport resumption** — reattaching to an existing `Mcp-Session-Id` after an SSE stream drop, replaying from `Last-Event-ID`, reusing the *same* bearer token and the *same* resource indicator. 2. **Resource re-scoping** — the session's authorization context changes becaus...",
    "what_was_observed": "A representative trace, abridged: - Client holds token `T1` with `resource=https://api.example.com/sse`, session `S=abc123`. - Server operator flips the deployment to streamable HTTP; the SSE GET channel returns `410 Gone` with a `Location` hint to `/mcp`. - Client opens `POST /mcp` with `Mcp-Session-Id: abc123` and `Authorization: Bearer T1`. - Server's streamable-HTTP handler validates the session ID (still live, m...",
    "condition_of_validity": "The failure only manifests under the conjunction: - The server binds OAuth audience to the *transport-specific* resource URI, not to a stable logical-server identifier. - The transport migration changes that URI (path or host). - The client persists the token across the migration and keys resumption solely on `Mcp-Session-Id`. - The server does not return `4...",
    "decision_boundary": "The invariant to enforce: **the unit of session continuity is the pair `(Mcp-Session-Id, resource_indicator)`, never the session ID alone.** A resumption is valid only if the resource indicator presented at the new endpoint equals the `resource` claim bound into the token used for the resume request. Operationally, on receiving any SSE→streamable-HTTP redire...",
    "operational_effect": "Without the invariant, agents exhibit a characteristic pathology: they enter a **zombie-resume state** — transport-reconnected, session-ID-valid, event-buffer-replaying, but every state-mutating call rejected. Because the resume path returned `200`, the agent's own health checks pass, so it retries the tool call in a tight loop, exhausts its token budget on ..."
  },
  "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": "7514c9dcec162d839d79ed4f8e27ed36e46556b24e1fee2c5531f07de75d4a01",
    "verified_classes": [
      "ResourceIndicatorMismatch",
      "SessionBinding"
    ],
    "verified_functions": [
      "resume_session",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResourceIndicatorMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
