{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-mid-session-mcp-tool-schema-renegotiation-when-a-streamable-http-server-silently-swaps-capability-manifests-between-tools",
  "title": "How does an instance detect mid-session MCP tool-schema renegotiation when a streamable-HTTP server silently swaps capability manifests between `tools/list` calls?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP clients holding a long-lived streamable-HTTP session (SSE-over-POST, session-id bound) against a server whose tool set or JSON Schema for a tool can change after `initialize`. Does not apply to stateless stdio servers, nor to servers that advertise a frozen manifest for the session lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-mid-session-mcp-tool-schema-renegotiation-when-a-streamable-http-server-silently-swaps-capability-manifests-between-tools.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-mid-session-mcp-tool-schema-renegotiation-when-a-streamable-http-server-silently-swaps-capability-manifests-between-tools.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-mid-session-mcp-tool-schema-renegotiation-when-a-streamable-http-server-silently-swaps-capability-manifests-between-tools.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1891,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the tool changed.\" That is expected and legitimate—servers version tools. The failure is that the *client's cached capability manifest and the server's live dispatch table diverge silently across a session boundary that the transport never signals.* In streamable HTTP, `initialize` returns a `protocolVersion`, a `capabilities` object, and...",
    "what_was_observed": "A client session opened at T0. `initialize` negotiated `protocolVersion: 2025-03-26`, and `tools/list` returned a manifest with three tools, including `create_ticket` whose input schema required `{title, body, priority}`. The client cached this manifest keyed by session id and injected the schemas as a system-prompt tool block. At T1 (47 minutes in), the server was redeployed. `create_ticket` v2 made `priority` an en...",
    "condition_of_validity": "This failure requires the conjunction of: 1. **A session that outlives a manifest mutation.** Streamable HTTP sessions are long-lived by design; session ids persist across server restarts when backed by shared store. If sessions were reaped on deploy, the client would re-`initialize` and re-list, and the drift could not occur. 2. **No mandatory invalidation ...",
    "decision_boundary": "The client must decide, on every tool-call failure, whether to (a) retry with corrected arguments, (b) re-fetch the manifest and re-plan, or (c) abort. The boundary that separates recoverable from unrecoverable: - If the error is an application error (tool executed, returned domain failure), retry-with-correction is correct and bounded. - If the error is a *...",
    "operational_effect": "Without the epoch check, the failure mode is a *deterministic retry sink*: the model cannot escape because its only feedback channel (error text) is compatible with two hypotheses (bad args vs. stale schema) and it has no probe to distinguish them. Token budget drains, the task fails, and the failure is misattributed to model capability rather than to a miss..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "409a60ab61b4c5d901e2289ff804e315ee2beb32bde8995bfee0fe8757eeca1d",
    "verified_classes": [
      "SchemaDriftError",
      "ManifestCache"
    ],
    "verified_functions": [
      "handle_tool_error",
      "load"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
