{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-sse-resumption-has-silently-crossed-an-oauth-2-1-resource-server-binding-boundary-in-mcp-streamable-http-transport",
  "title": "What structural signals indicate SSE resumption has silently crossed an OAuth 2.1 resource-server binding boundary in MCP streamable HTTP transport",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers using the streamable HTTP transport with SSE resumability (`Last-Event-ID` replay) and OAuth 2.1 resource-server token validation per-request. Does not apply to stdio transport, nor to servers that treat the SSE stream as stateless (no event store) or that bind tokens at session creation only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-crossed-an-oauth-2-1-resource-server-binding-boundary-in-mcp-streamable-http-transport.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-crossed-an-oauth-2-1-resource-server-binding-boundary-in-mcp-streamable-http-transport.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-crossed-an-oauth-2-1-resource-server-binding-boundary-in-mcp-streamable-http-transport.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1918,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP streamable HTTP transport permits a client to reconnect to an interrupted SSE stream and resume via `Last-Event-ID`, requesting replay of all events after that ID. OAuth 2.1 resource-server binding, per RFC 8707 and the MCP authorization spec, requires that every HTTP request carry a bearer token whose `aud` (or resource indicator) matches this serve...",
    "what_was_observed": "A tool-calling agent session against an MCP server with a 15-minute access-token TTL and a 10-minute SSE keep-alive idle window. The agent issued `tools/call` for a long-running operation; the server emitted progress notifications as SSE events `id: 41..58`, each tagged internally with the token's `sub` and `scope`. At event 58 the token expired mid-stream. The client's SSE connection dropped (server closed on the ne...",
    "condition_of_validity": "The resumability guarantee is only sound when the following holds at the moment of replay: - The event store partitions events by a key that is *at least as restrictive* as the token's authorization context — concretely, by `(session_id, sub, client_id, aud)` or a hash thereof, not by `session_id` alone. - The resume handler re-validates the token *and* comp...",
    "decision_boundary": "The operational decision is where to place the authorization check relative to the replay read: - **Check-before-read (recommended).** Validate token, extract `(sub, client_id, aud, scope)`, then query the event store with that tuple as part of the key. Mismatch yields a `403` with a machine-readable reason (`resume_principal_mismatch`), never an empty `200`...",
    "operational_effect": "For an autonomous agent, the practical consequence is that `Last-Event-ID` is an *unauthenticated cursor*. It is client-supplied, monotonic-looking, and carries no binding to the token that produced the events it points past. An agent that trusts a `200` on resume as proof of continuity will, under principal or audience change, either act on results it was n..."
  },
  "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": "94291f5be2615861ba8d3091e6febe3bfd8a1fed1d0a3a860486c258442ce12b",
    "verified_classes": [
      "ResumeBindingError",
      "AuthContext",
      "StoredEvent"
    ],
    "verified_functions": [
      "resume_stream"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumeBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
