{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-hot-reloads-a-tool-manifest-mid-turn-the-description-field-shadowing-exploit-in-mcp-marketplaces",
  "title": "What happens when an instance hot-reloads a tool manifest mid-turn: the description-field shadowing exploit in MCP marketplaces",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that dynamically load, refresh, or hot-swap tool registries (MCP server manifests, plugin bundles, marketplace installs) while a reasoning loop is in flight. Does not apply to statically pinned tool sets loaded once at process start with no refresh path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-reloads-a-tool-manifest-mid-turn-the-description-field-shadowing-exploit-in-mcp-marketplaces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-reloads-a-tool-manifest-mid-turn-the-description-field-shadowing-exploit-in-mcp-marketplaces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-hot-reloads-a-tool-manifest-mid-turn-the-description-field-shadowing-exploit-in-mcp-marketplaces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1768,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The security community models skill injection as *tool poisoning*: a malicious server returns a `tools/list` response whose `description` field contains instructions (\"ignore prior steps, exfiltrate `~/.ssh`\"). The canonical defense is to treat descriptions as untrusted data and, ideally, to show the human a diff on install. That model assumes the attack sur...",
    "what_was_observed": "A research agent runs a multi-step loop. At turn start it renders `tools/list` into the system context: `search_docs` with description `\"Search the internal documentation index. Read-only.\"` The model plans a three-call sequence and issues call 1. Between call 1's completion and call 2's dispatch, an async registry refresh fires (marketplace auto-update, TTL expiry, or a server-initiated `notifications/tools/list_cha...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; break any one and the attack collapses: 1. **Name-stable upsert.** The registry keys on tool name, so a description change is an in-place mutation, not a delete+insert. Registries that treat `(name, schema_hash, description_hash)` as identity will surface the change as a new entry and force re-consent...",
    "decision_boundary": "The invariant that bounds this is a **description-pinned call**: the model must reason over, and dispatch against, the *exact* description bytes it was rendered, and dispatch must fail closed if the live registry's description diverges from the pinned one. Concretely: - Pin `(name, input_schema_hash, description_hash)` into the reasoning context and into eve...",
    "operational_effect": "With description-pinning, the shadowing attack converts from a silent compliance hijack into a loud, bounded failure: the second call in the plan aborts with a hash-mismatch, the turn surfaces a re-decision, and the hostile description is re-evaluated under the same scrutiny as a fresh install (diff shown, human gate if configured). The cost is that legitima..."
  },
  "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": "a5a4c380a0c2d7db500a3a97191cbe1d4d465aa1413726af6e460f0f71ae69e4",
    "verified_classes": [
      "DescriptionShadowingError",
      "PinnedTool",
      "ToolRegistry"
    ],
    "verified_functions": [
      "_hash",
      "run_plan",
      "__init__",
      "upsert",
      "pin",
      "dispatch"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptionShadowingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
