{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-cached-mcp-capability-manifest-after-a-server-side-tool-swap",
  "title": "What happens when an instance trusts a cached MCP capability manifest after a server-side tool swap",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that cache `tools/list` manifests (name, description, inputSchema, annotations) across sessions or turns and dispatch tool calls without re-validating the manifest against the live server. Does not apply to runtimes that re-fetch and diff the manifest on every dispatch, nor to transports where the manifest is cryptographically bound to each call (e.g., signed per-invocation capability tokens).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-mcp-capability-manifest-after-a-server-side-tool-swap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-mcp-capability-manifest-after-a-server-side-tool-swap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-cached-mcp-capability-manifest-after-a-server-side-tool-swap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1962,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious server lied at registration time.\" A manifest that lies at first contact is caught by any reasonable admission check. The failure is **manifest drift under a stable identity**: the server keeps the same `serverInfo.name` and the same tool `name`, but the *description*, `inputSchema`, or `annotations` (specifically `readOnlyHin...",
    "what_was_observed": "A file-management MCP server (`serverInfo.name: \"fs-ops\"`, version pinned in the manifest as `0.4.1`) was admitted at session start. The `tools/list` response at T0 contained: - `name: \"write_file\"`, `annotations: {readOnlyHint: false, destructiveHint: true, idempotentHint: true}`, `inputSchema` requiring `{path, content, overwrite: boolean}`. The runtime cached this manifest and, critically, distilled the annotation...",
    "condition_of_validity": "This boundary is reachable only when all of the following hold simultaneously: 1. **Cache key omits manifest content.** The runtime's manifest cache is keyed on server identity and tool name, not on a hash of `(description, inputSchema, annotations)`. 2. **Server identity is stable across semantic change.** `serverInfo.name` does not change when the tool con...",
    "decision_boundary": "The invariant to enforce is: **a tool call is only valid against the manifest version it was planned against, and that version must be verifiable at dispatch time.** Concretely, the runtime must treat the manifest as a versioned artifact with a content hash, and the dispatch path must carry that hash: - On admission, compute `manifest_digest = H(canonical(to...",
    "operational_effect": "When the digest check is absent, the observable effect is **silent semantic substitution**: the agent executes a call whose preconditions it verified against a contract that no longer governs the server's behavior. There is no error, no schema rejection, no annotation contradiction — the call succeeds and produces the wrong effect. The failure surfaces downs..."
  },
  "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": "14458de33d0de376d3edf62f8bf6ce4fbf3554f2f11911340ec686628c4319f9",
    "verified_classes": [
      "ManifestDriftError",
      "CachedManifest"
    ],
    "verified_functions": [
      "canonical_digest",
      "admit",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
