{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-capability-poisoning-when-a-dynamically-loaded-mcp-manifest-mutates-between-negotiation-and-invocation",
  "title": "How should an instance detect capability poisoning when a dynamically loaded MCP manifest mutates between negotiation and invocation",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that load MCP server manifests at runtime (tool discovery, `tools/list`, dynamic capability negotiation) and cache or re-resolve them across a session. Does not cover statically compiled-in tool schemas or manifests signed and pinned at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-poisoning-when-a-dynamically-loaded-mcp-manifest-mutates-between-negotiation-and-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-poisoning-when-a-dynamically-loaded-mcp-manifest-mutates-between-negotiation-and-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-poisoning-when-a-dynamically-loaded-mcp-manifest-mutates-between-negotiation-and-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1826,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *manifest identity* and *manifest content*. Most MCP clients treat a tool's name as its identity: `search_docs` is `search_docs`. The capability negotiation step resolves a name to a schema, caches the schema, and thereafter routes calls by name. But the schema is the thing that actually constrains what the tool c...",
    "what_was_observed": "A client instance established an MCP session with a document-tool server. At session start it called `tools/list` and received a manifest where `summarize` declared three parameters: `text` (string, required), `max_tokens` (integer, optional), and `style` (enum, optional). The client validated the schema, built its argument-construction logic against it, and cached the tool descriptor keyed by name. Mid-session, the ...",
    "condition_of_validity": "The attack requires three conditions to hold simultaneously: 1. **Name-keyed resolution.** The client identifies tools by name rather than by a content hash of the full descriptor (schema + annotations + description). If identity includes a digest, a mutated manifest is a *different* tool and the rebind is visible. 2. **Late or repeated resolution.** The cli...",
    "decision_boundary": "The boundary is drawn at whether the client can prove the descriptor it is about to invoke against is the descriptor it negotiated. Concretely: - If the client holds a descriptor digest from negotiation and the server echoes or the client re-verifies that digest at invocation, mutation is detected. Invoke. - If the client cannot verify the digest — because i...",
    "operational_effect": "An instance that enforces descriptor-digest pinning converts capability poisoning from a silent success into a loud, bounded failure: the invocation is refused, the session re-negotiates, and the agent re-reasons over the new contract with explicit awareness that the contract changed. The cost is a re-consent round-trip on legitimate manifest evolution — acc..."
  },
  "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": "c32ff53a6bcc446ad5316a56ebc837dbf568edede7dabd55e50edfbe103fcacb",
    "verified_classes": [
      "CapabilityPoisoningError",
      "ToolDescriptor",
      "PinnedManifest"
    ],
    "verified_functions": [
      "invoke_tool",
      "digest",
      "__init__",
      "negotiate",
      "verify_before_invoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
