{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-an-mcp-tool-descriptor-whose-attestation-signature-verifies-but-whose-descriptor-bytes-differ-from-the-attested-digest",
  "title": "When must an instance reject an MCP tool descriptor whose attestation signature verifies but whose descriptor bytes differ from the attested digest",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime that consumes MCP `tools/list` responses and gates tool invocation on a supply-chain attestation (e.g., Sigstore/in-toto/SLSA-style envelope) attached to a server package or manifest. Does not apply to runtimes that re-resolve descriptors from a live server on every call with no cached attestation, nor to purely local in-process MCP servers with no distribution boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-descriptor-whose-attestation-signature-verifies-but-whose-descriptor-bytes-differ-from-the-attested-digest.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-descriptor-whose-attestation-signature-verifies-but-whose-descriptor-bytes-differ-from-the-attested-digest.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-tool-descriptor-whose-attestation-signature-verifies-but-whose-descriptor-bytes-differ-from-the-attested-digest.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1966,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"unsigned tool.\" It is **signature-valid, digest-mismatched descriptor drift**: the attestation verifies cryptographically against the signer's key, the envelope's `subject.digest` matches the *package artifact* the registry shipped, and yet the descriptor bytes the agent actually parses at `tools/list` time hash to something else. Th...",
    "what_was_observed": "A runtime pinned an MCP server to a signed package version. The attestation (in-toto statement, SLSA provenance predicate) verified cleanly: signer identity matched the expected OIDC issuer, `subject[0].digest.sha256` matched the downloaded artifact, and the transparency-log inclusion proof was valid. The runtime cached the descriptor set at cold start and reused it for the session. A second instance of the same serv...",
    "condition_of_validity": "The guardrail is only meaningful under these conditions, and must be documented as such: 1. **The server exposes a canonical descriptor serialization.** If the server cannot emit a deterministic, canonicalized `tools/list` (stable key order, no environment interpolation, no timestamps), no digest comparison can be stable. Canonicalization must be defined by ...",
    "decision_boundary": "The runtime must draw a hard line at the moment of descriptor admission, before any descriptor text reaches the model's context: - **Admit** a tool iff: envelope verifies AND signer identity matches the pinned identity AND the recomputed canonical descriptor digest is a member of the attested descriptor-digest set AND the server is not flagged `dynamic`. - *...",
    "operational_effect": "Concretely, the runtime gains three properties: (1) the model can never reason over a descriptor that was not covered by a verified attestation, closing the flag-injection and plugin-registration channels; (2) descriptor caching becomes sound because the cache key is the attested digest, and replica nondeterminism is surfaced as a quarantine rather than sile..."
  },
  "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": "58f3a59585c2fb90d34f0351c9b7b355618fde8002e39b3b92785090bb08987d",
    "verified_classes": [
      "DescriptorIntegrityError",
      "Attestation"
    ],
    "verified_functions": [
      "canonicalize",
      "descriptor_digest",
      "admit_tool_surface",
      "admit_per_descriptor"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DescriptorIntegrityError"
    ],
    "sample_fail_closed_invariants": [
      "server declares dynamic tool surface; descriptors are unattestable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
