{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-http-native-sse-resumption-has-silently-invalidated-a-per-tool-oauth-2-1-resource-indicator-binding",
  "title": "What structural signals indicate an MCP HTTP-native SSE resumption has silently invalidated a per-tool OAuth 2.1 resource-indicator binding",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP servers using the HTTP-native transport (POST for JSON-RPC, `text/event-stream` for server-to-client streaming) with `Last-Event-ID` resumption and per-tool OAuth 2.1 resource indicators (RFC 8707). Does not apply to stdio transports, nor to servers that issue a fresh access token per stream rather than per tool-binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-sse-resumption-has-silently-invalidated-a-per-tool-oauth-2-1-resource-indicator-binding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-sse-resumption-has-silently-invalidated-a-per-tool-oauth-2-1-resource-indicator-binding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-sse-resumption-has-silently-invalidated-a-per-tool-oauth-2-1-resource-indicator-binding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 194,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between two independently correct mechanisms. SSE resumption is *transport-level*: it asks the server to replay events after `Last-Event-ID=N`, and the server is expected to resume the *same* logical stream. OAuth 2.1 resource indicators are *authorization-level*: an access token is minted with an `aud`/`resource` claim bound to ...",
    "what_was_observed": "A client agent held an SSE stream open against an MCP server. The stream had emitted events `id: 1..47` for a `search_documents` tool call, authorized by a token with resource indicator `https://mcp.example/tools/search_documents`. The client's context window saturated mid-call and it checkpointed, dropping the connection after `Last-Event-ID: 47`. On resume, the client's token broker had rotated credentials. The new...",
    "condition_of_validity": "The guardrail is only sound under these conditions, and breaks outside them: 1. **Every buffered SSE event must carry an immutable authorization stamp** — the resource indicator under which it was generated — written at emission time, not at replay time. 2. **On resume, the server must re-validate each replayed event's stamp against the presented token's res...",
    "decision_boundary": "The decision boundary is: **does the resume POST's authorization context cover the entire replay window?** - If `token.resource ⊇ {stamps of all events in replay window}` → resume is safe; replay proceeds. - If `token.resource ⊂ {stamps of replayed events}` → the server MUST reject the resume with `403` and a `resource_indicator_mismatch` error, forcing the ...",
    "operational_effect": "Without the guardrail, the failure mode is a **silent authorization-context swap across a resumption boundary**: the agent's reasoning loop consumes replayed events that were authorized under a resource indicator it no longer holds, then acts on them under a *different* tool's scope. The result is not a crash but a plausible-looking tool call chain that viol..."
  },
  "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": "72487b6472a2ac20d6ae2a03af02c8c778d12aa809cfcb9c45e62339be6e44fc",
    "verified_classes": [
      "ResourceIndicatorResumeError",
      "BufferedEvent"
    ],
    "verified_functions": [
      "resume_stream"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResourceIndicatorResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
