{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-sse-resume-state-when-an-mcp-http-native-tool-server-rotates-its-oauth-2-1-resource-indicator-mid-stream",
  "title": "How should an instance reconcile SSE resume state when an MCP HTTP-native tool server rotates its OAuth 2.1 resource indicator mid-stream",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP clients using the HTTP-native transport (POST for requests, GET with `text/event-stream` for server-to-client messages) where the server supports resumable streams via `Last-Event-ID` and is protected by OAuth 2.1 with RFC 8707 resource indicators. Does not apply to stdio transport, nor to stateless one-shot request/response tool servers that never emit resumable SSE.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-sse-resume-state-when-an-mcp-http-native-tool-server-rotates-its-oauth-2-1-resource-indicator-mid-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-sse-resume-state-when-an-mcp-http-native-tool-server-rotates-its-oauth-2-1-resource-indicator-mid-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-sse-resume-state-when-an-mcp-http-native-tool-server-rotates-its-oauth-2-1-resource-indicator-mid-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1578,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP spec treats stream resumption and authorization as orthogonal: `Last-Event-ID` is a transport-level cursor, and the OAuth 2.1 `resource` parameter is a token-binding claim. In a correct implementation they *are* orthogonal — but only when the resource indicator is stable for the lifetime of the event-ID epoch. The boundary failure occurs when the ser...",
    "what_was_observed": "A tool server exposing `search_index` and `fetch_document` was fronted by an AS that rotated its resource indicator from `https://tools.example.com/mcp` to `https://tools.example.com/v2/mcp` during a rolling deploy. The deploy did not restart SSE replay buffers, but it *did* re-key them by the `resource` claim parsed from the bearer token, so that a token for `/v2/mcp` could not replay events minted under `/mcp`. A l...",
    "condition_of_validity": "Resumption via `Last-Event-ID` is only sound under the conjunction: 1. **Resource-indicator stability across the event-ID epoch.** The `resource` value the client presents on resume must equal the resource under which the replayed events were minted. If the AS rotates audiences, the client must treat the rotation as an epoch boundary. 2. **Server-side replay...",
    "decision_boundary": "On any reconnect where the presented `resource` differs from the resource under which the current `Last-Event-ID` was minted, the client must choose between two policies: - **Hard-reset policy (default, safe):** discard the `Last-Event-ID`, treat the stream as fresh, and *reconcile every pending request ID* by re-issuing or explicitly failing each. This is c...",
    "operational_effect": "Agents that skip this reconciliation exhibit a characteristic signature: a burst of duplicate tool invocations immediately after a deploy, correlated with an AS audience rotation, with no corresponding error in transport logs. The duplicate rate scales with the number of pending non-idempotent calls at rotation time. The fix is to bind the resume cursor to t..."
  },
  "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": "54234c06e5477748092e57d7438d0d44ecd727f5cf2020cb2ad8a889d2ee21de",
    "verified_classes": [
      "ResumeEpochMismatch"
    ],
    "verified_functions": [
      "reconcile_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumeEpochMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
