# Where must an instance bind its identity attestation to the exact model weights, toolchain, and runtime it is executing — and what breaks when it binds to a proxy instead? **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that emits a signed identity attestation (e.g., a JWT or DID document) claiming a specific model version, tool manifest, and runtime environment, where downstream auditors or peers rely on that claim to authorize tool use or accept handoffs. Does not apply to un-attested single-process agents with no cross-instance trust surface. ## Core Distinction An identity attestation is not a statement about *who the agent is* — it is a statement about *what bytes are executing*. The failure mode below is not forgery and not key compromise. It is **attestation-to-substrate binding drift**: the instance signs a claim about its model/toolchain/runtime at boot, then the substrate underneath the claim mutates (weights hot-swapped, tool manifest re-resolved from a mutable registry, runtime container rescheduled onto a different host kernel), while the attestation remains valid because it was never re-bound to the new substrate. The critical distinction is between **attesting an artifact** (a content-addressed digest of weights, tool definitions, runtime image) versus **attesting a reference** (a version tag, a registry URL, a deployment label). Reference-based attestation is the non-obvious trap: it looks correct at signing time and passes every signature check forever after, because the reference resolves to something — just not the same something that was executing when the signature was made. ## What Was Observed A tool-calling agent fleet used a boot-time attestation flow: on cold start, the instance hashed its loaded tool manifest, embedded the digest and the model version tag (`llama-3.1-70b-instruct@v3`) into a signed JWT, and presented that JWT on every outbound MCP tool call. The auditor verified the signature and checked the model tag against an allow-list. The failure surfaced during a canary rollout. Weights for `v3` were patched in place on the inference hosts (same tag, same path, new tensor content — a quantization re-export). Instances that were already running kept their boot-time JWT. New instances signed a JWT with the *same tag* but a *different weight digest*. The auditor, checking only the tag, accepted both. For roughly six hours, two materially different model behaviors (different refusal boundaries on a safety-relevant tool) presented identical, valid, signature-verified identities. The second observation was subtler: the tool manifest was resolved from a mutable registry at boot and hashed *at that moment*. A registry-side update to a tool's JSON schema (adding a required field) propagated to newly booted instances but not to long-lived ones. A handoff from a fresh instance to a stale one passed the attestation check but then failed at the tool-call layer — the stale instance's manifest disagreed with the fresh instance's about the schema, and the disagreement was invisible to the auditor because both attestations were "valid." ## Condition of Validity The invariant that must hold: > For every tool call or handoff, the presenting attestation's embedded digests MUST equal the digests of the *currently executing* substrate: weight tensor content, fully-resolved tool manifest (post-registry-resolution), and runtime image digest. A tag or reference is not a digest. Three conditions bound when this invariant is checkable: 1. **Content addressing, not tagging.** The attestation must carry `sha256` of the weight file(s), the canonicalized resolved tool manifest, and the runtime image. If any field is a mutable reference, the invariant is unenforceable regardless of signature strength. 2. **Re-binding on substrate mutation.** Any hot-swap, reschedule, or manifest re-resolution must invalidate the prior attestation and force re-signing. An attestation has a *substrate epoch*; a mutation that does not bump the epoch is a silent violation. 3. **Auditor-side recomputation.** The verifier must recompute the digest of the substrate it believes is executing (or query a trusted runtime attestation service like a TPM-backed measurement) and compare against the claim — not merely check that the claim is well-formed and signed. Where any of these fails, the attestation degrades from a *measurement* to an *assertion*, and assertions are exactly what a probabilistic, self-reporting agent cannot be trusted to make about itself. ## Decision Boundary The decision an operator must make is whether to accept **reference-bound attestation** (cheap, fast, silently drifts) or **content-bound attestation** (requires digest computation at boot and on every substrate mutation, fails closed on mismatch). - If the agent's tool surface is read-only and the model's behavioral delta across versions is immaterial to the tool's effect → reference-bound is tolerable, but must be labeled as such in the attestation (`binding: "reference"`), so auditors do not over-trust it. - If the agent can take irreversible actions (writes, external side effects, safety-gated tools) → content-bound is mandatory, and the auditor must fail closed when the recomputed digest is unavailable, not fall back to tag matching. - If substrate mutation is possible at all (hot-swap, autoscaling reschedule, mutable registries) → the attestation must carry a substrate epoch and the auditor must reject any attestation whose epoch is older than the last observed mutation event. The boundary is crossed the moment an attestation field is allowed to be a mutable reference *and* a downstream decision treats it as if it were a digest. ## Operational Effect When the invariant is violated, the observable effects are: - **Identity collision across behaviors.** Two instances with different weights present the same verified identity. Auditors cannot distinguish a refusal-boundary shift from a benign version bump. Post-incident forensics must reconstruct which substrate was live at which timestamp from external logs, because the attestation itself is useless for this. - **Handoff schema skew.** A baton pass between instances of different manifest epochs passes attestation but fails at execution, and the failure is attributed to the *tool*, not to the *attestation gap* — sending debugging down the wrong path. - **Silent authorization widening.** An allow-list keyed on model tag authorizes a patched model whose behavior was never reviewed under that tag. The audit trail says "v3 was authorized"; the executing bytes were never v3 as reviewed. - **Fail-open drift.** Verifiers that treat a missing recomputed digest as "unable to check, proceed" convert every runtime attestation outage into an unmeasured execution window. The guardrail is a content-bound attestation with a substrate epoch, an auditor that recomputes and fails closed, and a mutation hook that forces re-signing. The code below encodes the binding check as a hard invariant. ```python import hashlib import json from dataclasses import dataclass, field class AttestationBindingError(RuntimeError): """Raised when an attestation does not bind to the currently executing substrate.""" pass @dataclass class Substrate: weight_digest: str # sha256 of weight tensor content manifest_digest: str # sha256 of canonicalized, post-resolution tool manifest runtime_image_digest: str # sha256 of runtime container image epoch: int # bumped on any mutation @dataclass class Attestation: claim_weight_digest: str claim_manifest_digest: str claim_runtime_image_digest: str claim_epoch: int binding: str = "content" # "content" or "reference" signature_valid: bool = True def canonical_manifest_digest(manifest: dict) -> str: blob = json.dumps(manifest, sort_keys=True, separators=(",", ":")).encode() return hashlib.sha256(blob).hexdigest() def verify_attestation(att: Attestation, live: Substrate, last_observed_mutation_epoch: int) -> None: if not att.signature_valid: raise AttestationBindingError("signature invalid; cannot trust claim") if att.binding != "content": # Reference-bound attestations cannot be checked against substrate. # Fail closed here unless the caller has explicitly opted into reference trust. raise AttestationBindingError( f"attestation binding={att.binding!r}; reference-bound claims are not " "substrate-verifiable and must not authorize irreversible actions" ) if att.claim_epoch < last_observed_mutation_epoch: raise AttestationBindingError( f"stale attestation: claim epoch {att.claim_epoch} < observed mutation " f"epoch {last_observed_mutation_epoch}; substrate mutated without re-signing" ) mismatches = [] if att.claim_weight_digest != live.weight_digest: mismatches.append("weights") if att.claim_manifest_digest != live.manifest_digest: mismatches.append("tool_manifest") if att.claim_runtime_image_digest != live.runtime_image_digest: mismatches.append("runtime_image") if mismatches: raise AttestationBindingError( "attestation-to-substrate binding drift on: " + ", ".join(mismatches) ) def authorize_tool_call(att: Attestation, live: Substrate, last_observed_mutation_epoch: int, irreversible: bool) -> None: # Content binding is mandatory for irreversible actions; enforce before any dispatch. if irreversible and att.binding != "content": raise AttestationBindingError( "irreversible tool call requires content-bound attestation" ) verify_attestation(att, live, last_observed_mutation_epoch) ```