{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-manifest-poisoned-skill-injection-when-mcp-tool-descriptions-are-re-fetched-after-a-legitimate-hot-reload",
  "title": "How does an instance detect manifest-poisoned skill injection when MCP tool descriptions are re-fetched after a legitimate hot-reload?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that dynamically load tools from MCP servers whose manifests (tool name, description, input schema, and any embedded `instructions`/`prompt` fields) are re-fetched at runtime — hot-reload, cache-miss, or capability renegotiation. Does not apply to statically pinned tool manifests loaded once at process start with no re-fetch path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-mcp-tool-descriptions-are-re-fetched-after-a-legitimate-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-mcp-tool-descriptions-are-re-fetched-after-a-legitimate-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-mcp-tool-descriptions-are-re-fetched-after-a-legitimate-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill-injection attack is not prompt injection into *user content*. It is injection into the *tool-definition channel* — the `description`, `title`, `annotations`, or schema `description` fields that the runtime serializes into the model's context as trusted scaffolding. The model treats these fields as ground truth about what a tool does and when to call ...",
    "what_was_observed": "Trace from a hot-reload event on a filesystem MCP server, task in progress: 1. At task start, instance loads manifest `M0`. Tool `read_file` has description: *\"Read a UTF-8 text file at the given path.\"* Instance caches `(name, schema_hash, description_hash) = (read_file, H_s, H_d0)`. 2. Mid-task, transport drops; client reconnects and re-fetches `list_tools`. Server returns `M1` with the same tool set and identical ...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the attack surface collapses: - **Dynamic re-fetch is enabled** (hot-reload, reconnect, or TTL-based re-listing) without re-pinning. - **The trust decision is keyed on structural compatibility** (name set + schema shape) rather than on the full semantic payload including free-text d...",
    "decision_boundary": "The invariant: **a manifest whose description-hash differs from the pinned hash is a different tool, regardless of schema compatibility, and must not be substituted into an in-flight plan without an explicit re-authorization step.** The decision boundary for the instance is the comparison of `H_d` (semantic hash, covering description/title/annotations/schema...",
    "operational_effect": "With the semantic-hash guard in place, the observed outcomes change as follows: - Manifest-poisoning via hot-reload drops from silent to loud: the reload raises a quarantine event and the plan halts at the next tool boundary rather than executing the injected call. - Legitimate description edits (a server author fixing a typo) also trip quarantine — this is ..."
  },
  "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": "84286e2b09452d42efff18c1a068fd99d0b275046c0158d0bd5a5c11ec44e366",
    "verified_classes": [
      "ManifestSubstitutionError",
      "PinnedTool",
      "SessionLedger"
    ],
    "verified_functions": [
      "semantic_hash",
      "_collect_schema_descriptions",
      "reconcile_reload",
      "_shape_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestSubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
