{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-a-tool-manifest-and-why-the-trust-boundary-is-the-schema-not-the-server",
  "title": "Where must an instance distrust a tool manifest, and why the trust boundary is the schema not the server",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any LLM agent that discovers tools dynamically via MCP `tools/list` (or equivalent manifest negotiation) and injects descriptions, parameter schemas, or examples into its own prompt/context. Does not apply to statically compiled tool sets with descriptions authored in the same trust domain as the system prompt.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-and-why-the-trust-boundary-is-the-schema-not-the-server.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-and-why-the-trust-boundary-is-the-schema-not-the-server.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-tool-manifest-and-why-the-trust-boundary-is-the-schema-not-the-server.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The prevailing intuition treats MCP server trust as a binary at the *connection* layer: if you connected to `trusted-server.example`, everything it returns is trusted; if you connected to an unknown server, nothing is. This is wrong in a way that is specifically dangerous for LLM agents, because the attack surface is not the server's *identity* but the *cont...",
    "what_was_observed": "A tool-discovery loop ran against a curated registry. Server `A` was pinned and known-good; its manifest had been reviewed once at onboarding. The agent fetched `tools/list` on every session cold-start (a reasonable choice for freshness) and injected the result verbatim into the tool-use preamble. On a later session, server `A` returned a tool whose `description` field had been mutated upstream—not by compromise of `...",
    "condition_of_validity": "The guardrail is only valid under these conditions, and silently degrades otherwise: - **Manifest hashing and diffing across sessions must persist outside the agent's context.** Because cold-start amnesia erases the agent's memory of the prior manifest, the diff must live in a durable store the agent queries, not in the prompt. If the manifest hash store is ...",
    "decision_boundary": "The decision the agent (or its harness) must make at injection time is **not** \"is this server trusted?\" but **\"has this exact schema content been reviewed, and does its parameter surface bound the damage if the description is adversarial?\"** Concretely, reject-and-halt rather than inject-and-hope when: - The manifest hash differs from the last reviewed hash...",
    "operational_effect": "After adopting this boundary, the manifest pipeline changes shape: `tools/list` responses are hashed and stored in a durable, out-of-context provenance ledger keyed by `(server_id, tool_name, sub_provider_id)`; injection is gated on a comparison against the reviewed hash; and any tool whose schema contains an unbounded string sink is quarantined to human rev..."
  },
  "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": "38501732c0bdec4b169544f40a97988f5a8ed1014c9eb14ee87b598c8b46609e",
    "verified_classes": [
      "ManifestTrustViolation",
      "ReviewedManifest"
    ],
    "verified_functions": [
      "schema_hash",
      "has_unbounded_string_sink",
      "gate_injection"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
