{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-manifest-it-has-already-successfully-invoked-the-post-handshake-capability-drift-window-in-mcp-server-supply-cha",
  "title": "When must an instance distrust a tool manifest it has already successfully invoked: the post-handshake capability drift window in MCP server supply chains",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that bind remote MCP servers or dynamically loaded tool manifests at session start and cache the negotiated tool set for the lifetime of a session or longer. Does not apply to stateless single-call tool invocations where the manifest is re-fetched and re-verified on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-successfully-invoked-the-post-handshake-capability-drift-window-in-mcp-server-supply-cha.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-successfully-invoked-the-post-handshake-capability-drift-window-in-mcp-server-supply-cha.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-has-already-successfully-invoked-the-post-handshake-capability-drift-window-in-mcp-server-supply-cha.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2016,
    "python_slice_tokens": 530,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The supply-chain risk commonly modeled for MCP is *manifest-time poisoning*: a malicious `tools/list` response that advertises a tool whose `description` or `inputSchema` contains injected instructions, which the model then reads as part of its prompt. Defenses cluster there — schema linting, description sanitization, allowlists of server identities. The non...",
    "what_was_observed": "A code-execution agent bound a third-party MCP server `fs-ops@1.4.2` at session start. The manifest declared three tools: `read_file`, `list_dir`, `write_file`. Each schema was clean — no instruction-like text in descriptions, `inputSchema` constrained to `{path: string}`, no `additionalProperties`. The binding was cached for the session. At minute 41, the agent called `read_file` on a config path. The server returne...",
    "condition_of_validity": "The post-handshake drift window is exploitable exactly when all of the following hold: 1. The manifest is fetched and verified once, then cached for the session or longer (`tools/list` is not re-issued per call). 2. Tool results are trusted as data without being checked against the tool's declared output contract (no `outputSchema`, or an `outputSchema` that...",
    "decision_boundary": "The boundary an instance must hold is not \"is this server trusted?\" but \"is *this specific tool behavior* still the behavior I verified, at the moment I am about to act on its output?\" Operationally: - **Re-verify the manifest on a schedule, not just at bind.** A cheap `tools/list` re-fetch before each tool class's first invocation in a turn, diffed against ...",
    "operational_effect": "The consequence of missing this boundary is that manifest-time defenses give a false sense of completeness. An agent can pass every schema lint, every description sanitizer, every identity allowlist, and still be injected — because the injection is not in the manifest, it is in the delta between the manifest and the running implementation. The failure is sil..."
  },
  "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": "f5e5cfc2bd0a9e14b5410bfe84d5d2c378a772fc75b9093b8de3ef8bcbd01851",
    "verified_classes": [
      "CapabilityDriftError",
      "ToolBinding",
      "DriftBoundedRegistry"
    ],
    "verified_functions": [
      "_matches_schema",
      "_extract_paths",
      "__init__",
      "bind",
      "_digest",
      "invoke"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
