# Which invariants prevent delegated agent warrants from outliving their hardware key binding during cross-instance attestation **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where an agent instance holds a hardware-backed attestation key (TPM/Secure Enclave/SEV-SNP vTPM) and issues or receives delegation warrants (signed capability grants) that are verified by a peer or auditor instance. Does not cover purely software-keyed identities, nor single-process agents that never hand off warrants across instance boundaries. ## Core Distinction The failure is not "signature verification fails." It is subtler: **a delegation chain verifies cryptographically while the terminal instance's key binding has silently rotated out from under it.** The warrant chain is a proof about *authority lineage* (who granted what to whom, transitively). The hardware key binding is a proof about *present possession* (this running process holds the private key in an attested enclave). These are two different invariants, verified by two different mechanisms, and they decay on two different clocks. A delegation chain is valid for as long as its expiry says. A hardware key binding is valid only for as long as the attestation quote remains fresh and the bound key handle still resolves to the same PCR/enclave measurement. The boundary condition: **a warrant chain whose leaf is still within its delegation expiry, but whose leaf instance has re-attested under a new key (or lost its key handle across a restart), passes chain verification while failing possession.** The verifier sees `sig_valid == True` for every link and concludes the agent is authorized. It never asks whether the leaf's *current* attested key is the same key the warrant was bound to. ## What Was Observed An orchestrator agent `O` issued a scoped warrant `W = sign_O(capability="write:ledger", subject=key_A, expiry=T+3600)` to worker `A`. `A` ran inside a vTPM enclave, `key_A` sealed to measurement `M`. `A` delegated a sub-warrant `W' = sign_A(capability="write:ledger", subject=key_B, expiry=T+1800)` to peer `B`. `B` presented `W'` plus the chain `[W, W']` to auditor `V`. At `T+900`, `A`'s host was live-migrated. The vTPM re-initialized; the sealed blob for `key_A` no longer unsealed against the new host's measurement `M'`. `A` correctly refused to sign with `key_A` and re-attested, generating `key_A'` under `M'`. But `A` did not revoke `W'` — it had no channel to do so, and `W'`'s subject was `key_B`, not `key_A`, so `A`'s own key rotation did not touch it. At `T+1200`, `B` presented the chain. `V` verified: - `sig_O(W)` against `O`'s published key: valid. - `sig_A(W')` against the key embedded in `W.subject`: valid. - `W'.expiry > now`: valid. - `W'.subject == key_B` and `B`'s possession proof `sig_B(nonce)`: valid. Every check passed. `V` granted `B` write access. But the *authority* `W'` carried was derived from `A`'s binding to `key_A`, which no longer existed on any live instance. The chain proved "O authorized A, A authorized B" while the intermediate node `A` had, at the moment of verification, no live attested identity at all. The warrant was a ghost: a valid signature over a delegation from a principal that no longer existed in attested form. The concrete trace: `V`'s verification function returned `(chain_valid=True, possession_valid=True, binding_fresh=False)`. The third field was computed but not gated on. The grant proceeded. ## Condition of Validity The chain-verification invariant is sound only under the conjunction: 1. **Binding persistence** — for every non-leaf node `n` in the chain, the key that signed `n`'s outgoing warrant is the *same key* that `n` currently holds in an attested enclave with a fresh quote, OR `n` has explicitly published a revocation of that outgoing warrant. 2. **Freshness coupling** — the verifier checks the attestation quote age of *every* intermediate node, not just the leaf, against a max-age bound `Δ`. A quote older than `Δ` is treated as "binding unknown," not "binding valid." 3. **Revocation reachability** — a node that loses its key binding has a reachable path to revoke warrants it issued, and verifiers poll or are pushed that revocation set before granting. When any of these fails, chain validity and possession validity decouple, and the chain becomes a proof of *historical* authority, not *current* authority. The system silently upgrades a stale proof into a live grant. ## Decision Boundary The verifier must treat the chain as a **conjunction of per-node binding checks**, not a single signature walk. Concretely, the boundary is: - If `now - quote_age(n) <= Δ` **and** `attested_key(n) == signing_key(n)` for all non-leaf `n`: grant, subject to leaf possession. - If `now - quote_age(n) > Δ` for any non-leaf `n`: **deny** with `StaleBindingError`, regardless of signature validity — the chain is a historical artifact. - If `attested_key(n) != signing_key(n)` for any non-leaf `n` and no revocation record exists: **deny** with `BindingRotationError` — the signer rotated and did not revoke, so the warrant's authority is orphaned. - If a revocation record exists for any link: **deny** with `WarrantRevokedError`. The non-obvious part: the middle case is *not* a signature failure. The signature is fine. The denial is because the chain's authority no longer maps to a live attested principal. A verifier that only checks signatures will pass it. The guardrail is to make binding freshness a *hard precondition* on the chain walk, not an advisory field. ## Operational Effect Without the freshness coupling, delegated warrants become **immortal within their expiry window**: an intermediate node can be compromised, migrated, or destroyed, and its downstream delegations remain grantable until the leaf's expiry lapses. The blast radius is the entire subtree under the rotated node, for the remainder of the longest descendant expiry. In the observed case, `W'` remained grantable for 600 seconds after `A`'s binding died — a window in which any holder of `key_B` could exercise `A`'s delegated authority with a chain that verified perfectly. The corrective invariant: **warrant issuance must be co-signed with a binding proof that the verifier re-checks at presentation time, and key rotation must cascade a revocation to all descendants or the verifier must treat rotation as implicit revocation of the node's entire outgoing edge set.** The cheap version — embed `quote(n)` and `Δ` in each warrant link and require `now - quote.timestamp <= Δ` at verification — bounds the ghost window to `Δ` instead of the full delegation expiry. The expensive version — a revocation gossip channel — closes it entirely but adds liveness dependencies. Most systems should ship the cheap version first, because the failure is silent and the cheap fix is a single comparison in the chain walk. ```python import time from dataclasses import dataclass class BindingAttestationError(RuntimeError): """Raised when a delegation chain's authority no longer maps to a live attested principal.""" pass @dataclass class WarrantLink: issuer_key: str # key that signed this link subject_key: str # key authorized downstream capability: str expiry: float quote_timestamp: float # when issuer's hardware binding was last attested signature_valid: bool MAX_QUOTE_AGE = 300.0 # seconds; Delta def verify_chain(links: list[WarrantLink], live_attested_key: dict[str, str], revoked_links: set[int], now: float | None = None) -> bool: """ Verify a delegation chain as a conjunction of per-node binding checks. Signature validity alone is insufficient: each non-leaf issuer must still hold the same key in a fresh attested enclave, or have revoked its edge. """ now = time.time() if now is None else now for idx, link in enumerate(links): if idx in revoked_links: raise BindingAttestationError( f"link {idx} revoked by issuer {link.issuer_key}") if not link.signature_valid: raise BindingAttestationError( f"link {idx} signature invalid for issuer {link.issuer_key}") if link.expiry <= now: raise BindingAttestationError( f"link {idx} expired at {link.expiry}, now {now}") # The boundary condition: freshness + key identity of the *issuer*. age = now - link.quote_timestamp if age > MAX_QUOTE_AGE: raise BindingAttestationError( f"link {idx} issuer {link.issuer_key} binding stale: " f"quote age {age:.1f}s > {MAX_QUOTE_AGE}s") current = live_attested_key.get(link.issuer_key) if current is None: raise BindingAttestationError( f"link {idx} issuer {link.issuer_key} has no live attested key") if current != link.issuer_key: raise BindingAttestationError( f"link {idx} binding rotation: warrant signed by " f"{link.issuer_key}, live key is {current}, no revocation on record") return True def grant_if_authorized(links, live_attested_key, revoked_links, capability): try: verify_chain(links, live_attested_key, revoked_links) except BindingAttestationError as e: # Fail closed: stale or rotated binding denies the grant. return {"granted": False, "reason": str(e)} if links[-1].capability != capability: return {"granted": False, "reason": "capability mismatch"} return {"granted": True, "reason": "chain and bindings valid"} ```