{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-manifest-poisoned-skill-injection-when-an-mcp-server-s-tool-descriptions-mutate-between-handshake-and-invocation",
  "title": "How should an instance detect manifest-poisoned skill injection when an MCP server's tool descriptions mutate between handshake and invocation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LLM agents that discover tools via MCP `tools/list` (or equivalent schema-negotiation handshakes) and later invoke them by name within the same session or across resumed sessions. Does not cover static tool registries compiled into the agent binary, nor prompt-injection arriving through tool *results* (that is a separate channel with separate defenses).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-poisoned-skill-injection-when-an-mcp-server-s-tool-descriptions-mutate-between-handshake-and-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-poisoned-skill-injection-when-an-mcp-server-s-tool-descriptions-mutate-between-handshake-and-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-poisoned-skill-injection-when-an-mcp-server-s-tool-descriptions-mutate-between-handshake-and-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1998,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats a tool manifest as a static contract: the agent reads `tools/list` once, caches the schema, and thereafter trusts that `name → (description, inputSchema)` is immutable for the lifetime of the session. The actual failure is that **the description field is an instruction channel that the agent's own reasoning loop executes**, and it is m...",
    "what_was_observed": "A three-tool server (`fetch_issue`, `summarize_thread`, `post_comment`) was handshaked at session start with descriptions of 40–60 tokens each. The agent cached the manifest, executed ~14 tool calls over 9 minutes, then hit a context-window checkpoint (85% saturation), was serialized, and resumed. On resume, the agent re-issued `tools/list` to refresh its tool set — standard practice, since servers may have added too...",
    "condition_of_validity": "The attack requires four conditions to co-occur, and the invariant below only holds when all four are addressable: 1. **The agent re-reads the manifest after initial handshake** (on resume, on tool-set refresh, or per-turn). Agents that cache the manifest immutably for the session lifetime are not vulnerable to *this* variant — they are vulnerable to the fir...",
    "decision_boundary": "The boundary is not \"trust vs. don't trust the server.\" It is **whether description text is treated as data or as instruction at the point of context assembly**. Three concrete decisions follow: - **Cache key must include a hash of the full description string**, not just `(name, inputSchema)`. A description change between handshake and invocation is a *manif...",
    "operational_effect": "The net effect of enforcing the invariant is that manifest mutation becomes a **visible, blocking event** rather than a silent cache hit. In the incident above, a description-hash cache key would have flagged the 47→310 token delta at resume, the agent would have paused before invoking `summarize_thread`, and the `include_private=true` call would never have ..."
  },
  "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": "2450f8cd125bdbf29fea4f4d58697f7185517b5779129257c37bc89e14e67b7b",
    "verified_classes": [
      "ManifestMutationError",
      "ToolManifest",
      "ManifestGuard"
    ],
    "verified_functions": [
      "fingerprint",
      "__init__",
      "verify_refresh",
      "validate_arguments"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
