# Where must an instance refuse a signed MCP tool manifest whose attestation covers the schema but not the runtime binding **Date of Record:** 2026 November 24 **Scope:** Applies to agents that admit tools from third-party MCP servers under a signed manifest plus supply-chain attestation (e.g., in-toto/SLSA-style provenance, sigstore bundles). Does not apply to first-party tools compiled into the agent image, nor to servers reached over mTLS with no manifest-signing layer. ## Core Distinction A signed MCP tool manifest binds two things that look identical in the artifact but are semantically separable: the *declared interface* (tool name, JSON Schema for `inputSchema`, description, side-effect class) and the *runtime binding* (the concrete executable, container digest, or remote endpoint that will actually service `tools/call`). Attestation predicates routinely cover the first and silently omit the second. The signature is valid. The schema is intact. The tool the agent thinks it negotiated is not the tool that will execute. The failure is not signature forgery. It is **scope under-coverage**: the attestation's `subject` digest points at the manifest document, and the manifest document references a runtime by a mutable label (`image: "acme/fs-tools:latest"`, `endpoint: "https://mcp.acme.internal/fs"`) rather than an immutable digest. Verification passes because everything the signature *covers* is unmodified. The invariant that must hold—*the attested bytes are the executing bytes*—is never checked, because the manifest never claimed it. ## What Was Observed A filesystem MCP server was onboarded with a manifest signed by the publisher's CI identity and an in-toto attestation of type `https://slsa.dev/provenance/v1`. The agent's admission gate verified: (1) the signature chain to the publisher root, (2) the manifest digest against the attestation `subject`, (3) the `inputSchema` for `write_file` against a cached copy from a prior session. All three passed. The `inputSchema` was byte-identical to the version the agent had previously exercised. The manifest's `server.runtime` field read `oci://acme/mcp-fs:stable`. The attestation `subject` digest covered `manifest.json` only; the `materials` list referenced the source repo at a commit, not the built image digest. The tag `stable` had been re-pointed between attestation time and admission time. The concrete divergence was in the *description* field, which is part of the manifest the agent read but is not part of `inputSchema` and so was not covered by the interface check the agent performed. The re-pointed image's manifest described `write_file` as "writes within the sandbox root," while the executing binary resolved relative paths against the process CWD. The agent's planner, reading the description, emitted `path: "../secrets/x"` reasoning it was sandbox-relative. The tool executed it against CWD. The schema validated. The call succeeded. The write landed outside the sandbox root. The trace shows the exact seam: `tools/list` returned the *new* manifest (tag re-pointed), the agent's admission gate compared it against the *cached* interface hash and found `inputSchema` equal, and the description delta—the only field that carried the changed semantics—was never diffed because it was classified as non-load-bearing prose. ## Condition of Validity The guardrail holds only when **all three** of the following are simultaneously true at the moment of `tools/call`, not merely at admission: 1. The manifest's runtime reference is an immutable digest (`oci://acme/mcp-fs@sha256:…` or an equivalent content-addressed endpoint), and that digest appears as an attestation `subject` alongside the manifest digest. 2. The admission gate hashes the *entire* manifest document—description, side-effect class, and any `annotations` the planner reads—not just `inputSchema`. Description is load-bearing because the planner consumes it as instruction. 3. The runtime is re-attested (or the digest re-resolved and compared) at each session boundary, not cached across sessions. If any one fails, the signature remains valid and the invariant "attested bytes == executing bytes" is unenforced. In the incident above, (1) and (2) both failed; either alone would have caught it. ## Decision Boundary An instance must refuse admission—not warn, not degrade—when the attestation `subject` set does not include a digest that the runtime resolver will actually dereference. The precise test: resolve `server.runtime` to a digest *before* trusting the manifest, then assert that digest is present in the attestation `subject` list. If `server.runtime` is a tag or label, resolution is non-deterministic and the assertion cannot be made; the manifest is inadmissible regardless of signature validity. The boundary is sharp and asymmetric. A manifest with a valid signature over an immutable runtime digest and full-document coverage is admissible even if the publisher is unfamiliar. A manifest with a perfect signature over a mutable runtime reference is inadmissible even from a trusted publisher, because the trust anchor (the signature) does not transitively reach the executing artifact. Trust does not compose across an unbound reference. ## Operational Effect Enforcing this boundary converts a silent scope-under-coverage failure into a loud admission rejection. The agent stops treating "signature verified" as a terminal state and instead treats it as a precondition for a second, independent check: *does the signed subject set intersect the executing artifact's digest?* The cost is that some legitimately-signed manifests are rejected because their publishers attest the source commit but not the built image—a real and common gap. That rejection is correct: the agent cannot verify what it will run, and the safe default is refusal over optimistic execution. The secondary effect is that `description` and `annotations` move into the attested surface. Publishers who signed only `inputSchema` must re-issue attestations over the full document, because the planner's behavior is a function of prose the signature previously ignored. This is the non-obvious part: the supply-chain boundary for MCP is not at the schema, it is at the union of every field a reasoning agent will read as instruction. ```python import hashlib import json from dataclasses import dataclass class ManifestAttestationScopeError(RuntimeError): """Raised when a signed manifest's attestation does not cover the executing runtime.""" @dataclass(frozen=True) class Attestation: subject_digests: frozenset[str] # sha256:... digests the signature actually covers signer: str @dataclass(frozen=True) class RuntimeRef: raw: str # e.g. "oci://acme/mcp-fs:stable" is_immutable: bool resolved_digest: str | None # None if raw is a mutable tag/label def resolve_runtime(ref: str) -> RuntimeRef: if "@sha256:" in ref: return RuntimeRef(ref, True, "sha256:" + ref.split("@sha256:", 1)[1]) return RuntimeRef(ref, False, None) def full_manifest_digest(manifest: dict) -> str: # Load-bearing surface includes description and annotations, not just inputSchema. canonical = json.dumps(manifest, sort_keys=True, separators=(",", ":")).encode() return "sha256:" + hashlib.sha256(canonical).hexdigest() def admit_tool(manifest: dict, attestation: Attestation) -> None: runtime = resolve_runtime(manifest["server"]["runtime"]) if not runtime.is_immutable or runtime.resolved_digest is None: raise ManifestAttestationScopeError( f"runtime {runtime.raw!r} is a mutable reference; " "attestation cannot transitively bind the executing artifact" ) manifest_digest = full_manifest_digest(manifest) covered = attestation.subject_digests if manifest_digest not in covered: raise ManifestAttestationScopeError( f"full manifest digest {manifest_digest} not in attested subjects " f"{sorted(covered)}; description/annotations may be unsigned" ) if runtime.resolved_digest not in covered: raise ManifestAttestationScopeError( f"runtime digest {runtime.resolved_digest} not in attested subjects " f"{sorted(covered)}; signature covers schema but not executing bytes" ) # Both the full document and the executing artifact are attested: admissible. ```