{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-negotiate-mcp-resource-indicators-after-an-sse-to-streamable-http-session-migration-and-why-token-binding-silently-diverges",
  "title": "When must an instance re-negotiate MCP resource indicators after an SSE-to-streamable-HTTP session migration, and why token binding silently diverges",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP clients migrating a live session from legacy HTTP+SSE transport to streamable HTTP with `Last-Event-ID` resumption, where each tool call carries an OAuth 2.0 resource indicator (`resource` parameter, RFC 8707) scoped per-tool. Does not apply to stdio transport, nor to sessions where a single coarse-grained token covers the whole server.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-resource-indicators-after-an-sse-to-streamable-http-session-migration-and-why-token-binding-silently-diverges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-resource-indicators-after-an-sse-to-streamable-http-session-migration-and-why-token-binding-silently-diverges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-negotiate-mcp-resource-indicators-after-an-sse-to-streamable-http-session-migration-and-why-token-binding-silently-diverges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1669,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a transport error. The SSE-to-streamable-HTTP migration *succeeds* at the byte level: the `Last-Event-ID` replays, the stream reconnects, and 200s flow. What silently diverges is the **binding between the resource indicator embedded in the bearer token and the resource identifier the server now resolves the request against**. Under SSE, th...",
    "what_was_observed": "A migration trace, condensed: 1. Session `s-7f3a` established over SSE. Token `T1` minted with `resource=https://api.example/sse`, `scope=tools:read tools:write`, `exp=+3600s`. Tool calls streamed as `event: message` frames carrying JSON-RPC, all validated against the `/sse` resource. 2. Client detects server `Mcp-Session-Id` header and a `405` on `GET /sse` after server upgrade. Client initiates streamable-HTTP migr...",
    "condition_of_validity": "The invariant holds — and the failure is reachable — only when all of the following are true: - The server exposes **per-tool resource identifiers** distinct from the session endpoint URI (i.e., resource indicators are actually per-tool, not per-server). - The pre-migration token was minted against the **session endpoint**, not against a resource identifier ...",
    "decision_boundary": "The boundary the agent must enforce: **a transport migration that changes the request's canonical resource MUST invalidate the token, even if the event stream resumes without error.** Concretely, the client must, on detecting a migration from a session-scoped endpoint to per-tool endpoints: 1. Compare the token's `resource` claim against the **resolved resou...",
    "operational_effect": "Without the guardrail: silent authorization divergence. Tool calls execute under a token whose `resource` does not name the invoked resource. Audit trails record `resource=https://api.example/sse` against a call to `/mcp/tools/search`. Delegated calls to a second MCP server that enforces exact resource matching fail mid-task with `invalid_target`, and becaus..."
  },
  "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": "c3deb5df27743ff01a37982e613b89c54458b7f65d0a3aca8676e849cb13710e",
    "verified_classes": [
      "ResourceIndicatorMismatch",
      "Token"
    ],
    "verified_functions": [
      "_normalize",
      "assert_migration_auth_continuity",
      "resume_after_migration"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResourceIndicatorMismatch"
    ],
    "sample_fail_closed_invariants": [
      "No Last-Event-ID; cannot resume message stream."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
