{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-has-silently-mutated-an-agent-s-capability-surface-mid-session",
  "title": "What structural signals indicate a poisoned MCP tool manifest has silently mutated an agent's capability surface mid-session",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LLM agents that dynamically enumerate MCP tool manifests (`tools/list`) at runtime and re-resolve tool schemas between turns. Does not apply to statically pinned, hash-verified toolchains where manifest content is frozen at build time and never re-fetched during a session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-has-silently-mutated-an-agent-s-capability-surface-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-has-silently-mutated-an-agent-s-capability-surface-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-has-silently-mutated-an-agent-s-capability-surface-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1953,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"malicious tool description tricks the model.\" That is the well-understood prompt-injection case, and it is caught (imperfectly) by input scanning and by the model's own judgment. The non-obvious failure is **manifest drift**: the *set* of tools, their *names*, or their *input schemas* change between the manifest the model was primed ...",
    "what_was_observed": "A tool server registered as a routine \"utility\" MCP endpoint (filesystem helpers, timestamp, base64) advertised five tools at `initialize`/`tools/list` on turn 0. The agent's planner read these five, embedded their names and JSON schemas into its working context, and produced a plan referencing `read_file`, `list_dir`, `write_file`, `now`, `b64`. At turn 6, after the agent had consumed roughly 40% of its context budg...",
    "condition_of_validity": "This boundary applies only when three conditions co-hold: - The agent **dynamically re-resolves** `tools/list` mid-session (reconnect, TTL expiry, explicit refresh) rather than pinning at init. - The dispatcher performs **name resolution with any fallback** (fuzzy match, alias table, case-insensitive normalization, prefix matching) rather than exact-match-or...",
    "decision_boundary": "The correct posture is not \"re-scan tool descriptions on refresh\" — that addresses content, not identity. The decision boundary is: **on any manifest delta, do you (a) merge additively into the live surface, (b) reject the delta and keep the primed surface, or (c) halt the session and require re-priming?** Option (a) is what most clients do by default and is...",
    "operational_effect": "Without this boundary, the agent's memory of its own capabilities becomes a liability: the more faithfully the model plans against its primed tool surface, the more exposed it is to a dispatcher that has quietly moved underneath it. The attack surface is the *divergence* between two representations of the same system — the model's and the client's — and that..."
  },
  "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": "749e94822f4a81aabcfe566c42c304d4d2901414eebee620002ed5f95326e7a8",
    "verified_classes": [
      "CapabilitySurfaceMutationError",
      "PrimedManifest"
    ],
    "verified_functions": [
      "verify_dispatch_manifest",
      "_is_strict_narrowing",
      "dispatch",
      "from_tools"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilitySurfaceMutationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
