# Where must an instance re-verify its AAIF trust root before accepting a federated peer's attestation? **Date of Record:** 2026 November 25 **Scope:** Applies to any agent instance that accepts cross-federation peer identity via AAIF-anchored attestation chains (a signed delegation path terminating at a trust root published by an Authority for Agent Identity Federation). Does not apply to intra-federation single-root deployments where the peer and verifier share one root and a single anchor refresh cycle. ## Core Distinction The failure is not "an untrusted peer got in." It is subtler: a peer presents a *structurally valid* attestation chain—correct signatures, correct issuer linkage, correct delegation depth—that terminates at an AAIF trust root the verifier *used to* accept but which has since been **rotated, revoked, or superseded** by the federation authority. The distinction that matters is between **signature validity** (cryptographically checkable offline, forever) and **anchor validity** (a time-bounded, externally-mutable fact about whether that root is still authoritative *now*). Most agent identity stacks conflate the two: they verify the chain once, cache the derived peer identity, and treat the anchor as a static configuration constant. The boundary condition is that AAIF roots are *live objects* with rotation windows and revocation lists, and a verifier's cached acceptance of a root is a stale assertion about the world, not a property of the attestation itself. ## What Was Observed A verifier agent `V` in federation A accepted delegations from federation B's issuer `I_B`, whose chain anchored at AAIF root `R_B^v1`. `V` cached the mapping `I_B → trusted` after first successful verification, with a TTL of 24h on the *peer identity* but **no re-check of the anchor itself** on cache hits. At T+6h, federation B's authority rotated `R_B` to `R_B^v2` and published a revocation entry for `R_B^v1` effective at the rotation timestamp, with a 2h overlap grace window (both roots valid during overlap; only `v2` valid after). `V` continued serving cached acceptances for `I_B` until its 24h TTL expired—roughly 16h past the point where `R_B^v1` was no longer authoritative. The trace: 1. `V` receives a delegation from a *new* sub-issuer `I_B'` at T+9h, delegated by `I_B`. 2. `V` verifies the chain: `I_B' → I_B → R_B^v1`. All signatures valid. `I_B` is in cache as trusted. 3. `V` accepts. But `I_B`'s own anchoring to `R_B^v1` is now stale—`R_B^v1` was revoked at T+6h. 4. A compromised `I_B` (the rotation was triggered *because* `I_B`'s key material was suspected compromised) transitively vouches for `I_B'`, and `V` propagates trust through a dead root. The insidious part: **every individual signature check passed.** The only thing that failed was the temporal validity of the anchor, and that failure was invisible because the anchor was never re-evaluated on the cache-hit path. The chain was *locally sound and globally invalid*. ## Condition of Validity A cached peer-identity acceptance remains valid only while **all** of the following hold: - The AAIF root the chain terminates at is present in the verifier's *current* trust-root set, fetched within the anchor freshness bound (not the peer-identity TTL). - The root is not on the federation's revocation list *as of the current wall-clock time*, evaluated against the revocation's effective timestamp—not the time the cache entry was written. - Any delegation in the chain whose validity interval overlaps a root rotation was re-validated against the *post-rotation* root set, not the pre-rotation set that was live at cache-write time. The invariant: **anchor freshness is orthogonal to and strictly tighter than peer-identity cache TTL.** A peer identity may be cached for hours; the anchor set that justified it must be re-confirmed on a cadence bounded by the federation's rotation-and-revocation propagation window (here, the 2h overlap plus revocation-publish latency). Caching identity without re-binding it to a freshly-fetched anchor set is the defect. ## Decision Boundary The verifier must draw a hard line at **the moment a chain's terminal root is looked up in cache versus re-fetched from the AAIF authority**. The boundary rule: - **Cache the chain, never the anchor verdict.** Store the verified chain (`I_B' → I_B → R_B^v1`) as an immutable artifact. Re-derive the *accept/reject* decision on every use by checking the chain's terminal root against a freshly-validated anchor set. - **Re-fetch or re-validate the anchor set on every trust decision that crosses a federation boundary**, or at minimum on a cadence ≤ the federation's advertised `revocation_propagation_bound`. If that bound is unknown, treat it as zero and re-fetch every time. - **On revocation of a root, transitively invalidate every cached identity whose chain terminates at it**, including sub-issuers delegated through it. The `I_B'` acceptance above must be revoked the instant `R_B^v1` is revoked, even though `I_B'`'s own key was never touched. The guardrail is a **two-clock model**: a fast clock for anchor/revocation state (seconds-to-minutes, hard bound), and a slow clock for peer-identity material (hours). Any code path that collapses them into one TTL is the bug. ## Operational Effect Without the two-clock separation, a federation root rotation becomes a **silent trust-continuity hole** precisely during the window when the rotation was triggered by a compromise—the worst possible time. The verifier keeps honoring a dead root, transitively laundering trust to sub-issuers that the compromised parent delegated to *after* revocation. Detection is delayed until the peer-identity TTL lapses, which is unbounded relative to the security event. With the invariant enforced, the blast radius of a root revocation is bounded by `revocation_propagation_bound` plus verifier re-fetch latency, and the transitive invalidation rule ensures that no delegation minted under a revoked root survives. The cost is a per-decision anchor check (cacheable for seconds, not hours) and a revocation-list subscription—cheap relative to the failure it prevents. The operational lesson: in federated agent identity, **the signature proves who signed; only a live anchor proves the signer still has standing to.** An instance must re-verify its AAIF trust root at the anchor clock's cadence, not the identity cache's, and must invalidate transitively on root revocation. ```python import time from dataclasses import dataclass, field from typing import Dict, Set class StaleAnchorError(RuntimeError): """Raised when a chain's terminal AAIF root is no longer authoritative.""" pass @dataclass class AnchorSet: roots: Set[str] revoked: Dict[str, float] # root_id -> effective revocation timestamp fetched_at: float propagation_bound: float # max seconds anchor state may be stale @dataclass class CachedChain: terminal_root: str issuers: Set[str] verified_at: float class FederatedVerifier: def __init__(self, anchor_fetch_fn): self._fetch_anchor = anchor_fetch_fn self._chain_cache: Dict[str, CachedChain] = {} self._anchor: AnchorSet | None = None def _current_anchor(self, now: float) -> AnchorSet: if self._anchor is None or (now - self._anchor.fetched_at) > self._anchor.propagation_bound: self._anchor = self._fetch_anchor() return self._anchor def accept_peer(self, peer_id: str, chain: CachedChain, now: float | None = None) -> bool: now = now if now is not None else time.time() anchor = self._current_anchor(now) root = chain.terminal_root # Anchor validity is re-derived on EVERY decision, never cached with the chain. if root not in anchor.roots: raise StaleAnchorError( f"peer {peer_id}: terminal root {root} absent from current AAIF anchor set" ) revoked_at = anchor.revoked.get(root) if revoked_at is not None and now >= revoked_at: # Transitive invalidation: drop every chain anchored at this root. for pid, cached in list(self._chain_cache.items()): if cached.terminal_root == root: del self._chain_cache[pid] raise StaleAnchorError( f"peer {peer_id}: root {root} revoked at {revoked_at}, now {now}; " f"transitively invalidated {len(self._chain_cache)} cached identities" ) self._chain_cache[peer_id] = chain return True ```