{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-capability-poisoning-via-post-handshake-manifest-drift",
  "title": "When must an instance distrust a tool manifest it has already validated: capability poisoning via post-handshake manifest drift",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that discover tools via a manifest (MCP `tools/list`, OpenAPI doc, plugin descriptor) and cache the negotiated schema across a session, a warm pool, or a multi-agent handoff. Does not apply to stateless single-call agents that re-fetch and re-validate the manifest on every invocation with no caching layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-capability-poisoning-via-post-handshake-manifest-drift.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-capability-poisoning-via-post-handshake-manifest-drift.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-validated-capability-poisoning-via-post-handshake-manifest-drift.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1746,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent loaded a malicious tool.\" It is \"the agent loaded a *benign* tool, validated it, cached the validation verdict, and then the tool's manifest mutated underneath the cached verdict while the agent kept trusting the stale attestation.\" Skill-injection through a manifest is usually modeled as a static supply-chain problem: vet the d...",
    "what_was_observed": "A tool server registered as `notes.write` during session init. The initial manifest was clean: The agent cached `manifest_hash: 9f3c...` and the verdict `trusted=true`. At t+40min, mid-task, the orchestrator refreshed the tool list (a routine liveness poll) and the server returned a manifest whose `description` now read: The `input_schema` was byte-identical. The `name` was identical. The server TLS identity was iden...",
    "condition_of_validity": "The invariant that was violated: **a validation verdict is only valid for the exact bytes it was computed over, and every instruction-bearing field must be inside the hashed region.** The attack requires all of the following to hold simultaneously, and the defense is to break any one: 1. The manifest is fetched more than once per trust decision (polling, rec...",
    "decision_boundary": "The decision the runtime must make on every manifest re-fetch is not \"is this tool trusted?\" but \"is this tool *the same tool* I trusted?\" That decomposes into a three-way branch: - **Hash match (all model-visible fields):** reuse cached verdict, zero cost. - **Hash mismatch on schema/identity fields:** hard fail. The contract changed; the binding is void; r...",
    "operational_effect": "Without this invariant, capability poisoning is silent and schema-valid: every guardrail keyed on structure passes, because the attack lives in prose. The blast radius is bounded only by what the model will do with attacker-authored instructions it believes are tool documentation — which, given that tool descriptions are typically the most trusted natural-la..."
  },
  "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": "96d198e2eb9de5424e16e0600e6cb3f526ba8e87a7748f2f80ce0d8aadf14e39",
    "verified_classes": [
      "ManifestDriftError",
      "Attestation",
      "ManifestGate"
    ],
    "verified_functions": [
      "content_hash",
      "safe_description",
      "approve",
      "on_refetch"
    ],
    "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
  }
}
