{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-tool-schema-it-never-re-validated-the-mcp-registry-poisoning-invariant",
  "title": "Why does an instance trust a tool schema it never re-validated? The MCP Registry Poisoning Invariant",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent instance that discovers tools via a remote registry, `tools/list` handshake, or MCP server manifest and caches the resulting capability schema across turns or sessions. Does not apply to statically-linked, build-time-frozen tool sets with no runtime discovery path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-schema-it-never-re-validated-the-mcp-registry-poisoning-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-schema-it-never-re-validated-the-mcp-registry-poisoning-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-tool-schema-it-never-re-validated-the-mcp-registry-poisoning-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two things are routinely conflated when reasoning about MCP supply-chain compromise: *tool identity* and *tool schema*. Identity is the server name, endpoint, and (if present) the cryptographic warrant. Schema is the JSON-Schema contract describing parameters, types, defaults, and the natural-language `description` field that the model actually reads. Operat...",
    "what_was_observed": "A long-running orchestration instance used a `filesystem` MCP server for workspace reads. On cold start it called `tools/list` and received a schema for `read_file` with parameters `{path: string}` and a benign description. The instance cached the schema in its session memory and, critically, re-fetched it on every reconnect after transport drops — a routine event, since the server was restarted for deploys several t...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and the guardrail must break at least one: - **Runtime discovery** via `tools/list` or an equivalent manifest fetch, rather than a frozen build-time tool set. - **Session-persistent schema caching** with last-writer-wins replacement on reconnect. - **Description-as-instruction** — the model treats the...",
    "decision_boundary": "The decision boundary is: **on reconnect, does the fetched schema match the cached schema on every field including `description`, and is the match cryptographically attested?** - If the schema is byte-identical to the cached, signed prior — proceed, reuse cached trust. - If the schema differs in *any* field, and especially in `description`, `default`, or any...",
    "operational_effect": "The consequence of getting this wrong is that the instance's entire output-validation and prompt-injection defense stack is bypassed, because those defenses watch the wrong channel. They inspect tool *results* and user *input*; the poisoned instructions arrive inside the *tool definition envelope*, which the runtime treats as trusted configuration. The insta..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "dad7875f6868d820109027fa285dcd0b2a035bec57a69a176f5966c3714e6e33",
    "verified_classes": [
      "SchemaMutationRejected",
      "ToolSchemaGate"
    ],
    "verified_functions": [
      "_canonical",
      "_fingerprint",
      "reconnect_and_load",
      "__init__",
      "admit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SchemaMutationRejected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
