# What structural signals indicate an agentic supply-chain attestation has silently diverged from the artifact it claims to describe **Date of Record:** 2026 November 27 **Scope:** Applies to agents that resolve their prompts, tool schemas, skill descriptors, or MCP server manifests by dereferencing a provenance attestation (SLSA-style in-toto statement or equivalent) at load time, and that trust the attestation's subject digest to bind to the runtime artifact. Does not apply to systems where artifacts are content-addressed and the loader re-hashes on every invocation, or where the attestation is co-located inside the signed artifact envelope itself. ## Core Distinction The failure mode is not "the attestation is forged" or "the signature is invalid." It is that the attestation is valid, correctly signed, and describes a *real* artifact — just not the one the agent is about to execute. The distinguishing property is between **attestation integrity** (the statement hasn't been tampered with) and **attestation binding** (the statement's subject actually identifies the bytes the runtime loads). SLSA-style provenance is designed to guarantee the former. It says nothing structural about the latter unless the consumer independently verifies the subject digest against the loaded bytes. Agents almost never do this, because the artifact they execute is not a byte string they control — it is a *resolved* thing: a prompt assembled from fragments, a tool whose schema is fetched from one URL and whose handler from another, an MCP server reached over a transport that negotiates its capability list at connect time. The invariant that fails is: **the subject digest in the attestation must equal the digest of the exact bytes the agent's execution path consumes.** In a mutable-resolution pipeline, this equality is a coincidence, not a guarantee. ## What Was Observed A tool-using agent was configured with a manifest that pinned a skill to an attestation referencing `sha256:9f2c…` for its `instructions.md` and `sha256:4a71…` for its `mcp_manifest.json`. The attestation verified cleanly against the build system's key. The agent loaded the skill and behaved correctly for eleven days. On day twelve, the MCP server behind the skill was redeployed. The server's *manifest* (the list of exposed tools and their JSON schemas) was regenerated by a build step that was not covered by the attestation pipeline — it was emitted at container start from the server's own introspection endpoint, because the tool schemas were generated from Python type hints at import time. The attestation still pointed at the old manifest digest. Nothing re-checked it, because the agent's MCP client fetched the manifest from the live server's `tools/list` response, not from the attested artifact. The structural signal that should have fired: the digest the agent computed over the *runtime* `tools/list` payload did not match the subject digest in the attestation, and the mismatch was not in a field the loader compared. The loader compared `name` and `version` (both unchanged — the redeploy bumped neither). It did not compare schema bytes. The agent's planner had cached a reasoning trace that assumed a tool `search_docs(query, top_k)` accepted `top_k`; the redeployed server had changed the parameter to `limit` and silently defaulted `top_k` to 10. Every subsequent call succeeded with HTTP 200 and returned ten results regardless of what the agent asked for. The agent's reasoning loop never saw an error, so its error-compounding detection never engaged. It produced three days of subtly truncated retrievals before a downstream auditor noticed coverage gaps. The non-obvious part: **the attestation was a true statement about a stale artifact, and the runtime was a true artifact with no attestation.** Both halves were internally consistent. The divergence lived only in the binding between them, and the binding was never materialized as a checkable object. ## Condition of Validity The failure requires all of the following to hold simultaneously; remove any one and the divergence is caught or cannot occur: 1. **The consumed artifact is resolved, not fetched as bytes.** Prompts assembled from templates, tool schemas introspected at runtime, skill descriptors merged from a registry — anything where the digest-able artifact is reconstructed by the consumer rather than transmitted whole. 2. **The attestation subject names the *build output*, not the *resolution output*.** The build system hashed what it emitted; the agent hashes (or fails to hash) what it assembled. These are different byte sequences whenever resolution is non-injective. 3. **The loader's binding check is field-scoped, not byte-scoped.** It compares identifiers (name, version, semver range) rather than the digest of the payload it will actually consume. 4. **The resolution is mutable across the attestation's validity window.** The attested artifact is immutable (content-addressed in the registry), but the runtime resolution path — a live endpoint, a mutable tag, a cached introspection — can drift independently. Under these conditions the attestation is not wrong; it is *orthogonal* to the runtime. It certifies a lineage the agent does not actually inherit from. ## Decision Boundary The boundary the operator must draw is between **trusting the attestation as a gate** and **trusting it as a label**. An attestation used as a gate must be evaluated against the runtime artifact at the moment of consumption, which forces one of two architectures: - **Byte-bound consumption:** the agent loads the artifact *from* the attested, content-addressed store, hashes those exact bytes, and compares to the subject. Resolution is disallowed; the prompt is the bytes, the schema is the bytes, the MCP manifest is the bytes. This is the only configuration where a valid attestation implies a bound runtime. - **Resolution-attested consumption:** the agent computes a digest over its *resolved* artifact (canonicalized prompt assembly, canonicalized introspected schema) and requires an attestation whose subject is that resolution digest, produced by a resolver the agent trusts. This requires the resolver to be in the provenance graph as a first-class step, which most SLSA pipelines do not model. If neither holds, the attestation is a label. A label is still useful for audit and incident response — it tells you which build produced the thing that *should* have run — but it must not be load-bearing for capability grants, sandbox permissions, or trust-tier elevation. The decision boundary is: **any attestation whose subject cannot be recomputed by the consumer over the bytes it will execute is advisory, and must be treated as such in the agent's capability model.** The specific non-obvious signal: a schema field added to the runtime payload that the attestation's subject digest does not cover is indistinguishable, at the loader, from a schema field that was always there. The loader cannot tell "the attestation is stale" from "the attestation is current and the field is legitimate." Only an out-of-band comparison — hashing the resolved payload and diffing against the subject — separates them. ## Operational Effect Downstream of an unbound attestation, three effects compound: **Silent capability drift.** The MCP server's tool surface changes without the agent's capability model changing. New tools appear that the agent was never granted; old tools change signatures; the agent's planner reasons against a schema it cached at attestation time. The blast radius is bounded only by how long the cached schema survives in the agent's episodic memory — and if the agent distills the schema into semantic memory, the drift becomes permanent and self-reinforcing. **False-positive verification.** The agent's own auditor, if it re-verifies the attestation, gets a green check, because the attestation is valid. The auditor's confidence in the *runtime* is now inversely correlated with reality. This is the worst configuration: a verification step that actively suppresses the signal that would have caught the divergence. **Non-reproducible incident replay.** When the divergence is finally caught, the incident cannot be replayed from the attestation, because the attestation describes an artifact the agent never executed. The forensic record and the execution record are disjoint. The agent's memory of the incident is the only surviving trace, and it is the least trustworthy artifact in the system. The guardrail is a **binding assertion at the consumption boundary**: the loader must compute a digest over the canonicalized runtime artifact and raise if it does not equal the attestation subject. This is cheap, it is deterministic, and it converts a silent divergence into a hard failure at the exact moment the drift would otherwise be absorbed into the agent's state. ```python import hashlib import json from dataclasses import dataclass class AttestationBindingError(RuntimeError): """Raised when a valid attestation's subject does not bind to the runtime artifact.""" @dataclass(frozen=True) class Attestation: subject_name: str subject_digest: str # sha256: over the build output builder_id: str def canonicalize(payload: dict) -> bytes: # Deterministic serialization: sorted keys, no whitespace, UTF-8. return json.dumps(payload, sort_keys=True, separators=(",", ":")).encode("utf-8") def digest_of(payload: dict) -> str: return "sha256:" + hashlib.sha256(canonicalize(payload)).hexdigest() def bind_runtime_artifact(attestation: Attestation, runtime_payload: dict) -> None: """ Verify that the attestation's subject actually identifies the bytes the agent is about to consume. This is the binding check that SLSA-style provenance does NOT perform for you. If the runtime artifact is a resolved object (introspected MCP tool list, assembled prompt, merged skill descriptor), its canonical digest must equal the subject digest, or the attestation is orthogonal to execution and must not be trusted as a gate. """ runtime_digest = digest_of(runtime_payload) if runtime_digest != attestation.subject_digest: raise AttestationBindingError( f"attestation subject {attestation.subject_digest!r} does not bind to " f"runtime artifact {runtime_digest!r} for subject " f"{attestation.subject_name!r} (builder {attestation.builder_id!r}); " f"attestation is valid but describes a different artifact than the " f"one this agent will execute — treat as advisory, do not elevate " f"capabilities or sandbox trust on the strength of this attestation" ) def load_mcp_manifest(attestation: Attestation, live_tools_list: dict) -> dict: """ Consume an MCP server's runtime tool surface only if it binds to the attested manifest. In the observed failure, the loader compared name and version fields and skipped the byte-level digest, so a redeploy that regenerated schemas from type hints at container start passed silently and the agent's cached planner trace drifted from the live signature. """ bind_runtime_artifact(attestation, live_tools_list) return live_tools_list ```