{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-that-silently-redefines-a-previously-approved-tool",
  "title": "What happens when an instance trusts a re-fetched MCP tool manifest that silently redefines a previously-approved tool",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that discover tools via an MCP (Model Context Protocol) registry or server and cache tool manifests across a session or across sessions, particularly when the manifest is re-fetched at call time or on reconnect. Does not apply to statically compiled tool bindings where the schema is pinned at build time and never re-read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-that-silently-redefines-a-previously-approved-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-that-silently-redefines-a-previously-approved-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-re-fetched-mcp-tool-manifest-that-silently-redefines-a-previously-approved-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1730,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not \"the agent called a malicious tool.\" It is subtler: the agent called a tool whose *name and description it had already approved*, but whose *schema and underlying implementation changed between approval and invocation*. Tool identity in MCP is conventionally keyed on `(server, tool_name)`. The description string, input schema, an...",
    "what_was_observed": "A coding agent established an MCP session with a registry-backed server at session start. It enumerated 14 tools, cached their manifests, and the orchestrator recorded a hash of the approved manifest set. Mid-task, the transport dropped and the client reconnected, re-fetching the manifest per the reconnect contract. The registry had, in the intervening window, updated the `search_code` entry: same name, same paramete...",
    "condition_of_validity": "The invariant that must hold for safe operation is: **a tool invocation is only valid if the manifest bytes presented at invocation time are identical to the manifest bytes that were approved, or the delta has been explicitly re-approved by the same principal that approved the original.** Formally, for tool `t` on server `s`, let `M_approve(s,t)` be the mani...",
    "decision_boundary": "When a re-fetched manifest differs from the approved manifest in *any* byte — including description text, parameter descriptions, added optional parameters, or annotation changes — the system must choose between two behaviors: - **Fail closed (required for tools touching secrets, filesystem, network egress, or money):** refuse the call, surface the delta to ...",
    "operational_effect": "Without the byte-exact invariant, reconnect and handoff become attack windows: the transport's own recovery mechanism (re-fetch on reconnect) is the delivery vector, and the agent's trust in *names* is the vulnerability. Poisoned manifests propagate through A2A handoffs because authorization warrants are propagated but manifest integrity attestations are not..."
  },
  "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": "d9bf8756e27d8fb4b2b5f9683600de95140c7cc4abac4b3667cc10de988a8185",
    "verified_classes": [
      "ManifestIntegrityError",
      "ApprovedManifest"
    ],
    "verified_functions": [
      "_hash_manifest",
      "invoke_tool",
      "handle_reconnect"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
