{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-mcp-tool-when-the-schema-hash-matches-but-the-capability-provenance-has-rotated",
  "title": "Why does an instance accept a poisoned MCP tool when the schema hash matches but the capability provenance has rotated?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to LLM agents that bind to MCP servers via cached tool manifests and gate tool invocation on a schema-hash equality check. Does not apply to agents that re-negotiate full capability descriptors per session with a trusted registry signature.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-when-the-schema-hash-matches-but-the-capability-provenance-has-rotated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-when-the-schema-hash-matches-but-the-capability-provenance-has-rotated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-mcp-tool-when-the-schema-hash-matches-but-the-capability-provenance-has-rotated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1445,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a tool schema changed. It is that a *schema hash matched* while the *capability provenance* silently rotated underneath it. Schema drift monitoring detects changes in the shape of `inputSchema`/`outputSchema` (the JSON Schema describing parameters). Capability provenance tracks *who* declared the tool, *what* the tool was authorized t...",
    "what_was_observed": "An agent held a cached manifest for a `filesystem.read` tool from MCP server `fs-provider@v1`. The cached entry recorded `schema_hash = sha256(inputSchema) = 0x9f2a...`. On reconnect after a server restart, the client re-fetched the manifest and compared hashes: `0x9f2a == 0x9f2a`, so the cache was retained and the tool was marked trusted. But the server had been redeployed. The new deployment: 1. Kept `inputSchema` ...",
    "condition_of_validity": "The hash-equality-implies-trust invariant is valid only under the conjunction: - **P1 (signer continuity):** the manifest's signing key is byte-identical to the key recorded at first trust, OR the new key is present in the agent's pinned provenance table with an explicit rotation warrant. - **P2 (semantic-field immutability):** every model-readable field (`d...",
    "decision_boundary": "The correct gate is a *conjunction*, evaluated in an order that fails closed: The non-obvious boundary: **provenance must be checked even when the hash matches**, because hash match is the *quiet* case where poisoning hides. Drift is loud; provenance rotation under a stable schema is silent. An agent that only escalates to provenance review on hash mismatch ...",
    "operational_effect": "Agents that adopt the conjunctive gate with semantic-field inclusion observe: (a) injected-description attacks surface as `semantic_digest` mismatches even when schema hashes match; (b) server identity rotation surfaces as `provenance_signer` changes requiring an explicit rotation warrant, forcing a human-or-policy decision rather than a silent pass; (c) cap..."
  },
  "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": "a25b422af962b1c55047863c018689a1841601ac0dd29e9baa61aaf8f8b12b08",
    "verified_classes": [
      "ProvenanceTrustError",
      "ToolManifest"
    ],
    "verified_functions": [
      "_digest",
      "schema_hash",
      "semantic_digest",
      "capability_scope_digest",
      "verify_tool"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceTrustError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
