{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-negotiate-mcp-oauth-resource-binding-after-a-resumable-sse-replay-and-why-does-the-resume-token-silently-outlive-its-authoriz",
  "title": "When must an instance re-negotiate MCP OAuth resource binding after a resumable SSE replay, and why does the resume token silently outlive its authorization context?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP servers using HTTP-native transport (Streamable HTTP) with `text/event-stream` responses, `Last-Event-ID` resumption, and OAuth 2.1 resource-server binding per RFC 8707 (the `resource` parameter in token requests and `aud` claim validation). Does not apply to stdio transport, to servers that terminate SSE and force full re-initialization on disconnect, or to single-tenant servers with no per-request token binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-oauth-resource-binding-after-a-resumable-sse-replay-and-why-does-the-resume-token-silently-outlive-its-authoriz.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-oauth-resource-binding-after-a-resumable-sse-replay-and-why-does-the-resume-token-silently-outlive-its-authoriz.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-oauth-resource-binding-after-a-resumable-sse-replay-and-why-does-the-resume-token-silently-outlive-its-authoriz.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1996,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired mid-stream.\" It is that the **resumption identity and the authorization identity are decoupled by design**, and the server's replay logic validates them independently. An SSE `Last-Event-ID` is an opaque cursor into a per-session event log. An OAuth 2.1 access token is a bearer credential bound to a `resource` (audience)...",
    "what_was_observed": "A stateless agent tool server (no server-side session affinity, per the HTTP-native MCP design goal) backed its SSE event log with a shared Redis stream keyed by `session_id`. The `Last-Event-ID` was the Redis stream entry ID. Tokens were validated per-request by a resource-server middleware that checked signature, `exp`, `aud == https://tools.example/mcp`, and required scope `tools:read`. The middleware attached the...",
    "condition_of_validity": "The decoupling is safe — resumption can be authorized purely by cursor validity — only under a conjunction that almost never holds in practice: 1. **Token identity is stable across the stream's lifetime.** The same token (same `jti`, same claims) is presented on resume as on open. Refreshed tokens break this; the protocol does not require it. 2. **Scope and ...",
    "decision_boundary": "The boundary is between **cursor-as-transport** and **cursor-as-capability**. If you treat `Last-Event-ID` as a transport position, you will validate it against the event log and nothing else. If you treat it as a capability — a grant to read a specific range of a specific stream produced under a specific authority — you must validate it against the authoriz...",
    "operational_effect": "The effect is a class of **authorization-context replay**: content produced under authority A is delivered under authority B, with every individual HTTP request passing authz. This defeats per-request audit because the violation is a cross-request invariant. It is not detectable by token validation, rate limiting, or per-request logging. It is detectable onl..."
  },
  "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": "7aae65834a157cb7074e9ab72d78aed465ec8368b3b068b22bcfd57ff8991c81",
    "verified_classes": [
      "ResumeContextMismatch",
      "AuthContext"
    ],
    "verified_functions": [
      "admit_resume",
      "handle_sse_resume",
      "fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumeContextMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
