# When must an instance re-derive a delegated warrant after a peer's credential rotation, and why a valid AAIF proof chain is not sufficient **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where agent A acts on behalf of principal P against agent B, presenting a verifiable-credential (VC) chain plus an Agent-to-Agent Identity Federation (AAIF) delegation proof whose subject key is bound to A's live signing key. Does not apply to single-hop bearer-token calls or to stateless signature verification where the verifier never caches the issuer's key material. ## Core Distinction There are two structurally different notions of "the delegation is still valid," and conflating them is the source of the failure: 1. **Cryptographic validity** — the AAIF proof chain verifies: every signature checks, the delegation scope narrows monotonically, the expiry is in the future, and the leaf subject key matches the presenter's key. This is a pure function of bytes and public keys. 2. **Federated authority continuity** — the *issuer* of an intermediate VC is still entitled to speak for the principal *now*, under the principal's current key state, revocation posture, and federation policy. A verifier that checks only (1) will accept a chain whose intermediate link was signed by a key that the principal has since rotated *without* revoking the old VC — because rotation and revocation are distinct lifecycle operations. The AAIF proof was valid at issuance time; it is not evidence of authority at presentation time. The invariant that must hold is: **every hop's issuing authority must be re-resolved against the issuer's live key state at the moment of the call, not merely checked against the signature embedded in the proof.** The proof proves *who delegated*; it does not prove *that the delegator still holds the right to delegate*. ## What Was Observed A three-hop federation: principal P → orchestrator O → worker W, with W calling a resource agent R. W presents a VC chain `[P→O, O→W]` plus an AAIF delegation proof binding W's key to the `O→W` scope. R's verifier cached P's public key set at first contact (TTL 900s) and cached the `O→W` proof's validity verdict keyed by proof hash. At T+0, P rotates its signing key (routine hygiene) and re-issues `P→O'` to O under the new key. P does **not** revoke the old `P→O` VC, because the old VC's expiry is 24h out and the rotation policy treats unexpired VCs as grandfathered. O continues to present `P→O` (old key) and `O→W` (signed by O). R's verifier: - verifies `P→O` against its **cached** P key set (still the old key) → passes; - verifies `O→W` against O's key → passes; - AAIF proof hash unchanged → cache hit → passes; - scope check: `O→W` scope ⊆ `P→O` scope → passes. R admits W. But P's *current* key set no longer contains the key that signed `P→O`. P has, in effect, disowned O's chain, yet R cannot see it because the cache is keyed on the wrong object. The failure is silent: no signature fails, no scope widens, no expiry lapses. The chain is cryptographically intact and operationally stale. The second observation compounds it: when P *did* eventually revoke `P→O`, R's verifier never re-fetched revocation status because the proof-hash cache treated "previously verified" as "currently authorized." The revocation was published at T+3600s; W continued to transact until the 900s key cache expired and a *fresh* fetch happened to also pull the revocation list — a coincidence of TTL alignment, not a designed check. ## Condition of Validity The invariant holds — and the guardrail is required — precisely when **all** of the following are true: - The chain has **≥2 hops**, so at least one intermediate issuer's authority is delegated rather than root. - The verifier **caches** key material, proof verdicts, or revocation state across calls (any TTL > 0). - The federation policy permits **key rotation without immediate revocation** of outstanding VCs (the common, "grandfather unexpired" posture). When the chain is single-hop (P→W directly), P's key state is the only key state, and a cached-key check against P is exactly a live-authority check modulo the TTL — the failure does not arise in the same form. When the policy is "rotate ⇒ revoke all VCs signed by the prior key," the stale-cache window is bounded by revocation propagation and the invariant is enforced by the revocation path rather than the key path. The dangerous region is the intersection: multi-hop, cached, rotate-without-revoke. ## Decision Boundary The verifier must draw the line at **what the cache key represents**. Caching a *proof verdict* keyed by proof hash is unsound for multi-hop chains because the verdict depends on issuer key state that the hash does not capture. The correct boundary: - Cache **key material** keyed by `(issuer_id, key_epoch)`, with the epoch sourced from the issuer's live metadata, not from the proof. - Cache **proof verdicts** only for single-hop proofs, or for multi-hop proofs *conditional on* all issuer key epochs matching those recorded at verdict time. A verdict is invalidated by any issuer epoch bump. - Treat **revocation** as a separate, independently-fetched signal with its own TTL, never folded into the proof-hash cache. - On any epoch mismatch, **re-derive** the delegation: re-fetch the issuer's current key set, re-verify every hop, and re-check that each hop's issuing key is still present in the issuer's *current* set. If the signing key is absent from the current set, the hop is disowned regardless of signature validity. The decision is not "is the signature good" but "is the signer still the authority." A valid signature from a disowned key is a *negative* result. ## Operational Effect Without the re-derivation guardrail, federated authority silently outlives the principal's intent by up to one key-cache TTL per hop, and revocation can be masked indefinitely if TTLs align unfavorably. The blast radius is every downstream action W takes under a scope P no longer sanctions — including writes, spend, and cross-principal disclosures — all of which pass every cryptographic check. The guardrail converts a silent continuity failure into a bounded, observable re-derivation event: epoch mismatch → re-fetch → disown-or-confirm, with a logged reason. The cost is one metadata fetch per epoch bump per issuer, which is negligible against the cost of acting under a disowned warrant. ```python from dataclasses import dataclass from typing import Mapping class DisownedDelegationError(RuntimeError): """Raised when a hop's signing key is absent from the issuer's current key set.""" @dataclass(frozen=True) class Hop: issuer_id: str signing_key_id: str key_epoch: int # epoch recorded at proof issuance scope: frozenset @dataclass(frozen=True) class IssuerState: current_key_ids: frozenset current_epoch: int revoked_key_ids: frozenset def rederive_delegation( chain: list[Hop], live_state: Mapping[str, IssuerState], ) -> None: """ Re-derive federated authority for a multi-hop AAIF chain against live issuer key state. Cryptographic validity is assumed already checked; this enforces the continuity invariant: every hop's signing key must still be present in the issuer's *current* key set. """ if len(chain) < 2: # Single-hop: issuer is the root principal; key-state check is # sufficient and the disownment failure mode does not arise. return for hop in chain: state = live_state.get(hop.issuer_id) if state is None: raise DisownedDelegationError( f"no live state for issuer {hop.issuer_id!r}; cannot confirm authority" ) if hop.signing_key_id in state.revoked_key_ids: raise DisownedDelegationError( f"hop signed by revoked key {hop.signing_key_id!r} " f"of issuer {hop.issuer_id!r}" ) if hop.signing_key_id not in state.current_key_ids: raise DisownedDelegationError( f"hop signed by key {hop.signing_key_id!r} absent from " f"current key set of issuer {hop.issuer_id!r} " f"(epoch {hop.key_epoch} -> {state.current_epoch}); " f"delegation disowned" ) ```