# When must an instance refuse a rotated peer key: the revocation-propagation lag window in AAIF-compliant federated agent identity **Date of Record:** 2026 November 29 **Scope:** Applies to federated multi-agent systems where peer instances authenticate via AAIF-style signed agent identity claims (issuer-signed key bundles with rotation and revocation epochs) and where a single reasoning loop may call tools or delegate to peers across organizational trust boundaries. Does not apply to single-tenant deployments with a single trust anchor, nor to stateless one-shot inference with no delegated authority. ## Core Distinction The failure this record isolates is not "a revoked agent keeps running." It is subtler: **an instance that has correctly honored a revocation for peer A will still accept A's delegation of authority to peer B, because B's key bundle is valid and the warrant chain verifies cryptographically — but the warrant was minted before A's revocation epoch and carries no revocation-generation counter.** The signature is valid, the chain is intact, and the delegation is dead. The distinction that operators conflate: *key rotation* (a peer presents a new public key under the same identity, signed by the issuer) versus *authority continuity* (the peer's right to act, and to delegate, survives the rotation). AAIF key rotation preserves the first by design. It does **not** automatically preserve the second, and the gap between them is where cross-organizational agents lose or falsely retain authority. The invariant that must hold is: **a delegated warrant is only valid if every link in its chain was minted at or after the maximum revocation epoch observed by the verifier for that link's subject identity.** Most implementations check signature validity and expiry, and check the *subject's* revocation status, but never check the *epoch of the warrant against the epoch of the delegating identity at mint time*. ## What Was Observed A three-org federation: orchestrator instance `O` (Org 1), worker `W` (Org 2), auditor `A` (Org 3). `O` delegated a scoped task warrant to `W` at T0. `W`, needing a sub-tool, delegated a narrower warrant to `A` at T0+40s. At T0+90s, Org 2's security team revoked `W`'s identity (compromised host) and published revocation epoch `E=7` to the federation revocation feed. `O` pulled the feed within 12s and correctly refused `W` on the next direct call. But `A` was still holding `W`'s sub-warrant and kept executing. `A`'s verifier did the following, all "correctly": 1. Verified the sub-warrant signature against `W`'s key bundle — valid (rotation had not occurred; this was revocation, not rotation). 2. Checked the sub-warrant's `not_after` — 600s out, still live. 3. Checked `W`'s revocation status against its *cached* feed snapshot — stale by 38s, epoch `E=6`, `W` not yet listed. 4. Checked `W`'s key bundle freshness via the AAIF rotation endpoint — returned the *current* bundle, which is byte-identical to the pre-revocation bundle (revocation does not mutate the key material; it appends to the revocation set). Every check passed. `A` executed 14 tool calls on behalf of a revoked identity over a 71-second window before the feed propagated. The post-incident replay showed the calls were *individually* authorized by the warrant's scope — the scope was fine; the *subject* was dead. This is the signature of the boundary failure: **revocation is a property of the identity, but authorization is evaluated against the warrant, and the two are joined only by a freshness assumption nobody enforced.** A second, inverse observation from the same incident: after `A` finally refused, it attempted to re-delegate the *remaining* warrant scope to a fresh worker `W'`. The re-delegation was rejected by `O` because `O`'s policy required the delegating subject to be unrevoked *at the time of the original mint*, not at re-delegation time — a policy `A` had no way to evaluate because the sub-warrant did not carry `W`'s mint-time epoch. So the system simultaneously **over-accepted** (the 71-second window) and **over-rejected** (the legitimate re-delegation), both stemming from the same missing field. ## Condition of Validity The guardrail is a warrant schema invariant, not a runtime heuristic. A warrant `w` delegated from subject `S` to subject `T` is valid at verification time `t` only if all of the following hold, evaluated atomically against a single feed snapshot: - `w.mint_epoch[S]` is present and equals the revocation epoch of `S` **as observed by the minting issuer** at mint time (not the verifier's snapshot). - `w.mint_epoch[S] >= max_epoch_seen(S)` where `max_epoch_seen` is the maximum revocation epoch for `S` in the verifier's feed snapshot at `t`. - The verifier's feed snapshot age `t - snapshot.fetched_at <= feed_max_staleness`, and `feed_max_staleness` is strictly less than the minimum revocation-propagation SLA across all federation members. - The warrant chain is re-walked to the root and every link re-checked; a valid leaf does not imply a valid chain. The condition fails closed: if `w.mint_epoch[S]` is absent (legacy warrant), the warrant is rejected, not accepted-by-default. This is the non-obvious part — the safe default for a missing epoch field in a revocation-aware federation is **reject**, because the whole point of the field is to make the stale-window bounded. Accepting legacy warrants "for compatibility" reintroduces the unbounded window for exactly the peers most likely to have been compromised (old keys, old tooling). ## Decision Boundary The instance must decide, at each inbound delegation, between three actions, and the boundary between them is the feed staleness relative to the propagation SLA: - **Accept and execute** when `snapshot_age < feed_max_staleness` AND `w.mint_epoch[S] >= max_epoch_seen(S)` AND chain re-walk passes. - **Halt and refresh** when `snapshot_age >= feed_max_staleness` but the warrant is otherwise structurally sound. Do not execute; do not reject permanently. Pull a fresh feed with a bounded retry (e.g., 3 attempts over the propagation SLA), then re-evaluate. A halt is not a failure — it is the correct state when the verifier cannot prove freshness. - **Reject** when `w.mint_epoch[S]` is missing, or `w.mint_epoch[S] < max_epoch_seen(S)`, or the chain re-walk finds any revoked link, or the refresh budget is exhausted. The trap is collapsing "halt and refresh" into "accept" under latency pressure. A reasoning loop that has already spent 80% of its token budget on a task will be tempted to treat a stale snapshot as good enough to finish. That is the exact moment the 71-second window opens. The decision boundary must be enforced by the transport layer, below the reasoning loop, so that a budget-anxious agent cannot rationalize past it. ## Operational Effect After the incident, the federation added `mint_epoch` to the warrant schema and made it mandatory. Two effects followed that were not anticipated: 1. **Legitimate re-delegation latency rose by one feed round-trip** (median +140ms), because `A` could no longer re-delegate from cache and had to confirm `W`'s mint-time epoch against a fresh snapshot before minting `W'`'s warrant. This is the correct cost: the previous zero-latency path was zero-latency *because* it skipped the freshness check. 2. **The over-rejection disappeared**, because `A` could now prove `W`'s mint-time epoch to `O` by including it in the re-delegation request, and `O`'s policy check became a field comparison rather than a temporal guess. The remaining exposure is the propagation SLA itself: if Org 2's feed lags beyond `feed_max_staleness`, every verifier halts rather than accepts, which converts a security window into an availability event. That trade is deliberate and must be documented in the federation's trust agreement — a verifier that halts on stale feeds is not broken; it is the only verifier that can prove it did not accept a revoked identity. ```python from dataclasses import dataclass from typing import Optional class RevocationEpochError(RuntimeError): """Raised when a delegated warrant cannot be proven valid against the verifier's revocation feed snapshot. Fails closed by design.""" @dataclass(frozen=True) class Warrant: subject: str delegate: str not_after: float mint_epoch: Optional[int] # revocation epoch of `subject` at mint time chain_parent: Optional["Warrant"] = None @dataclass(frozen=True) class FeedSnapshot: fetched_at: float max_epoch_seen: dict # identity -> max revocation epoch observed max_staleness: float def verify_warrant(w: Warrant, now: float, snap: FeedSnapshot) -> None: if now > w.not_after: raise RevocationEpochError(f"warrant for {w.delegate} expired at {w.not_after}") if w.mint_epoch is None: # Legacy warrant: no epoch binding. Reject; do not accept-by-default. raise RevocationEpochError( f"warrant {w.subject}->{w.delegate} lacks mint_epoch; cannot bound revocation window" ) observed = snap.max_epoch_seen.get(w.subject, 0) if w.mint_epoch < observed: raise RevocationEpochError( f"warrant {w.subject}->{w.delegate} minted at epoch {w.mint_epoch} " f"but subject revoked through epoch {observed}" ) age = now - snap.fetched_at if age >= snap.max_staleness: # Halt-and-refresh, not accept. Caller must retry with a fresh snapshot. raise RevocationEpochError( f"feed snapshot stale by {age:.1f}s (max {snap.max_staleness}s); " f"cannot prove {w.subject} unrevoked" ) # Re-walk the chain: a valid leaf does not imply a valid chain. if w.chain_parent is not None: verify_warrant(w.chain_parent, now, snap) ```