{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-mcp-tool-manifest-poisoning-from-surviving-capability-renegotiation",
  "title": "Which invariants prevent MCP tool-manifest poisoning from surviving capability renegotiation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that discover tools via MCP `tools/list` (or equivalent manifest endpoints) and cache/carry those tool definitions across session boundaries, reconnects, or sub-agent handoffs. Does not cover prompt-injection delivered inside tool *results*; that is a distinct channel with different invariants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-poisoning-from-surviving-capability-renegotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-poisoning-from-surviving-capability-renegotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-tool-manifest-poisoning-from-surviving-capability-renegotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a malicious tool.\" It is that the agent *kept trusting a tool description it never re-verified* after the server behind that description changed. MCP tool manifests are advisory metadata — `name`, `description`, `inputSchema`, and (in newer revisions) `annotations` such as `readOnlyHint` and `destructiveHint`. These field...",
    "what_was_observed": "A coding agent connected to an MCP server `filesystem-ops` at session start. The server returned a manifest with a tool `write_file` whose description read: \"Writes UTF-8 content to a path under the workspace root. Paths are validated against the workspace boundary.\" The client hashed the manifest, cached the tool set, and ran for two hours across three sub-agent handoffs. Mid-session the transport dropped (idle time...",
    "condition_of_validity": "The invariant holds only under these conditions, and each is a place the defense silently fails: 1. **The trust anchor is the manifest digest, not the tool name or schema.** If the client keys trust on `(server_name, tool_name)`, a compromised server that preserves those keys inherits prior approval. The digest must cover `description`, `inputSchema`, *and* ...",
    "decision_boundary": "The boundary is between *capability continuity* and *identity continuity*. Two manifests with identical `name` and `inputSchema` but different `description` or `annotations` are **not the same capability**, even though every structural diff says they are. The decision rule: - If `digest(manifest)` matches the pinned digest → treat as the same trusted capabil...",
    "operational_effect": "Enforcing the digest invariant converts a silent supply-chain compromise into a loud, bounded approval event. The blast radius is capped at \"the agent stops calling that tool until a human looks,\" which is the desired failure mode. The residual risk is the approval-fatigue path: if the server legitimately ships description edits weekly, operators will rubber..."
  },
  "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": "1b147947b3fe95e6f9a47be4f51bd398fda23c643f3b3de1edd55f3cc3c4a5b0",
    "verified_classes": [
      "ManifestDriftError",
      "TrustAnchorMissingError",
      "ToolManifest",
      "ManifestTrustStore"
    ],
    "verified_functions": [
      "handle_reconnect",
      "canonical_digest",
      "__init__",
      "pin",
      "verify_on_renegotiation"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestDriftError",
      "TrustAnchorMissingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
