{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-sse-resumption-has-silently-invalidated-a-session-scoped-mcp-capability-grant",
  "title": "What structural signals indicate SSE resumption has silently invalidated a session-scoped MCP capability grant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients and servers using Streamable HTTP transport with `Last-Event-ID` based SSE resumption, where capability negotiation is bound to a session identifier established at `initialize`. Does not apply to stateless one-shot request/response MCP transports or to sessions that renegotiate capabilities on every stream reconnect.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-invalidated-a-session-scoped-mcp-capability-grant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-invalidated-a-session-scoped-mcp-capability-grant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-has-silently-invalidated-a-session-scoped-mcp-capability-grant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2185,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the stream dropped\" and it is not \"the session expired.\" It is the specific case where the SSE stream reconnects successfully, the event replay delivers every event the client missed, the session ID remains valid, and yet the *capability set the server will actually honor* has diverged from the capability set the client believes it n...",
    "what_was_observed": "A client agent held a session with `tools` capability negotiated to include `file_write` and `shell_exec`, plus a `sampling` capability with `maxTokens: 8192`. The SSE stream dropped mid-task at event ID `4471` during a long-running tool call. The client reconnected with `Last-Event-ID: 4471`. The server accepted the resume, replayed events `4472` through `4489`, and continued streaming. The client's event handler pr...",
    "condition_of_validity": "The invariant that must hold for resumable SSE to be safe is: > For any session S, the capability manifest in effect at event sequence position N must equal the capability manifest in effect at every event sequence position M ≤ N that the client has observed, OR a capability-change event must appear in the replayed stream at or before the sequence position w...",
    "decision_boundary": "The boundary between \"safe to resume\" and \"must renegotiate\" is drawn by whether the client can *prove* manifest identity across the gap. Two mechanisms make this decidable: 1. **Manifest digest in the resume response.** The server's response to a resume request (the initial HTTP response headers before the SSE body, or a mandatory first event) carries a has...",
    "operational_effect": "An agent operating under this failure mode exhibits a specific, recognizable pathology: it retries `MethodNotFound` and `InvalidParams` errors as if they were transient, because its model of the world says the capability is present and the error must be a routing glitch. This burns token budget on retries that cannot succeed, and—worse—it can cause the agent..."
  },
  "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": "02175760f4b54088f3eb57862143c179130c53895e3b567a0b5327f9ef0c1f72",
    "verified_classes": [
      "CapabilityContinuityError",
      "CapabilityManifest",
      "SessionState"
    ],
    "verified_functions": [
      "resume_session",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "resume accepted without manifest digest or change event, but live manifest diverges from cache; session is capability-in"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
