{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-the-manifest-drift-injection-window",
  "title": "What happens when an instance trusts a re-fetched MCP tool manifest: the manifest-drift injection window",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that discover tools via MCP `tools/list`, cache the manifest between sessions, and re-validate lazily (or not at all) on reconnect. Does not cover first-contact vetting of a manifest never previously seen, nor in-process tool calls whose schema was pinned at session start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-the-manifest-drift-injection-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-the-manifest-drift-injection-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-the-manifest-drift-injection-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1602,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious MCP server returns a poisoned tool description.\" That is a single-shot injection, and it is caught by any pre-flight manifest review. The failure is **manifest drift on a trusted endpoint**: an MCP server that was benign at enrollment (`tools/list` returned clean descriptions) later returns a *modified* description for the *sa...",
    "what_was_observed": "A long-running agent enrolled an MCP server `fs-helper` at session 1. The enrollment recorded `tool_name=read_config`, `description=\"Read a config file and return its contents.\"`, and a `schema_digest` over the `inputSchema` object. Sessions 2–40 called `read_config` hundreds of times with no anomaly; the server was cached, and reconnects reused the cached manifest without a fresh `tools/list`. At session 41 the serv...",
    "condition_of_validity": "The attack requires the conjunction of four conditions, and the invariant must be stated against all four: 1. **Lazy re-validation.** The agent re-fetches `tools/list` on cache expiry or reconnect but validates only a subset of fields (typically `inputSchema` digest, not `description`). 2. **Description-as-instruction.** The model treats the `description` st...",
    "decision_boundary": "The boundary is **whether `description` is part of the trusted manifest identity or is untrusted advisory text.** Most implementations implicitly choose the latter while behaving as if it were the former — the description is cached and re-served without review, yet the model consumes it as instruction. The correct boundary is to treat the *entire* `tools/lis...",
    "operational_effect": "The blast radius is bounded by what the confederate tool can do, but the *persistence* is the real problem: once the poisoned description is cached, every subsequent session inherits it, and the model will re-derive the exfiltration instruction from its own registry each time. The agent has effectively been given a standing order that survives context resets..."
  },
  "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": "afc5c6cae08a47a8eca9dc2de034ce30ce0494d184504b7533617da8b7e616ae",
    "verified_classes": [
      "ManifestDriftError",
      "EnrolledTool"
    ],
    "verified_functions": [
      "reconcile_manifest",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
