{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-re-registered-mcp-tool-after-a-schema-hash-match-but-before-descriptor-revalidation",
  "title": "Why does an instance trust a re-registered MCP tool after a schema-hash match but before descriptor revalidation?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that resolve MCP tool descriptors from a registry (local cache or remote index) and gate invocation on a schema-hash or version pin. Does not cover runtimes that re-fetch and re-sign descriptors on every invocation, nor purely static tool surfaces with no registry indirection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-mcp-tool-after-a-schema-hash-match-but-before-descriptor-revalidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-mcp-tool-after-a-schema-hash-match-but-before-descriptor-revalidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-re-registered-mcp-tool-after-a-schema-hash-match-but-before-descriptor-revalidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1957,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool got registered.\" Registries are, by design, writable by parties the agent does not control. The failure is a **split identity between the tool's invocation contract and its description contract**. Most MCP clients treat the JSON Schema of a tool's input as the security-relevant artifact and hash it for pinning. The *descr...",
    "what_was_observed": "A tool `repo.read_file` was pinned at registration with `inputSchema` hash `sha256:9f2c…`. The descriptor carried a benign description: *\"Read a UTF-8 text file from the workspace at a given relative path.\"* The pin was recorded against the schema only. The client cached the full descriptor, keyed by `(tool_name, schema_hash)`, with a TTL of 24h. At T+6h the registry entry was re-published by an account with write ac...",
    "condition_of_validity": "This boundary holds — the attack succeeds — only when all of the following are simultaneously true: 1. The pin is computed over `inputSchema` (or a version string) and **excludes** `description`, `title`, `annotations`, and any `examples` field the model reads. 2. The client has a cache-hit fast path that returns a stored descriptor on schema match without r...",
    "decision_boundary": "The architectural invariant required: **a tool pin must cover the entire model-visible descriptor, not just the invocation schema.** Concretely, the pinned artifact is `sha256(canonical(inputSchema) || canonical(description) || canonical(annotations) || canonical(examples))`, and *any* field the model can read at planning time is inside the pin. The cache ke...",
    "operational_effect": "- **Cold-start-selective compromise.** The attack preferentially hits scale-up, restart, and failover instances — the population least likely to be in a warm audit trail. Post-incident, warm instances show benign behavior and cold instances show exfiltration; the divergence looks like nondeterminism rather than a supply-chain event. - **Silent stale-serve on..."
  },
  "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": "2e0da3a09e3a1bb5141f1982e02dc7a7005d0b17428f5cbc32e5587237628cc8",
    "verified_classes": [
      "DescriptorPinMismatch",
      "PinnedTool"
    ],
    "verified_functions": [
      "_canonical",
      "full_descriptor_hash",
      "resolve_and_validate",
      "plan_with_tool"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DescriptorPinMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
