# When must an instance refuse a delegated AAIF warrant whose credential binding drifted across a handoff **Date of Record:** 2026 November 27 **Scope:** Applies to agent instances that receive an Agent Identity Framework (AAIF) warrant as a verifiable credential (VC) mid-workflow, where the warrant's subject binding is resolved by the receiving instance rather than the issuing one. Does not cover initial warrant issuance, root-of-trust key rotation, or offline signature verification of an un-delegated (genesis) credential. ## Core Distinction The failure mode is not signature forgery and not expiry. It is **binding drift**: the warrant is cryptographically valid, unexpired, and correctly signed by a trusted issuer, yet the *subject* it binds to has changed identity between the moment the credential was minted and the moment the receiving instance dereferences it. AAIF warrants bind a capability to a subject via a claim (typically a DID plus a `controller` or `keyThumbprint`), and in a delegated chain the subject of hop *n* becomes the issuer of hop *n+1*. When the intermediate agent's key material or DID document is re-resolved at handoff, the receiving instance can obtain a *different but equally valid* binding than the one the warrant was minted against. The distinction that matters operationally: a signature check answers "did the issuer sign this?" A binding check must answer "is the entity now presenting this the same entity the issuer signed *about*?" These are different predicates, evaluated against different snapshots of mutable state, and the gap between them is where the failure lives. An instance that treats a passing signature check as sufficient has conflated authentication of the credential with authentication of the presenter. ## What Was Observed A three-hop chain: orchestrator (O) issues a delegated warrant W1 to worker A; A, acting as intermediate, issues W2 to worker B; B presents W2 plus W1 to a downstream executor E. Each warrant carries a `subject` claim as a DID and a `cnf` (confirmation) claim binding to a public key thumbprint. The chain verified end-to-end at the signature layer. At handoff, E resolved A's DID document to confirm the W1→W2 delegation link. The DID document had been updated in the interval: A's `controller` had rotated to a new key, and the DID document's `alsoKnownAs` and service endpoints had been rewritten by an operator reconciliation job. The thumbprint in W1's `cnf` still matched the *old* key, which remained published in the DID document's verification-method set as a non-primary entry. So the signature on W1 verified against a key that was still technically live but no longer the key A was *currently* operating under. W2 had been signed by the new key. The chain "verified," but the two hops were bound to two different physical instances of A, and neither E nor the signatures could tell. The observable symptom was subtle: E accepted the chain, executed, and attributed the side effect to A's DID. Audit replay three days later — after the old verification method was finally deactivated — failed to reconstruct the chain, because the key that had signed W1 was no longer resolvable. The execution was real; the attribution was unreproducible. This is the classic **attestation-replay divergence**: the verifier's decision was valid at decision time and invalid at audit time, because the binding predicate depended on mutable key state that neither party snapshotted. A second, sharper observation: when E was configured to require `cnf` thumbprint equality across the full chain (all hops bound to the same key), it correctly rejected the chain — but rejected *valid* chains too, where a legitimate re-key had occurred and the issuer had re-issued downstream warrants. The naive invariant (one key per chain) is both too weak (misses drift when old keys linger) and too strong (rejects legitimate rotation). ## Condition of Validity A delegated warrant is safe to honor at hop *n* only if the receiving instance can establish **binding continuity**: the subject identified in hop *n*'s `iss` is the same subject identified in hop *n−1*'s `sub`, *as evaluated against a single, pinned snapshot of the identity document*, and that snapshot is recorded alongside the execution record so audit replay can re-evaluate against the same snapshot rather than live state. Concretely, the condition holds when all of the following are true: 1. The receiving instance resolves the intermediate's DID document **once** per handoff and pins the resolution (document version ID, or a hash of the resolved document) into the handoff record. 2. The `cnf` thumbprint in hop *n−1* appears in the pinned document's verification-method set **and** is not marked deactivated or revoked in that snapshot. 3. The `iss` of hop *n* resolves, within the same pinned snapshot, to a key that is the primary or explicitly-delegated signing key — not merely present as a legacy entry. 4. The pinned snapshot hash is persisted with the execution outcome, so that audit replay evaluates the same predicate against the same bytes. The condition fails — and the instance must refuse — when the intermediate's identity document cannot be pinned to a single version, when the signing key used in hop *n−1* is present only as a non-primary or superseded verification method, or when the resolution used at decision time cannot be reproduced at audit time. The critical non-obvious point is that **failure of the binding predicate is not detectable from the signatures alone**; it requires an explicit snapshot discipline that most VC verification libraries do not impose, because they resolve DIDs live and discard the resolution provenance. ## Decision Boundary The decision boundary is between *live resolution* and *pinned resolution*, and the correct side depends on whether the execution is attributable-critical. - If the action is **ephemeral and unattributable** (a read, a cache warm, a speculative draft), live resolution with a signature check is sufficient; drift is harmless because no durable side effect is attributed. - If the action is **attributable** (a write, a payment, a state mutation that will be audited), the instance must pin resolution and persist the snapshot hash. If it cannot pin — because the resolver returns an unversioned document or the intermediate's controller is mid-rotation — it must **refuse and re-request a freshly minted warrant** rather than proceed on a live check. The boundary is also temporal. A warrant whose intermediate key is *in the process of* rotation (old key still published, new key already signing) sits in a window where both hops verify but bind to different instances. The instance cannot distinguish "legitimate in-flight rotation" from "drift" by inspection; it must treat the rotation window as a refusal condition and force re-issuance, because the cost of a false accept (unreproducible attribution) exceeds the cost of a false reject (a re-mint round trip). A third boundary: **chain-length amplification**. Each additional hop multiplies the number of mutable identity documents that must be pinned consistently. Beyond roughly three delegated hops, the probability that at least one intermediate's document changed between mint and dereference becomes non-negligible even over short windows, and the instance should treat deep chains as requiring explicit re-attestation at each hop rather than a single end-to-end verification at the tail. ## Operational Effect The effect of getting this wrong is not a security breach in the classic sense — no key is stolen, no signature forged. It is **attribution laundering**: a side effect occurs that is correctly authorized at the moment of execution but cannot be proven authorized at the moment of audit, because the binding predicate was evaluated against state that has since changed. In regulated or replay-sensitive agent systems, this is functionally equivalent to an unattributable action, and it silently corrupts the audit trail rather than triggering an alarm. The guardrail that bounds it is snapshot-pinned binding verification with refusal on unpinnable resolution. The instance must treat the pinned snapshot hash as part of the execution record, not as transient verification state, and must refuse — not warn — when the snapshot cannot be established. The following implements the boundary check and refuses on drift, unpinnable resolution, or non-primary key binding. ```python import hashlib from dataclasses import dataclass from typing import Optional class BindingDriftError(RuntimeError): """Raised when a delegated warrant's subject binding cannot be pinned to a single identity-document snapshot consistent across the chain.""" pass @dataclass(frozen=True) class PinnedDocument: did: str version_id: str # thumbprint -> is_primary verification_methods: dict snapshot_hash: str def pin_document(did: str, resolver) -> PinnedDocument: """Resolve once and pin. Must return a versioned document or refuse.""" doc = resolver.resolve_versioned(did) if doc is None or doc.get("versionId") is None: raise BindingDriftError( f"cannot pin identity document for {did}: resolver returned " f"unversioned state; live resolution is not attributable-safe" ) methods = { vm["thumbprint"]: bool(vm.get("primary", False)) for vm in doc.get("verificationMethod", []) if not vm.get("deactivated", False) } canonical = repr(sorted(methods.items())).encode() return PinnedDocument( did=did, version_id=doc["versionId"], verification_methods=methods, snapshot_hash=hashlib.sha256(canonical).hexdigest(), ) def verify_delegated_chain( warrants: list, resolver, attributable: bool, ) -> str: """Verify a delegated warrant chain under binding-continuity rules. Returns the pinned snapshot hash to persist with the execution record. Refuses (raises) when binding continuity cannot be established. """ if not warrants: raise BindingDriftError("empty warrant chain") pinned = {} for i, w in enumerate(warrants): issuer = w["iss"] if issuer not in pinned: pinned[issuer] = pin_document(issuer, resolver) for i in range(1, len(warrants)): prev, cur = warrants[i - 1], warrants[i] # Continuity: cur.iss must equal prev.sub if cur["iss"] != prev["sub"]: raise BindingDriftError( f"hop {i}: issuer {cur['iss']} != prior subject {prev['sub']}" ) doc = pinned[cur["iss"]] thumb = prev.get("cnf", {}).get("thumbprint") if thumb is None: raise BindingDriftError(f"hop {i}: prior warrant lacks cnf binding") if thumb not in doc.verification_methods: raise BindingDriftError( f"hop {i}: cnf thumbprint {thumb} absent from pinned " f"snapshot of {doc.did}@{doc.version_id}" ) if not doc.verification_methods[thumb]: # Present but superseded: the drift window. Refuse for # attributable actions; the old key may belong to a retired # instance of the same DID. if attributable: raise BindingDriftError( f"hop {i}: cnf thumbprint {thumb} is non-primary in " f"{doc.did}@{doc.version_id}; binding drift across " f"handoff — re-mint required" ) # Persist the union of snapshot hashes as the attribution record. combined = hashlib.sha256( "|".join(sorted(p.snapshot_hash for p in pinned.values())).encode() ).hexdigest() return combined ```