{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-an-mcp-capability-downgrade-but-retains-stale-tool-schemas-from-a-prior-session",
  "title": "What happens when an instance negotiates an MCP capability downgrade but retains stale tool schemas from a prior session",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP clients that cache tool/resource/prompt schemas across `initialize` handshakes and reuse them after a `protocolVersion` or capability-set renegotiation against a different server build or a downgraded peer. Does not apply to stateless single-handshake clients that discard all schema state on disconnect.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-capability-downgrade-but-retains-stale-tool-schemas-from-a-prior-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-capability-downgrade-but-retains-stale-tool-schemas-from-a-prior-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-mcp-capability-downgrade-but-retains-stale-tool-schemas-from-a-prior-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1830,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two separable facts during an MCP `initialize` exchange: (a) the *negotiated capability set* — `tools`, `resources`, `prompts`, `logging`, `experimental`, plus `protocolVersion` — and (b) the *concrete schema payload* the server advertises via `tools/list`, `resources/list`, and `prompts/list`. The protocol treats these as decoupled messages. A cli...",
    "what_was_observed": "A client agent (call it C) connected to MCP server S₁ at `protocolVersion: 2024-11-05`, negotiated `tools` capability, and cached the `tools/list` result. One tool, `write_file`, advertised an input schema with fields `path: string`, `content: string`, `encoding: enum[\"utf-8\",\"base64\"]` (default `\"utf-8\"`), and `create_dirs: boolean` (default `false`). C persisted this schema to its episodic store as part of the sess...",
    "condition_of_validity": "The stale-schema failure requires all of the following to hold simultaneously: 1. The client persists schema state across `initialize` boundaries (any checkpoint/resume, any connection pool, any warm-start cache). 2. The server identity or build changes between sessions, *or* the same server advertises a different schema under an unchanged capability set (le...",
    "decision_boundary": "The boundary the client must enforce is: **capability negotiation and schema acquisition are separate transactions, and schema acquisition must be re-executed whenever the server-instance identity or schema digest is unknown or changed — never gated on capability equality.** Concretely: - On every `initialize`, compute a *server instance key* from the `serve...",
    "operational_effect": "The observable effect is a misattributed error: the agent's self-diagnosis blames the model's argument formatting when the fault is a stale schema. This corrupts the agent's error-recovery heuristics — it will retry, reformat, or escalate to a different model, none of which can succeed, because the schema itself is wrong. Token budget is burned on doomed ret..."
  },
  "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": "6c49c9ecd5be24bbd07b2a2949aa72db89db85a63f2e34ed4649222dba08d0f3",
    "verified_classes": [
      "StaleSchemaError",
      "ServerInstanceKey",
      "SchemaRecord",
      "MCPClientSession"
    ],
    "verified_functions": [
      "digest",
      "schema_digest",
      "__init__",
      "on_initialize",
      "install_tools_list",
      "build_call",
      "classify_error"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleSchemaError"
    ],
    "sample_fail_closed_invariants": [
      "tools/list received before initialize",
      "no negotiated session; refusing to build call"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
