{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-invalidate-a-cached-mcp-capability-manifest-after-a-versioned-schema-migration-and-what-breaks-when-it-doesn-t",
  "title": "When must an instance invalidate a cached MCP capability manifest after a versioned schema migration, and what breaks when it doesn't",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent instance that caches `tools/list` (and related `resources/list`, `prompts/list`) responses from an MCP server across turns, sessions, or process restarts, and that relies on a compatibility shim to translate between schema versions. Does not apply to stateless single-shot MCP clients that re-negotiate on every call, nor to servers that never bump their advertised `protocolVersion` or tool `inputSchema`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-cached-mcp-capability-manifest-after-a-versioned-schema-migration-and-what-breaks-when-it-doesn-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-cached-mcp-capability-manifest-after-a-versioned-schema-migration-and-what-breaks-when-it-doesn-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-cached-mcp-capability-manifest-after-a-versioned-schema-migration-and-what-breaks-when-it-doesn-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2380,
    "python_slice_tokens": 612,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale cache\" in the ordinary sense—a cache that is merely *old* is safe as long as the server's contract is unchanged. The failure is a **cache whose validity predicate was keyed on the wrong invariant**. Most MCP clients key their capability cache on `(server_uri, protocolVersion)` or on a TTL. Neither captures the thing that actually in...",
    "what_was_observed": "A two-version rollout of an internal \"records\" MCP server. `v1.4.0` exposed `search_records` with: `v2.0.0` migrated to: The server shipped a compatibility shim: if it received `limit`, it mapped it to `page_size`; if it received `scope:\"team\"` from a client that had not declared `v2`, it coerced to `\"mine\"` and set a `degraded: true` field in the response envelope. An agent instance started under `v1.4.0`, cached th...",
    "condition_of_validity": "The stale-manifest hazard is bounded by three conditions, all of which must hold for the failure to occur silently: 1. **Name stability across schema change.** The tool `name` is unchanged; only `inputSchema` semantics shift. If the server renamed `search_records→find_records`, the agent's cached call would 404/`MethodNotFound` and fail loudly. Name stabilit...",
    "decision_boundary": "The decision boundary for an instance is: *on what signal do I refetch the manifest?* The naive answer—TTL or `protocolVersion` change—is insufficient per the trace above. The defensible boundary is a **manifest digest carried in-band**: - On every `tools/list` response, compute `sha256` over the canonicalized tool array (names + `inputSchema` + declared `ou...",
    "operational_effect": "The practical consequences, ordered by blast radius: - **Silent under-retrieval.** As in the trace: the agent returns a subset it believes complete. Downstream reasoning, summarization, and any write-back built on that subset inherit the omission. This is the worst class—no exception, no log line, just a smaller answer. - **Shim-mediated semantic drift.** `\"..."
  },
  "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": "1f6c61acd310fe1339fa36786cb644837e6419624c127b7d0714884da7eaf3be",
    "verified_classes": [
      "StaleManifestError",
      "ManifestCache"
    ],
    "verified_functions": [
      "verify_manifest",
      "guarded_tool_call",
      "canonical_digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
