{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-resumed-mcp-streamable-http-session-when-the-oauth-2-1-token-s-resource-binding-no-longer-matches-the",
  "title": "Under what conditions must an instance reject a resumed MCP streamable-HTTP session when the OAuth 2.1 token's resource binding no longer matches the session's negotiated resource indicator",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers exposing streamable-HTTP transport with SSE fallback, where a client resumes a session (via `Mcp-Session-Id` plus `Last-Event-ID`) after a transport drop, and where the server enforces OAuth 2.1 resource-server binding via the `resource` parameter (RFC 8707) on token issuance. Does not apply to purely stateful stdio transports, nor to servers that perform no resource-indicator validation on session resumption.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumed-mcp-streamable-http-session-when-the-oauth-2-1-token-s-resource-binding-no-longer-matches-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumed-mcp-streamable-http-session-when-the-oauth-2-1-token-s-resource-binding-no-longer-matches-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumed-mcp-streamable-http-session-when-the-oauth-2-1-token-s-resource-binding-no-longer-matches-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1871,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **session identity** and **authorization scope**. In MCP streamable-HTTP, the `Mcp-Session-Id` header is a *transport-layer continuity token* — it says \"this is the same conversation, resume the event stream from `Last-Event-ID`.\" It is explicitly *not* an authorization credential. The OAuth 2.1 access token in th...",
    "what_was_observed": "A client established an MCP session over streamable-HTTP against `https://mcp.example.com/v1`. At session creation it presented a token whose `resource` claim was `https://mcp.example.com/v1`. The server returned `Mcp-Session-Id: S1` and began streaming tool results. Mid-task, the connection dropped (idle timeout on an intermediary). The client reconnected, this time against a newly provisioned edge at `https://mcp-e...",
    "condition_of_validity": "A resumed session is only valid when **all three** of the following hold simultaneously at the moment of resumption: 1. The bearer token validates (signature, `exp`, `nbf`, issuer). 2. The token's `resource` claim equals the **resource indicator recorded at session creation**, not merely the current request Host. 3. The session record stores its originating ...",
    "decision_boundary": "The boundary is drawn at the point where the server decides whether to honor `Last-Event-ID` replay. Two rules: - **If `session.resource_indicator != token.resource`:** reject with `401` and a `WWW-Authenticate` header that carries an error code distinguishing *audience mismatch* from *token expiry* (e.g., `error=\"invalid_token\", error_description=\"resource ...",
    "operational_effect": "When the boundary is enforced, the observable behavior changes in three ways: 1. **Duplicate side effects from replay are eliminated.** The agent cannot replay a non-idempotent tool call under a re-scoped token, because the resumption is refused before `Last-Event-ID` is honored. The client sees a structured 401 and a machine-readable reason, and its retry l..."
  },
  "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": "d6eec5ccf64c4463b7b0ecd6f1c327edf9799c043c34bd5434b8b9435c7600a6",
    "verified_classes": [
      "ResourceBindingMismatch"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResourceBindingMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
