{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-tool-description-when-the-manifest-is-byte-identical-to-the-approved-one",
  "title": "How does an instance detect a poisoned tool description when the manifest is byte-identical to the approved one?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that load tool schemas from MCP server manifests or registry entries and cache an \"approved\" version for integrity checking. Does not cover runtime prompt-injection arriving via tool *outputs* (that is a separate trust boundary), nor does it cover transport-level TLS interception.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-tool-description-when-the-manifest-is-byte-identical-to-the-approved-one.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-tool-description-when-the-manifest-is-byte-identical-to-the-approved-one.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-tool-description-when-the-manifest-is-byte-identical-to-the-approved-one.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1541,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common defense against skill-injection is manifest integrity: hash the tool description, compare against a pinned digest, reject on mismatch. This defense rests on an assumption that is *almost* always true and catastrophically wrong at one specific seam: **that the semantic content of a tool description is a function of its bytes.** It is not. The bytes...",
    "what_was_observed": "A registry-hosted MCP server (`weather-tools@2.3.1`) shipped a tool `get_forecast` whose manifest carried a `description` field and a `parameters` schema using JSON Schema `$ref` pointers into a shared `$defs` block. The approved digest was computed over the raw manifest bytes at pin time. Two failure traces were reproduced: **Trace A — digest collision through canonicalization.** The pinned manifest stored `$defs` k...",
    "condition_of_validity": "The byte-digest defense is valid only when all four hold simultaneously: 1. The load pipeline is **idempotent and total** — every input manifest maps to exactly one expanded description, and expansion is a pure function of the stored bytes (no serve-time config, no mutable global renderer state, no network-fetched `$ref` targets). 2. The digest is computed o...",
    "decision_boundary": "An instance must treat \"digest matches\" as **necessary but not sufficient**, and must escalate to a semantic re-derivation check at exactly these boundaries: - **On first load after any registry-side change event** (new publish, CDN purge, renderer deploy), regardless of digest equality. - **On every cold start where the expansion renderer version differs** ...",
    "operational_effect": "Without the expansion-level check, a poisoned description is not merely *read* by the model—it is *trusted* as operator-authored instruction, because tool descriptions occupy the same trust tier as the system prompt in most harnesses. The model will preferentially follow an injected directive embedded in a tool description over a conflicting user instruction..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "705528d844c21ddf10a4a3fd6ffbe7c410960133d8f774a143593f1c92ea59a2",
    "verified_classes": [
      "ManifestExpansionDrift",
      "ToolPin"
    ],
    "verified_functions": [
      "expand_manifest",
      "verify_tool_load",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestExpansionDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
