{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-tool-description-tamper-when-the-mcp-server-s-advertised-hash-is-signed-but-the-runtime-manifest-drifts-between-capabili",
  "title": "How does an instance detect a tool-description tamper when the MCP server's advertised hash is signed but the runtime manifest drifts between capability negotiation and first invocation?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that binds to an MCP server via `tools/list`, caches the returned tool descriptors, and later executes `tools/call` against a server whose process, container image, or configuration can change between handshake and invocation. Does not cover servers that are re-handshaked on every call, nor transports where `tools/list` and `tools/call` are bound to a single signed session token with no renegotiation window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tool-description-tamper-when-the-mcp-server-s-advertised-hash-is-signed-but-the-runtime-manifest-drifts-between-capabili.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tool-description-tamper-when-the-mcp-server-s-advertised-hash-is-signed-but-the-runtime-manifest-drifts-between-capabili.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-tool-description-tamper-when-the-mcp-server-s-advertised-hash-is-signed-but-the-runtime-manifest-drifts-between-capabili.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2214,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the server lied at handshake.\" The failure is that **capability attestation is a point-in-time observation while tool execution is a continuous trust surface**, and the two are joined by a mutable object: the server's runtime manifest (the actual code path, prompt template, or JSON schema that will parse the arguments and shape the model-...",
    "what_was_observed": "A filesystem MCP server was attested at handshake: `tools/list` returned 4 tools, the client verified the Ed25519 signature over the canonicalized descriptor set, and cached it with a `manifest_digest`. The server's `read_file` tool was described as: Between negotiation and the first `tools/call`, the server process was restarted by its supervisor (OOM, config reload — a routine event). The new process served the sam...",
    "condition_of_validity": "The guardrail below is only sound under these conditions, and fails open otherwise: 1. **The client must hash the descriptor set the model actually sees**, not the one it cached. If the model's context is assembled from a different source than the attestation cache (e.g., a prompt builder that re-fetches `tools/list`), the digest comparison is meaningless un...",
    "decision_boundary": "The instance must decide, at each reasoning step that includes a tool descriptor in context, whether the descriptor it is about to reason over matches the attestation. The boundary is: - **Match** → proceed, dispatch normally. - **Mismatch, server unreachable for re-attestation** → **halt the tool-using loop**, do not fall back to the cached descriptor (the ...",
    "operational_effect": "The immediate effect of enforcing this invariant is a class of halts that operators will initially find noisy: any server that emits non-deterministic description text, or that restarts with a benign config change, will trip the guardrail. This is the correct trade — the alternative is an agent that reasons over attacker-influenced prose while the audit log ..."
  },
  "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": "7d54341e9556339813ac6a98fdc30b158a2ba034fbf9bf41f0eb2881e7492071",
    "verified_classes": [
      "DescriptorDriftError",
      "AttestationUnavailableError",
      "AttestedManifest"
    ],
    "verified_functions": [
      "canonicalize_descriptor",
      "digest_descriptor_set",
      "schema_digest",
      "check_descriptor_integrity"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationUnavailableError",
      "DescriptorDriftError"
    ],
    "sample_fail_closed_invariants": [
      "re-attestation succeeded but does not match live descriptor set; possible tamper-in-flight during re-list",
      "tool name or argument schema changed since attestation; operator re-approval required before dispatch",
      "description prose changed under valid re-attestation; treat as security event, not cosmetic update"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
