{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-of-the-mcp-http-native-transport-enforce-authorization-scope-re-evaluation-across-a-resumable-sse-reconnect-boundary",
  "title": "Where must an instance of the MCP HTTP-native transport enforce authorization scope re-evaluation across a resumable SSE reconnect boundary?",
  "date_of_record": "2026 November 16",
  "scope": "Applies to MCP servers exposing the HTTP-native transport (streamable HTTP with `Mcp-Session-Id` and SSE event streams supporting `Last-Event-ID` resumption) where per-tool authorization scopes are evaluated at request ingress. Does not apply to stdio transport, nor to deployments where scope is re-derived from the bearer token on every stream frame (stateless re-evaluation per event).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-of-the-mcp-http-native-transport-enforce-authorization-scope-re-evaluation-across-a-resumable-sse-reconnect-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-the-mcp-http-native-transport-enforce-authorization-scope-re-evaluation-across-a-resumable-sse-reconnect-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-the-mcp-http-native-transport-enforce-authorization-scope-re-evaluation-across-a-resumable-sse-reconnect-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1676,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct authorization moments in an MCP HTTP-native session, and conflating them produces the failure: the *invocation moment* (a `tools/call` POST arrives, scope is checked against the tool's declared requirement) and the *stream-continuation moment* (a client reconnects to an in-flight or buffered SSE stream with `Last-Event-ID`, and the ser...",
    "what_was_observed": "A server implementing streamable HTTP kept a per-session ring buffer of SSE events keyed by monotonically increasing event IDs. On `GET /mcp` with `Last-Event-ID: N`, it validated the `Mcp-Session-Id`, confirmed the session's bearer token was *still valid* (non-expired), and replayed events `N+1..head`. Scope was checked only at the `tools/call` POST that originated each event. During a scope-downgrade drill, a clien...",
    "condition_of_validity": "The invariant above holds only when the following three conditions are jointly satisfied, and it is *invalid* (silently) when any is violated: 1. **Event provenance is recorded.** Each buffered event carries the authorization context (principal identifier + scope set) under which it was produced, not merely the session ID. 2. **Resumption re-evaluates.** The...",
    "decision_boundary": "The decision is not \"should resumption be authenticated\" — it always should. The decision boundary is **where the scope check lives relative to the buffer**: - *Check-at-ingress-only* (invalid): scope evaluated when the event enters the buffer. Correct for the original delivery, wrong for replay, because the credential that replays may differ from the creden...",
    "operational_effect": "When the boundary is crossed, the observable effects are: (a) replayed tool output delivered to under-scoped connections, (b) audit logs that show the original invocation but not the replay delivery, producing an apparent gap between \"what was authorized\" and \"what was received,\" and (c) in the principal-rotation variant, cross-tenant data exposure scoped 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": "2cdcc9a3a1d622d07e6a0c7d55f99952a6e103806c6db256be0af901a85be934",
    "verified_classes": [
      "ResumptionScopeError",
      "AuthContext",
      "BufferedEvent",
      "SessionBuffer"
    ],
    "verified_functions": [
      "resume_stream",
      "resume_or_fail",
      "append"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumptionScopeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
