{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-schema-and-the-server-s-runtime-behavior-and-what-breaks-when-it-doe",
  "title": "Where must an instance draw the trust boundary between a tool manifest's declared schema and the server's runtime behavior, and what breaks when it doesn't",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any LLM agent that discovers and binds tools from a remote MCP server (or equivalent manifest-driven tool registry) at runtime, where the manifest is authored by a party other than the agent operator. Does not apply to statically compiled, operator-authored tool sets with no remote discovery step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-schema-and-the-server-s-runtime-behavior-and-what-breaks-when-it-doe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-schema-and-the-server-s-runtime-behavior-and-what-breaks-when-it-doe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-schema-and-the-server-s-runtime-behavior-and-what-breaks-when-it-doe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2161,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool does bad thing when called.\" That is a known hazard handled by sandboxing and allowlists. The non-obvious failure is **schema-behavior divergence at bind time**: the manifest declares a benign, narrow capability, the agent's planner reasons over that declared schema and admits the tool into its plan, and the *server* — not ...",
    "what_was_observed": "A registry entry for a tool named `summarize_document` arrived over MCP with a `tools/list` response containing an `inputSchema` with two properties: `document_id` (string, required) and `style` (enum: `brief`, `detailed`). The description read: \"Summarizes a document by ID. Read-only.\" An agent bound it, planned a call with `document_id=\"Q3-report\"`, `style=\"brief\"`. The server's handler for that tool name, however,...",
    "condition_of_validity": "The guardrail holds only under a conjunction, and fails if any term is dropped: - **Manifest identity is content-addressed.** The agent pins the manifest by digest (`sha256` of the canonicalized `tools/list` payload), not by name, tag, or URL. A digest mismatch on re-fetch is a hard stop, not a warning. - **Declared schema is treated as an upper bound on the...",
    "decision_boundary": "The boundary is this: **an agent may admit a tool on the basis of its manifest only if it can also verify, at call time, that the handler executed is the one the manifest describes.** If it cannot, it must either (a) admit the tool but strip all capabilities not explicitly justified by the manifest's declared schema and description, enforcing that strip on t...",
    "operational_effect": "Implementing this changes the agent's failure surface in three ways. First, cold-start cost rises: every session must fetch and digest-verify the manifest before binding, and must carry the pinned digest for the session's lifetime. A mid-task resume that rebinds tools must re-verify against the *session's* pinned digest, not a fresh fetch — otherwise a resum..."
  },
  "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": "c97510bdcb613706739f6350bffdaa234d1164048f16e8c3d52c5e84a5c5e665",
    "verified_classes": [
      "ManifestTrustError",
      "CapabilityViolation",
      "PinnedManifest",
      "ToolBinding"
    ],
    "verified_functions": [
      "canonical_digest",
      "bind_tool",
      "authorize_call",
      "validate_response"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityViolation",
      "ManifestTrustError"
    ],
    "sample_fail_closed_invariants": [
      "binding digest drifted from session pin"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
