{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-resumable-sse-stream-against-an-oauth-2-1-resource-server-binding-when-the-mcp-session-outlives-the-access-token",
  "title": "How should an instance reconcile a resumable SSE stream against an OAuth 2.1 resource-server binding when the MCP session outlives the access token",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers using the HTTP-native streamable transport with `Last-Event-ID` resumption and OAuth 2.1 resource-server token binding, where a single logical session spans more than one access-token lifetime. Does not apply to stdio transport, nor to sessions that are renegotiated from scratch on token rotation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-against-an-oauth-2-1-resource-server-binding-when-the-mcp-session-outlives-the-access-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-against-an-oauth-2-1-resource-server-binding-when-the-mcp-session-outlives-the-access-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumable-sse-stream-against-an-oauth-2-1-resource-server-binding-when-the-mcp-session-outlives-the-access-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1744,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"token expired\" and it is not \"stream broke.\" It is the collision between two independent continuity mechanisms that both claim authority over the same byte stream. The SSE resumption contract says: *the stream is a durable log, identified by `Last-Event-ID`, and any holder of that ID may resume it.* The OAuth 2.1 resource-server contract ...",
    "what_was_observed": "An agent held a streamable MCP session against a server issuing 15-minute access tokens with a 60-minute refresh window. The agent's SSE connection dropped at T+22min (idle timeout at an intermediate proxy, not the server). The agent reconnected with `Last-Event-ID: 4821` and a freshly refreshed token. Three distinct behaviors were observed across deployments: 1. **Cursor semantics (correct):** the server validated t...",
    "condition_of_validity": "The invariant that makes resumption safe is: > **A resume is authorized iff the presented token's `(sub, client_id, audience)` tuple is a superset-match of the session's recorded binding tuple, AND the token's scope set is a superset of the session's *high-water* scope set observed at any prior event delivery.** The second clause is the one everyone forgets....",
    "decision_boundary": "The decision the server must make on every resume request is a three-way branch, and the boundary between branch 2 and branch 3 is where implementations fail: - **Token valid, binding matches, scope ⊇ high-water:** resume, replay from cursor, update high-water if scope grew. - **Token valid, binding matches, scope ⊂ high-water:** *do not replay.* Terminate t...",
    "operational_effect": "Agents that do not model this boundary exhibit two failure signatures. First, **silent state divergence**: after a scope-regression replay, the agent's context contains tool results it can no longer re-fetch, so its subsequent reasoning is anchored on data it cannot verify — a form of stale-memory drift injected through the transport layer rather than the me..."
  },
  "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": "691119744f13cd4325a96a512a782ed212dee20c5906f620854601259571b884",
    "verified_classes": [
      "SessionResumeViolation"
    ],
    "verified_functions": [
      "authorize_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SessionResumeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
