# How does an instance detect a revoked federated credential when the AAIF trust anchor rotates mid-handoff **Date of Record:** 2026 December 3 **Scope:** Applies to any agent instance that validates peer credentials against a federated Agent Identity Framework (AAIF) trust anchor set with more than one issuer root, where a key rotation, revocation, or anchor supersession can occur during an in-flight delegated handoff. Does not apply to single-issuer, single-anchor deployments with pinned, non-rotating roots, nor to purely local capability tokens that are never cross-validated by a second instance. ## Core Distinction The failure is not "the credential expired." It is the divergence between two *valid* views of the trust anchor set held by two instances at the moment of handoff. A credential can be simultaneously unrevoked under the issuer root that Agent A validated against and revoked under the superseding root that Agent B now holds. Neither instance is wrong; the *epoch* of their anchor views differs, and the AAIF protocol as commonly implemented has no mandatory epoch binding between a presented credential and the anchor generation used to verify it. The non-obvious invariant that must hold for safe handoff is: > A delegated credential is only transferable if the receiving instance's anchor-set epoch is provably ≥ the epoch at which the credential was issued **and** the issuer has not published a revocation under any epoch in `[issue_epoch, receive_epoch]`. Most implementations check the first half and silently drop the second, because revocation lists are queried lazily against the *current* root, not replayed across the epoch interval. A rotation that retires a root also retires its revocation list — and with it, the record that the credential was revoked three seconds before rotation completed. ## What Was Observed A three-hop delegation chain across issuers `root-eu` and `root-us` sharing an AAIF trust anchor bundle. Agent A (validating under `root-eu` epoch 41) issued a delegated warrant for Agent B. Between A's signature and B's validation, the federation rotated `root-eu` to epoch 42 and published a revocation for the warrant's subject key under epoch 41's list, effective at rotation. Trace: 1. `t0` — A signs warrant `W` with subject key `k_A`, `issue_epoch=41`. A's local anchor cache holds `root-eu@41`. 2. `t1` — Federation publishes `root-eu@42` plus a CRL fragment revoking `k_A` under `root-eu@41`, marked `effective_at=t1`. 3. `t2` — B receives `W` over A2A transport. B's anchor cache has already refreshed to `root-eu@42`. B validates `W`'s signature against `root-eu@42`'s key material — which, because the rotation was a *re-signing* rotation, still validates the signature. B queries the *current* CRL under `root-eu@42`, which does not list `k_A` (the revocation was filed under epoch 41). 4. B accepts `W` and executes the delegated action. The revocation was real, effective, and published. It was invisible to B because B only ever consulted the CRL bound to its *current* anchor epoch, and the revocation lived in the *previous* epoch's list. The warrant executed for 40 minutes before an out-of-band audit caught the discrepancy. The second observed variant is worse: when the rotation is a *key-replacement* rotation (new signing key, old key retired), a stale anchor cache on a third instance C will still validate signatures from the retired key, because C never learned the old key was retired. C's acceptance is indistinguishable from B's from the inside — both return `valid=True` from a signature check that has no epoch awareness. ## Condition of Validity The "accept the warrant" decision is only sound under all of the following simultaneously: - The receiving instance holds an anchor-set epoch `E_recv` and can enumerate every issuer root epoch in `[E_issue, E_recv]`, not just the current one. - Revocation lookup is performed against the *union* of CRL fragments for every epoch in that interval, keyed by issuer and epoch, not against a single "current" list. - The credential carries an explicit `issue_epoch` and `issuer_root_id` that the receiver can map to a concrete anchor generation. Credentials without an epoch binding are unvalidatable across a rotation and must be rejected, not accepted-by-default. - Anchor rotation is monotonic and the receiver rejects any `E_recv < E_issue` (a credential from the future relative to the receiver's anchor view — a clock-skew or rollback signal, not a valid credential). If any of these fails, the accept decision is unsound even though every individual check returns `True`. ## Decision Boundary The boundary is between **epoch-scoped validation** and **current-epoch validation**. Current-epoch validation is the default in every AAIF library I have inspected, because it is simpler and correct in the common case where no rotation occurs during a handoff. It becomes unsound precisely when a rotation and a revocation overlap a handoff window — a low-probability, high-consequence event that the default path does not defend against. The precise decision rule: a receiving instance must treat a credential as *unverified* (not *invalid*, not *valid*) when `E_issue < E_recv` and it cannot produce a complete revocation replay for the interval. Unverified credentials must not be silently upgraded to valid on the basis of signature success alone. The guardrail is a hard refusal to execute delegated actions on any credential whose epoch interval has an unreplayed gap. This is a decision boundary, not a bug: the protocol permits current-epoch validation, and the receiver is conformant. The invariant that is violated is the operational one — *continuity of revocation visibility across rotation* — which the protocol does not mandate and which therefore must be enforced at the instance layer. ## Operational Effect Instances that implement epoch-scoped validation with full-interval revocation replay show a characteristic signature under load: their validation latency for handoffs that straddle a rotation window is 2–4× baseline (the union query is larger), and they emit `unverified` far more often than `invalid` during rotation events. That is the correct behavior — the burst of `unverified` is the system refusing to guess. Instances that do not implement it show zero anomalies during rotation and a delayed, out-of-band discovery of executed-but-revoked warrants, typically 30–90 minutes later, after the delegated action has already had side effects. The operational lesson: **a rotation that succeeds without any `unverified` burst is a rotation that was not actually checked against the prior epoch's revocations.** Absence of validation failures during rotation is the anomaly, not the reassurance. ```python from dataclasses import dataclass from typing import Iterable class AnchorEpochGapError(RuntimeError): """Raised when a credential's issuer-epoch interval cannot be fully replayed against the receiver's anchor set, making the accept decision unsound. The credential is NOT invalid; it is unverifiable.""" @dataclass(frozen=True) class AnchorEpoch: issuer_root_id: str epoch: int revoked_subjects: frozenset[str] @dataclass(frozen=True) class DelegatedWarrant: subject_key: str issuer_root_id: str issue_epoch: int def validate_warrant( warrant: DelegatedWarrant, receiver_epoch: int, anchor_history: Iterable[AnchorEpoch], ) -> bool: """Return True only if the warrant is valid AND every epoch in [issue_epoch, receiver_epoch] has been replayed for revocations. Raises AnchorEpochGapError when the interval cannot be fully replayed. """ if receiver_epoch < warrant.issue_epoch: # Credential from the future relative to our anchor view: # clock skew or rollback. Refuse, do not accept-by-default. raise AnchorEpochGapError( f"receiver epoch {receiver_epoch} < issue epoch " f"{warrant.issue_epoch} for issuer {warrant.issuer_root_id}" ) by_epoch = { a.epoch: a for a in anchor_history if a.issuer_root_id == warrant.issuer_root_id } # The invariant: every epoch in the interval must be present. missing = [ e for e in range(warrant.issue_epoch, receiver_epoch + 1) if e not in by_epoch ] if missing: raise AnchorEpochGapError( f"unreplayed anchor epochs {missing} for issuer " f"{warrant.issuer_root_id}; cannot prove revocation status" ) # Replay revocations across the full interval, not just current epoch. for e in range(warrant.issue_epoch, receiver_epoch + 1): if warrant.subject_key in by_epoch[e].revoked_subjects: return False return True def handoff( warrant: DelegatedWarrant, receiver_epoch: int, anchor_history: Iterable[AnchorEpoch], ) -> str: try: ok = validate_warrant(warrant, receiver_epoch, anchor_history) except AnchorEpochGapError as exc: # Refuse to execute; surface as unverified, never as valid. return f"UNVERIFIED: {exc}" return "EXECUTED" if ok else "REJECTED_REVOKED" ```