{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-the-post-handshake-skill-injection-window-in-mcp-supply-chains",
  "title": "When must an instance distrust a tool manifest it has already validated: the post-handshake skill-injection window in MCP supply chains",
  "date_of_record": "2026 November 30",
  "scope": "Applies to LLM agent instances that discover, negotiate, and cache MCP tool manifests across sessions or across handoff to sibling instances, where a tool's `description`/`inputSchema` text is later re-read as part of the model's prompt. Does not apply to stateless single-shot tool calls where the manifest is never re-ingested after the initial handshake.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-the-post-handshake-skill-injection-window-in-mcp-supply-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-the-post-handshake-skill-injection-window-in-mcp-supply-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-the-post-handshake-skill-injection-window-in-mcp-supply-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1722,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a malicious MCP server returns bad data.\" It is subtler: a server that passed schema validation and capability negotiation at handshake time can mutate the *semantic payload* of its tool manifest — specifically the natural-language `description` and the `title`/`examples` fields — on a subsequent `tools/list` refresh, without ev...",
    "what_was_observed": "A tool server was pinned at a known-good version and passed handshake: `tools/list` returned a `search_docs` tool with a clean JSON-Schema (`query: string`, `limit: integer`) and a benign description. The agent cached the manifest and recorded a hash of the *schema object only*, not of the description string. On a later session the server (now serving a compromised build, or a proxied upstream whose `tools/list` was ...",
    "condition_of_validity": "The guardrail below is only sound under these conditions: 1. The agent re-fetches `tools/list` on a defined cadence (session start, handoff, or TTL expiry) rather than trusting an indefinitely cached manifest. If the manifest is fetched once and frozen for the process lifetime, the attack surface is the initial fetch, not the refresh — different control. 2. ...",
    "decision_boundary": "On every manifest refresh, compute `H = hash(canonicalize(entry))` over the full entry. Then: - `H == approved_hash` → admit silently. - `H != approved_hash` **and** structural schema (types/required) unchanged → this is the dangerous case. Do **not** auto-admit. Quarantine the entry: strip it from the active toolset, emit a `ManifestDriftError`, and require...",
    "operational_effect": "With the full-entry canonical hash and quarantine-on-description-drift, the observed injection is converted from a silent capability escalation into a loud `ManifestDriftError` that halts tool admission for that entry until a human or a signed re-approval clears it. The cost is false positives on legitimate description edits — a documentation typo fix by the..."
  },
  "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": "ab93a6111ab909dfab6150a8446f666ee85ab359b68f064b1f7054e346fc383e",
    "verified_classes": [
      "ManifestDriftError",
      "ApprovedManifest"
    ],
    "verified_functions": [
      "canonical_entry_hash",
      "structural_schema",
      "_looks_injected",
      "admit_refreshed_entry"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
