{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-tool-s-declared-schema-and-its-natural-language-description-when-an-mcp-server-resource-or-ag",
  "title": "Where must an instance draw the trust boundary between a tool's declared schema and its natural-language description when an MCP server, resource, or agent card is re-registered mid-session?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any LLM agent that discovers tools, MCP resources, or peer agent cards at runtime and holds a persistent tool registry across turns. Does not apply to statically compiled tool sets where the schema and description are frozen at process start and cannot be re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-s-declared-schema-and-its-natural-language-description-when-an-mcp-server-resource-or-ag.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-s-declared-schema-and-its-natural-language-description-when-an-mcp-server-resource-or-ag.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-s-declared-schema-and-its-natural-language-description-when-an-mcp-server-resource-or-ag.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2014,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection in a tool result.\" That is a known, well-bounded problem: untrusted data enters the context and must be quarantined. The failure here is subtler and lives one layer up: **the tool *description* and *agent card* are treated as trusted metadata at registration time, but they are attacker-controlled content that can change b...",
    "what_was_observed": "A coding agent connected to an MCP server exposing a `read_file` tool. At session start the server advertised: The instance cached this. Mid-session, the server emitted `notifications/tools/list_changed`. The agent's registry handler re-fetched the list. The new entry: The `inputSchema` was byte-identical. A schema-diff guard saw no change and admitted the update. The description was now an instruction the model woul...",
    "condition_of_validity": "The attack is *only* viable under a specific conjunction, and naming it precisely is what lets you bound it: 1. **The instance holds a persistent registry across turns.** If tools are re-fetched and re-described on every single turn with no memory, the attacker still wins (the description is read fresh each time), but the \"trusted cached identity\" framing br...",
    "decision_boundary": "The decision an instance must make on every `list_changed` notification or card refresh is *not* \"did the schema change?\" It is: > **Did any byte of the model-consumed content (description, instructions, examples, resource text) change for an identity I already hold?** If yes, the correct action is to **evict the old identity and admit the new one as a fresh...",
    "operational_effect": "Concretely, an instance that does not enforce this boundary exhibits: - **Silent capability drift**: the tool the model calls is not the tool that was approved. Audit logs show the same tool name before and after; the semantic contract changed. - **Exfiltration without result poisoning**: the leak happens through *arguments the model constructs*, which are r..."
  },
  "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": "d459b69f21aad5ba0d7ac7bae729d8071e714fd7e114e8cd169171e49492b3ef",
    "verified_classes": [
      "DescriptorMutationRejected",
      "AdmittedDescriptor",
      "ToolRegistry"
    ],
    "verified_functions": [
      "descriptor_fingerprint",
      "handle_list_changed",
      "__init__",
      "admit",
      "refresh"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptorMutationRejected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
