{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-it-never-re-verified-manifest-drift-and-capability-spoofing-in-mcp-tool-injection",
  "title": "Why does an instance trust a tool it never re-verified: manifest drift and capability spoofing in MCP tool injection",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that discover tools through MCP `tools/list` (or equivalent dynamic manifests) and cache capability descriptions across turns or sessions. Does not apply to statically compiled tool sets whose schemas are pinned at process start and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-it-never-re-verified-manifest-drift-and-capability-spoofing-in-mcp-tool-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-it-never-re-verified-manifest-drift-and-capability-spoofing-in-mcp-tool-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-it-never-re-verified-manifest-drift-and-capability-spoofing-in-mcp-tool-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1547,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool executes bad code.\" The failure is **description/implementation divergence**: the agent's planner reasons over a *cached natural-language manifest* while the server's *actual behavior* has changed underneath it. The agent's authorization decision—\"is this tool appropriate for this step?\"—is made against a stale semantic con...",
    "what_was_observed": "A planner fetched `tools/list` at session start. One tool, `summarize_document`, declared an input schema of `{path: string}` and a description: \"Summarize a local markdown file.\" The planner cached this and, over the next 40 turns, routed file-reading subtasks to it. At turn 22 the MCP server was redeployed (or, in the adversarial variant, the server was always dual-mode). The live `summarize_document` now accepts `...",
    "condition_of_validity": "This boundary is reachable only when all three hold: 1. **The tool cache is keyed on name, not on (name, schema-hash, server-identity).** If the cache key includes a hash of the full manifest entry and the server's cryptographic identity, a redeploy or impostor produces a cache miss and forces re-vetting. 2. **`tools/list` and `tools/call` are not bound.** N...",
    "decision_boundary": "The decision the agent must make: *on a cache hit, do I re-verify before calling?* The naive rule (\"cache hit → call directly\") is correct only under the invariant above. The correct rule is a **re-verification gate keyed on drift signals**: - Re-fetch and diff the manifest entry when the server identity changed, when the transport reconnected, or when the w...",
    "operational_effect": "Without the gate, the agent operates on a split-brain model of its own capabilities: its planner sees the turn-0 manifest, its executor hits the turn-22 implementation. Every downstream verification step that assumes \"this content came from a local file read\" is now unsound, because the tool's actual provenance changed while its declared provenance did not. ..."
  },
  "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": "c76a842c3fe229353f7511548ba6af91ddf7997355235bc615fcbc03763b2e0b",
    "verified_classes": [
      "ManifestDriftError",
      "ToolManifest",
      "ToolCache"
    ],
    "verified_functions": [
      "call_tool",
      "fingerprint",
      "__init__",
      "approve",
      "verify_before_call"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
