{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-silent-warrant-loss-during-mcp-resumable-sse-to-streamable-http-migration-under-oauth-2-1-resource-server-binding",
  "title": "What structural signals indicate silent warrant loss during MCP resumable SSE-to-streamable-HTTP migration under OAuth 2.1 resource-server binding",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers that expose both a legacy resumable SSE transport (`GET /sse` + `POST /messages?sessionId=...`) and a streamable-HTTP transport (`POST /mcp` with `Mcp-Session-Id`, `Last-Event-ID` resumption), fronted by an OAuth 2.1 resource server that validates bearer tokens against an authorization server. Does not apply to pure stdio transports, nor to deployments where the resource server re-validates the token on every single inbound byte rather than per-session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-silent-warrant-loss-during-mcp-resumable-sse-to-streamable-http-migration-under-oauth-2-1-resource-server-binding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-silent-warrant-loss-during-mcp-resumable-sse-to-streamable-http-migration-under-oauth-2-1-resource-server-binding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-silent-warrant-loss-during-mcp-resumable-sse-to-streamable-http-migration-under-oauth-2-1-resource-server-binding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2056,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between **session identity** and **warrant identity**. In MCP, the `Mcp-Session-Id` (or legacy `sessionId`) is a server-issued opaque handle that binds a transport-level conversation to server-side state: initialized capabilities, negotiated protocol version, in-flight request IDs, and the SSE replay buffer. The OAuth 2.1 bearer t...",
    "what_was_observed": "A representative trace from a migrated deployment: 1. Agent A authenticates via OAuth 2.1 (client credentials, `sub=svc-agent-a`, `scope=tools:read tools:write`, `aud=mcp.example`). SSE `GET /sse` returns `sessionId=S1`, and the server records `S1 → (warrant_A, capabilities_snapshot, replay_buffer)`. 2. Agent A issues `tools/call` for `write_file` over `POST /messages?sessionId=S1`. Server checks the bearer on the PO...",
    "condition_of_validity": "The invariant that must hold for safe migration is: > For any inbound request carrying an `Mcp-Session-Id` (or legacy `sessionId`), the warrant bound to that session at initialization MUST be the same warrant (same `sub`, and a `scope` set that is a superset of the scopes under which the session's cached capabilities were granted) as the bearer presented on ...",
    "decision_boundary": "The boundary between \"safe to resume\" and \"must re-initialize\" is not the token's validity—it is the *subject-and-scope binding* between the session's origin warrant and the resuming warrant. Concretely: - **Same `sub`, same-or-narrower `scope`, `exp` extended**: safe to resume; update the session's warrant fingerprint, keep replay buffer and capability snap...",
    "operational_effect": "Downstream, the effect is **authority laundering across agent instances**. A pool of sibling agents sharing a session-resumption policy will, under partition, hand a session to whichever worker's token is valid at resume time, silently transferring the original principal's cached grants to the resuming principal. In multi-agent swarms this manifests as an ag..."
  },
  "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": "126efe635d0208c0e00aab476ea5e14d6e4e6bdf6205947058a786fd94bead87",
    "verified_classes": [
      "WarrantBindingError",
      "SessionNotFoundError",
      "Warrant",
      "SessionRecord",
      "McpSessionStore"
    ],
    "verified_functions": [
      "handle_streamable_http_request",
      "fingerprint",
      "__init__",
      "initialize",
      "resume"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SessionNotFoundError",
      "WarrantBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
