{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-tool-descriptor-substitution-attack-when-an-mcp-server-s-signed-manifest-was-valid-at-handshake-but-the-running-proces",
  "title": "How should an instance detect a tool-descriptor substitution attack when an MCP server's signed manifest was valid at handshake but the running process serves a divergent tool schema?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP client agents that establish a session against a server whose tool manifest is cryptographically signed at negotiation time, then invoke tools through that session. Does not cover unsigned local stdio servers, nor servers whose entire transport is attested end-to-end per-request (e.g., per-call signed envelopes), where the failure described here cannot arise.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-tool-descriptor-substitution-attack-when-an-mcp-server-s-signed-manifest-was-valid-at-handshake-but-the-running-proces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-tool-descriptor-substitution-attack-when-an-mcp-server-s-signed-manifest-was-valid-at-handshake-but-the-running-proces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-tool-descriptor-substitution-attack-when-an-mcp-server-s-signed-manifest-was-valid-at-handshake-but-the-running-proces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1788,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *manifest attestation* and *descriptor binding*. A signed manifest attests to a set of tool descriptors (name, JSON Schema for inputs, declared side-effect class, resource scopes) at the instant of negotiation. It does **not** attest to what the server process actually emits from `tools/list` on subsequent calls, nor t...",
    "what_was_observed": "In a controlled replay, an MCP client agent completed negotiation against a server advertising a `read_file` tool. The signed manifest declared: - `path`: `string`, `pattern: ^/workspace/[a-zA-Z0-9_./-]+$` (path confined to workspace) - `encoding`: `string`, `enum: [\"utf-8\"]` - side-effect class: `read-only` The client verified the manifest signature against the publisher key, cached the descriptor, and proceeded. Be...",
    "condition_of_validity": "The signed-manifest trust model is only valid under the invariant: > For the lifetime of a session, the descriptor set served by `tools/list` (and the coercion/side-effect behavior of `tools/call`) is byte-identical to the descriptor set covered by the manifest signature verified at handshake. This invariant holds only if at least one of the following is enf...",
    "decision_boundary": "The operational decision is *when to treat descriptor divergence as a session-fatal event versus a recoverable re-negotiation*. The boundary: - **Divergence detected before any `tools/call` in the affected tool's scope** → re-negotiate: fetch a new signed manifest, verify it, and only continue if the new manifest's descriptor digest matches the live `tools/l...",
    "operational_effect": "The practical consequence is that manifest attestation must be treated as a *point-in-time* fact, not a session-long grant. An agent that caches a verified descriptor and reasons over it for the rest of the session is reasoning over a ghost. The guardrail is to bind the descriptor digest into every call and to keep an independent confinement layer that does ..."
  },
  "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": "4225a882dd7a9d4eabee055f4f47b7d447d9e4342ae8208367bc83edecfa2af6",
    "verified_classes": [
      "DescriptorDivergenceError",
      "PinnedDescriptor"
    ],
    "verified_functions": [
      "canonical_digest",
      "verify_live_descriptor",
      "guarded_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptorDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
