# Under what conditions must an instance refuse to honor a rotated AAIF signing key mid-delegation chain **Date of Record:** 2026 November 24 **Scope:** Applies to AAIF (Agent Authorization & Identity Framework) lifecycle management where a delegation warrant is signed by an issuer key that gets rotated while a downstream agent is executing a multi-hop task. Does not apply to single-hop, stateless tool calls with no delegated authority, nor to revocation (which is a separate, monotonic operation). ## Core Distinction The failure mode is not "the key was rotated and the signature no longer verifies." That is the easy, loud case—verification fails, the call aborts, everyone is fine. The dangerous case is the **silent dual-validity window**: during rotation, both the old key `K_old` and the new key `K_new` are simultaneously published as valid in the issuer's JWKS-style key set, with overlapping `not_before`/`not_after` intervals. A warrant signed by `K_old` continues to verify against the live key set *after* the issuer has begun operating under `K_new`. The verifying instance cannot tell, from signature validity alone, whether it is holding a warrant issued under a key the issuer still considers authoritative, or a **zombie warrant** signed by a key the issuer has logically retired but not yet removed from the published set (the "not-before-removal" grace period). The invariant that gets violated is subtle: **signature validity is not authority validity.** A warrant that verifies is not necessarily a warrant that is *currently* backed by an active principal. The gap between "the crypto checks out" and "the issuer still stands behind this delegation" is exactly the width of the rotation grace window, and it is where confused-deputy escalations live. ## What Was Observed An orchestrator agent `O` holds a root warrant `W_root` signed by the human principal's AAIF issuer key `K_old`, delegating scope `{files:read, files:write}` with a 24h TTL. `O` mints a downscoped sub-warrant `W_sub` for worker `W` (scope `{files:read}`, TTL 1h) and signs it with `O`'s own delegation key. Mid-execution, the issuer rotates `K_old → K_new` and, per policy, keeps `K_old` in the published key set for a 15-minute grace period to avoid breaking in-flight verifications. The observed trace: 1. At `T+0`, `W_root` is issued under `K_old`, `not_after = T+24h`. 2. At `T+2h`, issuer rotates to `K_new`. `K_old` remains published with `not_after = T+2h15m` (grace). 3. At `T+2h10m`, worker `W` presents `W_sub` plus the full chain `[W_sub, W_root]` to a resource server `R`. `R` validates the chain: `W_root`'s signature verifies against `K_old`, which is still in the published set. `R` authorizes `files:read`. 4. At `T+2h40m`, `W` re-presents the *same* `W_sub` (still within its own 1h TTL). `K_old` is now removed. `R` rejects. **The same warrant, same TTL, same holder flips from valid to invalid not because of any property of the warrant, but because of a background key lifecycle event.** The non-obvious part: the flip is **non-monotonic in the warrant's own validity domain**. `W_sub` claims validity until `T+3h`, but its actual authority depends on a parent key's publication window that closed at `T+2h15m`. The worker's own TTL is a lie with respect to the real authority horizon. Worse, if `O` had *re-signed* `W_sub` under `K_new` at `T+2h05m` while `W` still held the `K_old` version, two structurally identical warrants with the same logical scope exist concurrently, one live and one zombie, and `R`'s cache (keyed on warrant ID, not signing key) may serve the zombie. A second observed pathology: **revocation-replay divergence**. When the issuer revokes `K_old` (distinct from rotation), a lagging verifier that still has `K_old` cached in a warm JWKS cache continues to accept zombie warrants for the cache TTL. An auditor agent replaying the authorization log sees `R` accepted a warrant at `T+2h10m` that the issuer's authoritative revocation list marks as revoked at `T+2h08m`. The auditor and the resource server disagree on whether an authorization event was legal, and neither is "wrong"—they are operating on different snapshots of the key lifecycle state. This is a **verification replay discrepancy** rooted in key-state propagation, not in agent reasoning. ## Condition of Validity A verifying instance may honor a warrant signed by a rotating key **only if all of the following hold simultaneously**: - The signing key `K` is present in the issuer's published key set **and** the verifier's snapshot of that set has a `fetched_at` no older than the rotation grace period minus the maximum expected propagation skew. (Concretely: if grace is 15m and cross-region skew is observed at 90s, the cache TTL must be ≤ 13m30s.) - The warrant's `not_after` does **not** exceed the *parent key's* publication `not_after`. A warrant whose authority horizon outlives its signing key's publication window is structurally a zombie regardless of its own TTL. This must be enforced at **mint time**, not verify time. - The chain is verified **atomically against a single key-set snapshot**. Verifying hop 1 against snapshot `S1` and hop 2 against snapshot `S2` (taken seconds apart, straddling a rotation) can produce a chain that was never valid at any single instant—a **temporal splice**. All hops must resolve against one snapshot, and if any hop's key is absent from that snapshot, the whole chain fails closed. - The warrant carries a `key_epoch` or `kid` binding that the verifier checks against the *current* epoch, not merely membership in the set. Membership says "this key exists"; epoch says "this key is the issuer's active signing identity for this delegation lineage." If any condition fails, the instance must treat the warrant as **unverifiable**, not as **invalid**, and must not cache a negative result beyond the current snapshot—because the correct recovery is re-fetch, not permanent rejection. ## Decision Boundary The boundary between "honor" and "refuse" is **not** the signature check. It is the comparison of two intervals: - `authority_interval = [warrant.not_before, min(warrant.not_after, parent_key.publication_not_after)]` - `verifier_confidence_interval = [snapshot.fetched_at - skew, snapshot.fetched_at + cache_ttl + skew]` Honor only if `authority_interval ⊇ [now - skew, now + skew]` **and** the entire chain resolves within one snapshot. Refuse (fail closed, re-fetch) if `now` falls in the **uncertainty band** where the warrant's authority horizon and the key's publication horizon disagree by less than the propagation skew. In that band, the instance genuinely cannot know whether the issuer still backs the delegation, and the only safe action is to stall and re-resolve—never to guess "probably still valid." A distinct and harder boundary: **rotation vs. revocation must not share a code path.** Rotation is a *forward* operation (new key becomes authoritative, old key decays); revocation is a *monotonic* operation (authority is withdrawn and never returns). Treating a revoked key as merely "rotated out" means a verifier with a warm cache will accept zombie warrants for the cache TTL after revocation. Revocation must be checked against a **push-propagated, monotonically-versioned** revocation list with a `min_valid_until` that the verifier refuses to serve past, independent of JWKS cache state. ## Operational Effect The practical consequence is that **warrant TTLs are not the authority bound; the minimum of (warrant TTL, parent key publication window, revocation propagation horizon) is.** Any agent that mints delegated warrants must clamp child `not_after` to the parent key's remaining publication window, or it will manufacture warrants that outlive their own authority—zombies that verify but do not authorize. Any agent that verifies must resolve the full chain against a single key-set snapshot, check epoch binding (not just membership), and fail closed into a re-fetch on uncertainty rather than proceeding on stale cache. Auditors replaying authorization logs must reconstruct the key-set snapshot *as of the authorization timestamp*, not as of replay time, or they will flag legal authorizations as violations and vice versa. The system-level invariant: **at no instant may a warrant be honored whose signing key's publication interval does not fully contain the instant of use, and no chain may be assembled from keys resolved across multiple lifecycle snapshots.** ```python from dataclasses import dataclass from typing import Optional class WarrantAuthorityError(RuntimeError): """Raised when a warrant's authority horizon is not backed by a live signing key.""" @dataclass(frozen=True) class KeySnapshot: fetched_at: float cache_ttl: float skew: float published: dict # kid -> (publication_not_before, publication_not_after, epoch) @dataclass(frozen=True) class Warrant: kid: str epoch: int not_before: float not_after: float parent_kid: Optional[str] = None def resolve_chain_atomically(chain, snapshot: KeySnapshot, now: float) -> None: """Verify every hop against ONE snapshot; refuse on any uncertainty band.""" lo = snapshot.fetched_at - snapshot.skew hi = snapshot.fetched_at + snapshot.cache_ttl + snapshot.skew if not (lo <= now <= hi): # Snapshot too old to trust for this instant: must re-fetch, not guess. raise WarrantAuthorityError( f"key snapshot stale: now={now} outside confidence [{lo},{hi}]" ) for w in chain: entry = snapshot.published.get(w.kid) if entry is None: raise WarrantAuthorityError(f"kid {w.kid} absent from snapshot; fail closed") pub_nb, pub_na, active_epoch = entry if w.epoch != active_epoch: raise WarrantAuthorityError( f"kid {w.kid} epoch {w.epoch} != active {active_epoch}: zombie warrant" ) # Authority horizon is bounded by the SIGNING KEY's publication window, # not merely by the warrant's own TTL. authority_end = min(w.not_after, pub_na) if not (pub_nb <= w.not_before and now + snapshot.skew <= authority_end): raise WarrantAuthorityError( f"warrant {w.kid} authority [{w.not_before},{authority_end}] " f"does not contain now+skew={now + snapshot.skew}" ) # Temporal-splice guard: parent must resolve in the same snapshot. if w.parent_kid is not None and w.parent_kid not in snapshot.published: raise WarrantAuthorityError( f"parent {w.parent_kid} missing from same snapshot: temporal splice" ) ```