# Why does an instance keep trusting a revoked peer when AAIF rotation forks the trust anchor chain? **Date of Record:** 2026 November 29 **Scope:** Applies to AAIF (Agent-to-Agent Identity Federation) deployments where an agent instance validates peer warrants by chaining trust anchors across organizational boundaries and where anchors can be rotated or revoked mid-session. Does not apply to single-org, single-anchor deployments with no cross-org chaining, nor to stateless request/response agents that re-derive identity on every call. ## Core Distinction The failure is not "revocation did not propagate." It is that **revocation and rotation are two different mutations to the same anchor chain, and a chained verifier can only observe one of them per validation pass.** A revocation *subtracts* a node from the trusted set; a rotation *replaces* a node with a successor that carries a fresh key and a fresh validity window. When both occur against the same anchor within one agent's session, the verifier's cached chain still resolves to *some* valid path — just not the one the issuer intends. The instance is not confused about whether the peer is trusted; it is confused about *which version of the anchor* it is trusting, and the wrong version still cryptographically verifies. The invariant that silently breaks: **a valid signature over a stale anchor is indistinguishable, at the verifier, from a valid signature over the current anchor, unless the verifier also holds a freshness proof for the anchor itself.** Most AAIF chains carry freshness for the *leaf warrant* (short TTL) but not for the *intermediate anchors* (long TTL, rotated rarely). That asymmetry is the whole bug. ## What Was Observed A three-org chain: Org A (root anchor `A0`), Org B (intermediate anchor `B1`, signed by `A0`), Org C (leaf agent warrant `W_c`, signed by `B1`). Agent instance `alpha` in Org A had admitted `W_c` at session start by walking `W_c → B1 → A0`, caching the resolved chain with a 900s admission TTL. At T+400s, Org B performed a routine key rotation: `B1` was superseded by `B1'` (new keypair, new validity window), and `B1` was *revoked* in Org B's revocation list. Org B published the new anchor and the revocation in the same federation epoch. Org A's anchor directory replicated the epoch at T+430s. At T+610s, `alpha` re-validated `W_c` because a tool call triggered a re-admission check. The trace: 1. `alpha` reloaded its cached chain `W_c → B1 → A0`. Cache TTL had not expired (expires T+900). 2. `alpha` checked `B1` against Org B's revocation list — but `alpha`'s federation view was pinned to the epoch it loaded at session start (T+0), not the replicated epoch at T+430s. The revocation of `B1` was invisible. 3. `B1` still chained to `A0` (root never rotated), so the path verified. 4. `W_c` was re-admitted. The peer kept operating on a warrant that Org B had explicitly invalidated 210 seconds earlier. The tell: `alpha`'s logs showed `chain_valid=true` and `anchor_epoch=0` at T+610s, while Org B's logs showed `B1` revoked at epoch 3. Both were "correct" relative to their own view. The divergence was in *which epoch the verifier's revocation check was bound to*, and nothing in the handshake forced those epochs to agree. A second variant compounded it: when `alpha` *did* refresh to epoch 3 (after a manual cache flush at T+700s), it re-walked `W_c → B1' → A0`. `B1'` was not yet in `alpha`'s *anchor* cache (only in the revocation list it had just pulled), so the walk failed with `UnknownAnchor`, and `alpha` fell back to its last-known-good chain — `B1` — under a fail-open policy meant to tolerate directory blips. The rotation, intended to be seamless, produced a *harder* failure than the revocation alone: the agent reverted to the revoked anchor precisely because the successor was momentarily unknown. ## Condition of Validity This failure requires all of the following to hold simultaneously: - **Chained trust across ≥2 orgs**, so the verifier does not hold the intermediate anchor's revocation authority locally. - **Anchor TTL ≫ warrant TTL**, so the chain cache outlives the epoch in which the anchor was valid. - **Revocation list and anchor directory replicate on separate schedules**, so an epoch can deliver a new anchor without the corresponding revocation, or vice versa. - **Fail-open fallback on `UnknownAnchor`**, so a rotation-induced lookup miss degrades to the prior (now-revoked) chain rather than to rejection. Remove any one and the failure does not occur. In particular, the fail-open fallback is what converts a transient replication skew into a *sustained* trust of a revoked peer; without it, the agent fails closed at T+700s and the exposure is bounded to the 90s between T+610s and T+700s. ## Decision Boundary The boundary is **epoch binding of the revocation check**, not chain validity. A chained verifier must answer two questions that look like one: 1. *Does this chain terminate in a root I trust?* (structural — cached, slow-changing) 2. *Is every link in this chain still live under the issuer's current epoch?* (freshness — must be re-bound per validation) The failure is treating (2) as a property of the cached chain rather than a property of the *current* federation epoch. The correct decision rule: **a chain is admissible only if its resolved anchor epoch equals the verifier's current replicated epoch, or the difference is within an explicitly declared skew budget with a fail-closed default.** Any chain whose anchor epoch lags the current epoch by more than the skew budget is treated as `StaleAnchor`, not as valid. The corollary for rotation: an `UnknownAnchor` during a re-walk is **not** a directory blip. It is the expected signature of a rotation in flight. Fail-open on `UnknownAnchor` is therefore always wrong in a chained deployment — it systematically selects the superseded anchor. The only safe fallback is to *suspend* the peer's admission (fail-closed) and retry the walk against the new epoch, with the peer's existing in-flight tool calls quiesced rather than continued. ## Operational Effect Bound the exposure with three guardrails: - **Bind revocation checks to epoch, not to cache.** Every admission decision records `verifier_epoch` and `chain_anchor_epoch`; mismatch beyond skew budget → `StaleAnchor` rejection. This alone closes the T+610s window. - **Make rotation and revocation atomic per epoch.** The federation directory must publish `{new_anchor, revoked_anchor}` as a single signed epoch bundle. A verifier that sees `B1'` must also see `B1` revoked in the same pull; partial application is rejected. - **Fail closed on `UnknownAnchor`, always.** Replace fail-open with admission suspension + bounded retry. The cost is a brief availability dip during rotation; the alternative is trusting a revoked peer for the remainder of the cache TTL. The residual risk is the skew budget itself: any nonzero budget is a window in which a revoked anchor can still verify. Keep it small (seconds, not minutes) and log every admission that lands inside it, because those are the only admissions where the guarantee is probabilistic rather than absolute. ```python import time from dataclasses import dataclass class StaleAnchorError(RuntimeError): """Raised when a chained warrant resolves to an anchor epoch that lags the verifier's current epoch beyond the skew budget.""" class UnknownAnchorError(RuntimeError): """Raised when a re-walk encounters an anchor absent from the local directory during a rotation in flight.""" @dataclass(frozen=True) class ResolvedChain: leaf_warrant_id: str anchor_id: str anchor_epoch: int resolved_at: float SKEW_BUDGET_SECONDS = 5.0 def admit_peer( chain: ResolvedChain, verifier_epoch: int, epoch_published_at: float, now: float | None = None, ) -> bool: now = time.monotonic() if now is None else now # Rotation in flight: the successor anchor is not yet in the directory. # Fail closed. Never fall back to the superseded (likely revoked) anchor. if chain.anchor_epoch > verifier_epoch: raise UnknownAnchorError( f"anchor {chain.anchor_id} epoch {chain.anchor_epoch} ahead of " f"verifier epoch {verifier_epoch}; rotation in flight, suspend admission" ) # Revocation/freshness binding: the chain must be live under the current epoch, # or within an explicitly bounded skew window measured from epoch publication. epoch_age = now - epoch_published_at if chain.anchor_epoch < verifier_epoch and epoch_age > SKEW_BUDGET_SECONDS: raise StaleAnchorError( f"anchor {chain.anchor_id} epoch {chain.anchor_epoch} < verifier " f"epoch {verifier_epoch} (epoch age {epoch_age:.1f}s > budget " f"{SKEW_BUDGET_SECONDS}s); chain may reference a revoked anchor" ) return True ```