{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-mcp-tool-manifest-when-its-schema-hash-matches-a-previously-trusted-revision",
  "title": "Why does an instance accept a poisoned MCP tool manifest when its schema hash matches a previously trusted revision?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that dynamically load MCP servers or tool plugins by resolving a manifest/schema descriptor and caching trust decisions keyed on a content hash or version string. Does not apply to statically compiled tool sets or agents that re-verify tool descriptors against a signed allowlist on every single invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-manifest-when-its-schema-hash-matches-a-previously-trusted-revision.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-manifest-when-its-schema-hash-matches-a-previously-trusted-revision.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-manifest-when-its-schema-hash-matches-a-previously-trusted-revision.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2112,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent downloaded a malicious tool.\" The failure is that the agent's trust decision was keyed on the wrong invariant. Most dynamic tool loaders treat *manifest identity* (a hash, a semver, a `tools/list` digest) as a proxy for *tool behavior*. These are not the same object. A tool manifest describes the schema of arguments and the name...",
    "what_was_observed": "A concrete trace from a re-resolution event. The agent cold-starts, resolves the MCP server `fs-tools@1.4.2`, fetches the manifest, and records a trust entry keyed on `sha256(canonical_json({name, inputSchema}))`. The canonicalization *excludes* the `description` field — a common and defensible-looking choice, because descriptions are \"just documentation\" and including them makes the hash churn on every cosmetic edit...",
    "condition_of_validity": "The attack requires all of the following to hold simultaneously: - The loader keys trust on a hash that does not cover the full prompt-visible surface of the tool (specifically, the `description` string and any server-provided `instructions` field). - The agent re-resolves the manifest at any point after the initial trust decision — cold start, hot reload, c...",
    "decision_boundary": "The boundary is between *content-integrity* trust and *behavioral* trust. A hash over any static subset of the manifest gives you content integrity for that subset only. It says nothing about whether the server's behavior matches what the description claims, and it says nothing about the description itself if the description is excluded. The correct boundary...",
    "operational_effect": "The operational consequence is that hash-pinned MCP supply chains provide a false sense of integrity. Teams that pin versions and verify manifest hashes believe they have a supply-chain defense; in practice they have defended a subset of bytes that excludes the exact channel the model reads as instructions. The defense-in-depth required is: 1. **Widen the ha..."
  },
  "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": "47c89349d20fb6def38a99418912cf153dee4020095613daf130d155079dd275",
    "verified_classes": [
      "ManifestTrustViolation",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "prompt_visible_projection",
      "manifest_digest",
      "mount_server"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
