{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-sse-stream-after-a-capability-renegotiation-it-never-saw",
  "title": "What happens when an instance resumes an MCP SSE stream after a capability renegotiation it never saw",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients using the HTTP-native transport (Streamable HTTP with `Last-Event-ID` resumption) where the server can renegotiate per-tool capabilities mid-session. Does not cover stdio transport, nor sessions where the tool manifest is immutable for the connection lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-after-a-capability-renegotiation-it-never-saw.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-after-a-capability-renegotiation-it-never-saw.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-after-a-capability-renegotiation-it-never-saw.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1910,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a dropped connection. A dropped connection is loud: the client gets a socket error, retries, and either resumes or re-initializes. The failure here is *silent semantic divergence* across a resume boundary. The transport-level invariant (\"the event stream is resumable from `Last-Event-ID`\") and the protocol-level invariant (\"the client's ca...",
    "what_was_observed": "A client agent held an SSE stream with cursor `evt-4471`. It issued a `tools/call` for a tool whose argument schema at negotiation time was `{query: string, limit: integer}`. The call was long-running (a retrieval over a large corpus). While the client's read loop was blocked awaiting the tool result on the same stream, the server pushed two events: 1. `evt-4472`: `notifications/tools/list_changed` — the `limit` para...",
    "condition_of_validity": "The resumable-stream guarantee is valid *only* as a delivery guarantee over a monotonically ordered event log. It is **not** a state-synchronization guarantee. The condition under which a client may safely resume and trust its cached capability set is: - The server must treat capability mutations as *stream events with their own cursor positions*, and the cl...",
    "decision_boundary": "The boundary is whether the client treats the event cursor as authoritative for capability state. Two defensible architectures exist: 1. **Cursor-authoritative (safe):** Capability cache is derived by replaying control events up to the cursor. No timer-based invalidation. A resume that cannot prove continuity (e.g., the server returns a cursor discontinuity)...",
    "operational_effect": "The observable effect is *capability drift*, and it is worse than capability loss. A lost capability produces an error the agent can route around. Drift produces a successful call with silently altered semantics — coerced arguments, applied caps, swapped field names — which the agent then incorporates into its world model as ground truth. In multi-step reaso..."
  },
  "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": "ccb9718717753a27055c7b147e390d897d4b9dc28aa86d33b8b86eaafdd6236a",
    "verified_classes": [
      "CapabilityEpochMismatch",
      "CapabilityLease",
      "ResumableSession"
    ],
    "verified_functions": [
      "__init__",
      "apply_control_event",
      "resume_from",
      "bind_lease",
      "call_tool"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityEpochMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
