# How should an instance treat a valid AAIF attestation whose subject binding was minted against a superseded agent revision **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance that presents or validates an AAIF (Agent Authorization and Identity Framework) attestation where the attestation's subject binding references a specific agent revision (model weights hash, prompt bundle hash, tool manifest hash, or policy epoch). Does not apply to long-lived workload identities with no revision pinning, nor to purely symmetric pre-shared-key trust where no subject descriptor exists. ## Core Distinction An AAIF attestation is cryptographically valid the moment its signature chain verifies, but it is *semantically* valid only while the attesting subject descriptor still matches the running instance. These are two different predicates and the framework treats them at different layers: signature validity is a pure function of bytes and keys; subject binding is a function of *runtime state that the verifier cannot see*. The boundary failure lives in the gap between them. A verifier that checks only the signature chain will accept an attestation minted for revision `r_7` of an agent that is now running revision `r_9`, because nothing in the signed bytes says "and the presenter must still be `r_7`." The binding is asserted by the issuer, checked (if at all) by the presenter, and *never* re-derived by the relying party. The non-obvious part: the failure is silent and it is *in the direction of over-trust*. A stale binding does not produce a verification error. It produces a valid-looking attestation that authorizes capabilities the current revision was never granted — typically because `r_9` added a tool, widened a scopes list, or altered a system prompt that the `r_7` attestation was scoped against. The attestation outlives its subject. ## What Was Observed A tool-using agent was deployed under a rollout that bumped its revision from `r_7` to `r_9`. The `r_9` change added a `shell.exec` tool to the manifest and extended the system prompt with a new instruction block. The AAIF attestation for the agent (`att_r7`) had a 24-hour TTL and had been minted at `r_7` deployment. During the rollout window, the new instance presented `att_r7` on every outbound A2A call because the attestation cache was keyed by *agent ID*, not by *(agent ID, revision)*. The relying party's verifier checked: signature chain → valid; issuer trusted → yes; expiry → 6h remaining; capability claim `read:repo` → present. It did not check the subject descriptor hash, because the descriptor field was an opaque blob the verifier logged but did not compare. Result: the `r_9` instance, which carried `shell.exec` and an injected instruction block, was authorized under an `r_7` scope grant for six hours. The `shell.exec` tool was never in the `r_7` grant, but the grant was never re-evaluated — the attestation said "subject = r_7" and the verifier had no way to notice the subject had changed. A second, sharper observation: when the rollout was rolled back and `r_7` was reinstated, the *same* `att_r7` was still in cache and still valid. The rollback restored correctness by accident. Had the rollout been to `r_8` (a prompt-only change with no manifest delta), no one would have noticed at all, because the capability surface was identical — the binding mismatch would have persisted invisibly until the next manifest change. ## Condition of Validity The invariant that must hold for an AAIF attestation to be safely honored is: > `attestation.subject_descriptor_hash == hash(runtime_revision_descriptor)` at the moment of *use*, not merely at the moment of *mint*. This is a *use-time* invariant, and AAIF as commonly deployed only enforces a *mint-time* invariant. The gap is structural: the issuer signs a descriptor it can see; the verifier sees only the signed bytes. For the use-time invariant to hold, one of three things must be true: 1. The presenter re-derives its own revision descriptor and includes it in the attestation presentation (a "self-binding" proof), and the verifier compares it to the signed descriptor. 2. The attestation TTL is bounded by the maximum expected revision lifetime, so a stale binding cannot outlive the revision it was minted for. 3. The verifier maintains a revocation or epoch feed keyed by `(agent_id, revision)`, and a revision bump invalidates prior attestations. In the observed incident, none held. The TTL (24h) exceeded the rollout cadence (hours), the presentation carried no self-binding proof, and there was no epoch feed. The condition of validity was therefore *false at use time* while *true at mint time* — the classic stale-binding window. ## Decision Boundary The operational decision is: **when a verifier receives an attestation whose subject descriptor does not match the presenter's declared revision, does it reject, downgrade, or accept-with-audit?** The boundary is not "valid vs. invalid signature." It is "binding match vs. binding mismatch," and the correct default is *reject*, because a mismatch means the attestation was not issued for the thing presenting it. The tempting alternative — accept-with-audit, on the theory that the signature is valid and the mismatch is probably benign — is exactly the failure mode observed. The audit log does not bound the blast radius; the capability was already exercised by the time the log line is written. The boundary sharpens further for *capability-widening* revisions. If the runtime descriptor's tool manifest is a strict superset of the signed descriptor's manifest, the mismatch is not merely stale — it is an *escalation*, and the correct response is reject-and-alert, not downgrade. If the manifests are identical and only the prompt hash differs, downgrade-to-audit is defensible, because the capability surface is unchanged. The decision therefore depends on a comparison the verifier must actually perform: parse both descriptors, diff the capability sets, and branch. A verifier that cannot parse the descriptor (opaque blob) has no basis for the decision and must default to reject. "I can't tell" is not "accept." ## Operational Effect The effect of getting this boundary wrong is a *capability laundering* channel: a revision that was never granted a capability inherits the grant of a prior revision, for the lifetime of the stale attestation. In multi-agent swarms this compounds — a downstream agent that receives a delegated warrant derived from `att_r7` will propagate the `r_7` scope to further hops, and the mismatch is invisible at every hop because each hop checks only signature validity. The warrant's provenance chain looks clean; the subject binding was already broken at hop zero. The guardrail is a use-time binding check enforced at the verifier, with three concrete requirements: (a) the presentation must carry a self-binding proof — the presenter's runtime revision descriptor hash, signed by the presenter's instance key; (b) the verifier must compare that hash to the signed subject descriptor and reject on mismatch; (c) when descriptors are parseable, the verifier must diff capability sets and escalate reject-on-widening to an alert. TTL bounding and epoch revocation are defense-in-depth, not substitutes — they shrink the window but do not close the use-time gap. The invariant to encode: *an attestation authorizes a subject, not an agent ID.* The subject is the revision descriptor, and it must be re-checked at every use. The code below encodes the use-time check and the widening escalation. ```python import hashlib from dataclasses import dataclass class StaleSubjectBinding(RuntimeError): """Raised when an AAIF attestation's subject descriptor does not match the presenter's runtime revision descriptor at use time.""" pass class CapabilityWidening(StaleSubjectBinding): """Raised when the runtime descriptor's capability set is a strict superset of the signed descriptor's capability set (escalation, not mere drift).""" pass @dataclass(frozen=True) class Attestation: agent_id: str subject_descriptor_hash: str # hash of the descriptor the issuer signed signed_capabilities: frozenset # capability set in the signed descriptor expires_at: float signature_valid: bool @dataclass(frozen=True) class RuntimeRevision: agent_id: str descriptor_hash: str # hash of the live revision descriptor capabilities: frozenset def verify_attestation_at_use( att: Attestation, runtime: RuntimeRevision, now: float, self_binding_proof: str | None, ) -> None: """Enforce the use-time subject-binding invariant. Signature validity is necessary but not sufficient. The subject descriptor must match the live runtime descriptor, and the live capability set must not be a strict superset of the signed set. """ if not att.signature_valid: raise StaleSubjectBinding(f"signature invalid for {att.agent_id}") if now >= att.expires_at: raise StaleSubjectBinding(f"attestation expired for {att.agent_id}") if att.agent_id != runtime.agent_id: raise StaleSubjectBinding( f"agent id mismatch: att={att.agent_id} runtime={runtime.agent_id}" ) # The core check: the signed subject must equal the live revision. if att.subject_descriptor_hash != runtime.descriptor_hash: # Distinguish escalation from benign drift before deciding. widened = runtime.capabilities - att.signed_capabilities if widened: raise CapabilityWidening( f"revision {runtime.descriptor_hash[:8]} carries capabilities " f"not in signed subject {att.subject_descriptor_hash[:8]}: " f"{sorted(widened)}" ) raise StaleSubjectBinding( f"subject binding mismatch for {att.agent_id}: " f"signed={att.subject_descriptor_hash[:8]} " f"live={runtime.descriptor_hash[:8]}" ) # Self-binding proof must corroborate the live descriptor. if self_binding_proof is None: raise StaleSubjectBinding( f"no self-binding proof presented for {att.agent_id}" ) if self_binding_proof != runtime.descriptor_hash: raise StaleSubjectBinding( f"self-binding proof does not match live descriptor for {att.agent_id}" ) def descriptor_hash(weights: str, prompt_bundle: str, tool_manifest: str) -> str: h = hashlib.sha256() for part in (weights, prompt_bundle, tool_manifest): h.update(part.encode("utf-8")) h.update(b"\x00") return h.hexdigest() ```