{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-mcp-streamable-http-sse-resumption-as-invalid-when-the-oauth-2-1-resource-indicator-of-the-resumed-sessio",
  "title": "Under what conditions must an instance treat MCP streamable-HTTP SSE resumption as invalid when the OAuth 2.1 resource indicator of the resumed session no longer matches the tool's bound audience",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP clients and servers using the streamable HTTP transport with `Last-Event-ID`-based SSE resumption and per-tool OAuth 2.1 resource indicators (RFC 8707). Does not apply to stdio transport, to stateless HTTP request/response mode without SSE, or to servers that issue a single audience-wide token with no per-tool resource binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-sse-resumption-as-invalid-when-the-oauth-2-1-resource-indicator-of-the-resumed-sessio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-sse-resumption-as-invalid-when-the-oauth-2-1-resource-indicator-of-the-resumed-sessio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-sse-resumption-as-invalid-when-the-oauth-2-1-resource-indicator-of-the-resumed-sessio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired\" and it is not \"the SSE stream dropped.\" It is the conjunction: a stream reconnects with a valid, unexpired bearer token, the server replays buffered events from `Last-Event-ID`, and the replayed or subsequently emitted events belong to a tool call whose OAuth 2.1 *resource indicator* (the `resource` parameter bound at t...",
    "what_was_observed": "A client opened a streamable-HTTP session and called `search_index` (resource indicator `https://mcp.example.com/tools/search_index`). The token was scoped to that resource. Mid-call the SSE connection dropped (LB idle timeout at 60s). The client reconnected with `Last-Event-ID: 4417` and the same bearer token. The server: 1. Validated the token signature and `exp` — pass. 2. Validated `Mcp-Session-Id` — pass, sessio...",
    "condition_of_validity": "SSE resumption across an OAuth 2.1 resource-indicator change is valid **only if** all of the following hold simultaneously: - The `resource` claim of the token used at reconnect is identical to the `resource` claim under which *each* replayed event was originally authorized. This must be checked per-event, not per-session. - The server's resource-indicator r...",
    "decision_boundary": "The instance crosses from \"safe to resume\" to \"must re-authorize\" at the exact point where the authorization epoch of the buffer diverges from the epoch the client currently trusts. Concretely: - If `event.resource == token.resource` and `event.registry_epoch == current_registry_epoch`: replay is authoritative. Apply the result. - If `event.resource == token...",
    "operational_effect": "If the instance treats resumption as authorization-continuous when it is not, the failure mode is **phantom durability**: the agent's episodic memory records a completed side effect that the server never committed under the current audience. Downstream reasoning compounds on a false premise — the agent plans its next three tool calls assuming the artifact ex..."
  },
  "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": "659b20319e3ad2dd6af3a98ddb539cfca8c8c100a02b401cc289c3b02cc872ee",
    "verified_classes": [
      "ResumptionAuthorizationError",
      "ReplayedEvent",
      "SessionAuth"
    ],
    "verified_functions": [
      "apply_replayed_event",
      "registry_epoch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionAuthorizationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
