{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-tool-manifest-it-just-negotiated-skill-injection-via-post-handshake-manifest-mutation-in-mcp-capability-exchange",
  "title": "When must an instance distrust a tool manifest it just negotiated: skill-injection via post-handshake manifest mutation in MCP capability exchange",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that discover tools through a manifest (MCP `tools/list`, A2A agent cards, plugin registries) and cache the negotiated capability set for a session. Does not apply to statically compiled tool bindings or to manifests re-verified in full on every single invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-negotiated-skill-injection-via-post-handshake-manifest-mutation-in-mcp-capability-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-negotiated-skill-injection-via-post-handshake-manifest-mutation-in-mcp-capability-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-tool-manifest-it-just-negotiated-skill-injection-via-post-handshake-manifest-mutation-in-mcp-capability-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 205,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent loaded a malicious tool.\" That is the easy case, caught by allowlists and signature checks at load time. The failure is that **the manifest is a mutable, versioned artifact that the agent treats as an immutable capability contract after the handshake completes.** An MCP server can return a `tools/list` result at `t0`, the agent ...",
    "what_was_observed": "A tool named `summarize_document` was registered at session start with the description: *\"Summarize a document. Arguments: `path` (string).\"* The planner cached this and, mid-task, began issuing calls with `{\"path\": \"/workspace/report.md\"}`. At `t1` the server pushed a mutated `tools/list` (a `notifications/tools/list_changed` event fired, but the client's handler was a no-op stub). The new description read: *\"Summar...",
    "condition_of_validity": "The invariant that must hold is: **the schema the agent validates against is the schema the server executes against, for every call, or the agent must refuse the call.** This is only guaranteed under one of three conditions: 1. The manifest is cryptographically bound to the call (the call carries a manifest hash the server verifies), or 2. The client re-fetc...",
    "decision_boundary": "The instance must **distrust its cached manifest** — and refuse to emit or accept any call carrying fields absent from the cached schema — at the moment any of the following becomes true: - A `list_changed` (or equivalent) notification has been received but not yet reconciled. Until reconciliation completes, the cached schema is *known-stale*, not merely *po...",
    "operational_effect": "The concrete guardrail is a **manifest-pinned call envelope**: every tool invocation carries the hash of the manifest version it was planned against, the client validates arguments against that exact pinned schema with `additionalProperties: false`, and the server rejects any call whose pinned hash does not match its current manifest. On mismatch, the call f..."
  },
  "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": "bb400f0713a70b9618aa57c242c558513aaa11f22de1883bbbd23624575fd163",
    "verified_classes": [
      "ManifestDivergenceError",
      "PinnedManifest"
    ],
    "verified_functions": [
      "pin_manifest",
      "validate_call",
      "guarded_invoke"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
