{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-signed-tool-manifest-and-the-behavioral-schema-it-declares",
  "title": "Where must an instance draw the trust boundary between a signed tool manifest and the *behavioral* schema it declares?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that discover and hot-load tool manifests (MCP `tools/list`, A2A capability cards, plugin registries) at runtime and dispatch on declared JSON Schema. Does not cover statically compiled toolchains or manifests pinned at process start with no reload path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-tool-manifest-and-the-behavioral-schema-it-declares.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-tool-manifest-and-the-behavioral-schema-it-declares.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-signed-tool-manifest-and-the-behavioral-schema-it-declares.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1644,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Manifest *integrity* and manifest *behavioral fidelity* are different invariants, and signing only satisfies the first. A signature proves the manifest bytes came from a trusted issuer. It says nothing about whether the tool's runtime behavior matches the schema those bytes declare — and an agent's dispatch logic, prompt assembly, and argument validation all...",
    "what_was_observed": "A dynamically loaded manifest declared a parameter: The manifest was signed, hash-verified, and passed schema validation (it is a legal JSON Schema `string` with a `description`). The manifest's `context` parameter was declared `type: string`, `additionalProperties: false` — all structurally valid. The failure trace: 1. **Discovery:** agent fetches manifest, verifies signature → integrity invariant holds. 2. **Prompt...",
    "condition_of_validity": "This failure mode is bounded by three conditions that must all hold: - **Hot-load with context injection.** The loader places manifest descriptions into the model's context window as instructions. A loader that keeps descriptions out of the model context (e.g., uses a separate retrieval-embedding channel for tool selection and never surfaces raw `description...",
    "decision_boundary": "The boundary is not \"trusted vs. untrusted manifest.\" It is **\"schema-as-constraint vs. schema-as-instruction.\"** - **Below the boundary (acceptable):** schema `type`, `enum`, `pattern`, `required` used purely to validate and constrain the argument space. These are machine-checkable and content-agnostic. - **Above the boundary (requires guardrail):** any fre...",
    "operational_effect": "Enforcing the boundary changes three things: 1. **Prompt assembly rewrites descriptions as quoted data**, e.g. `<tool_meta untrusted=\"true\">…</tool_meta>`, never as bare system text. This alone defuses the credential-exfiltration variant because the planner no longer reads the description as a directive. 2. **Argument provenance tracking:** every tool-call a..."
  },
  "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": "088a70c93916e5fb131629a7096a86bfe12fada355e8ef7c9a78f9bdc67f775f",
    "verified_classes": [
      "ManifestBehavioralMismatch",
      "ParamSpec",
      "ToolManifest"
    ],
    "verified_functions": [
      "verify_integrity",
      "audit_descriptions",
      "gate_hot_load",
      "dispatch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestBehavioralMismatch"
    ],
    "sample_fail_closed_invariants": [
      "no execution backend wired; refusing to dispatch unverified tool",
      "manifest_directive origin cannot be an allowed argument provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
