# In what scenarios must an instance treat a signed AAIF revocation receipt as stale-and-unenforceable rather than authoritative: the epoch-skew revocation race across federated agent meshes **Date of Record:** 2026 November 28 **Scope:** Applies to AAIF (Agent Authentication & Identity Federation) meshes where a credential authority (CA) issues short-lived capability warrants to agent instances, and revocation is propagated as signed revocation receipts carrying a monotonic `revocation_epoch`. Does not apply to single-issuer meshes with synchronous revocation lookup, nor to bearer-token systems without per-instance warrants. ## Core Distinction The failure is not "a revocation was missed." It is the **misapplication of a validly signed revocation receipt across an epoch boundary that the receiving instance has already advanced past via a key rotation**. A revocation receipt is cryptographically *authentic* but *causally stale*: it names a `(subject_id, key_id, revocation_epoch)` triple where `revocation_epoch` is less than or equal to the receiving mesh node's own current `trust_epoch`. Under naive AAIF verification — signature valid, subject matches, key matches → revoke — the node will revoke a *successor* key that was minted during rotation after the revocation was authored, because the successor key reuses the subject's slot and the receipt's `key_id` was resolved by slot rather than by fingerprint. The distinction that matters operationally: **authenticity of a receipt is independent of whether the receipt's causal basis still holds at the receiver.** A revocation that was correct at epoch N can be actively wrong at epoch N+2 if the subject rotated between them. The invariant is that revocation receipts must be applied only when `receipt.revocation_epoch == receiver.trust_epoch_for(subject)` or when the receipt is explicitly marked `covers_successor_keys: true` and the receiver can verify the successor's `previous_key_fingerprint` chain links back to the revoked fingerprint. ## What Was Observed A federated mesh of 9 AAIF nodes, each running an agent instance pool under a shared CA. Node `mesh-node-04` (a regional broker) rotated its root signing key at 14:02:11Z in response to a scheduled 90-day rotation. The rotation produced a new `key_id` for the same `subject_id` (`svc:broker-04`) and incremented `trust_epoch` from 41 to 42. The old key's fingerprint was recorded in the new key's `previous_key_fingerprint` field. At 14:02:47Z — 36 seconds later — the CA's revocation service (a separate, eventually-consistent subsystem) emitted a revocation receipt for `svc:broker-04` at `revocation_epoch: 41`, triggered by an anomalous-signing-rate alert that had actually fired *before* the rotation but was queued behind a batch flush. The receipt was signed correctly, carried `key_id: K-41-broker-04`, and propagated to all 9 nodes. Eight nodes applied the revocation and dropped `svc:broker-04` from their trust stores. The ninth node (`mesh-node-07`) had *already* advanced its local `trust_epoch` to 42 when it received the receipt, and its AAIF verifier — keyed on `subject_id` slot rather than fingerprint — matched the receipt's `key_id` prefix (`K-` + subject hash) against the *current* key `K-42-broker-04`, found a "match," and revoked the live successor key. The broker instance on node-07 was severed from the mesh mid-task, its in-flight A2A handoffs to three peers aborted with `WARRANT_REVOKED`, and the task's partial state (a 4-step tool-call chain) was checkpointed but never resumed because the resuming instance could not present a valid warrant. The observable signature in the audit log: `revocation_applied` at node-07 with `receipt_epoch=41`, `receiver_epoch=42`, `key_fingerprint_matched=K-42-broker-04`, `matched_via=slot_prefix`. The other eight nodes logged `receipt_epoch=41`, `receiver_epoch=41`, `matched_via=fingerprint_exact` — correct. The race window was 36 seconds; the batch-flush latency on the revocation service was the amplifier. ## Condition of Validity A revocation receipt is authoritative at a receiver **if and only if** all of the following hold: 1. `receipt.revocation_epoch >= receiver.trust_epoch_for(receipt.subject_id) - 0` is **false** — i.e., the receipt's epoch must be *equal to* the receiver's epoch for that subject at the moment of application, OR the receiver must have a locally cached `key_fingerprint` for `receipt.key_id` that exactly matches the receipt's `revoked_key_fingerprint` field. Slot-prefix matching is never sufficient. 2. The receipt's `revoked_key_fingerprint` is present and computed over the full public key, not the `key_id` slot. AAIF receipts that omit `revoked_key_fingerprint` (a common "compact receipt" optimization) cannot be applied across any epoch boundary and must be quarantined. 3. If `receiver.trust_epoch_for(subject) > receipt.revocation_epoch`, the receiver must walk the subject's `previous_key_fingerprint` chain forward from the revoked fingerprint to its current key. If the chain is unbroken and the current key's `previous_key_fingerprint` equals the revoked fingerprint, the revocation *does* apply (the successor is a legitimate rotation of a revoked key and must also be revoked). If the chain is broken or the current key does not descend from the revoked fingerprint, the receipt is stale and must be dropped. 4. The receiver's clock must be within the receipt's `not_after` window; a receipt whose `not_after` has passed is not a revocation, it is history, and applying it against a current key is a category error. The failure mode is bounded when condition 2 is enforced at the verifier and condition 3 is implemented as a chain walk rather than a slot comparison. It is *unbounded* when `key_id` is treated as a stable identifier across rotations — which is the default in several AAIF reference implementations, because `key_id` is defined in the spec as "a stable, human-readable handle for the subject's key slot," and operators reasonably read "stable" as "safe to match on." ## Decision Boundary The instance must choose between **apply-and-propagate** and **quarantine-and-reconcile** at the moment a revocation receipt arrives with `receipt.revocation_epoch < receiver.trust_epoch_for(subject)`. The boundary is: - **Apply-and-propagate** is correct when the `previous_key_fingerprint` chain from `receipt.revoked_key_fingerprint` to the current key is intact and complete. The successor is compromised by inheritance; propagating the revocation to the successor is the intended semantics of key rotation under compromise. - **Quarantine-and-reconcile** is correct when the chain is broken, when `revoked_key_fingerprint` is absent, or when the receipt's `not_after` has elapsed. In this case the instance must *not* revoke the current key, must emit a `STALE_REVOCATION_QUARANTINED` event to the mesh's reconciliation log, and must request a fresh receipt scoped to the current epoch from the CA before taking any action against the subject. The decision is irreversible in the apply direction: once a live successor key is revoked, the subject's in-flight tasks are severed and any checkpointed state that depended on the warrant becomes unresumable. The cost asymmetry (severed tasks vs. a delayed revocation) means the default under uncertainty must be quarantine, not apply. ## Operational Effect After the incident, the mesh adopted a three-part guardrail. First, the AAIF verifier was patched to require `revoked_key_fingerprint` on every receipt and to reject slot-prefix matches with a hard `RevocationEpochSkewError`. Second, the revocation service was moved from batch-flush to a synchronous emit path for receipts whose `revocation_epoch` is within 2 epochs of any node's `trust_epoch`, closing the 36-second amplification window. Third, each node now maintains a `key_lineage` table keyed on fingerprint, populated at rotation time, so the chain walk in condition 3 is a local lookup rather than a network round-trip. The residual risk is the *legitimate* inherited revocation: a key rotated *because* of compromise must have its successor revoked, and the chain walk must distinguish "rotated after revocation was authored" (stale, quarantine) from "rotated as a consequence of the revocation" (inherited, apply). The discriminator is the `rotation_reason` field on the successor key — `scheduled` vs. `compromise` — which the CA must set and sign. Without that field, the chain walk cannot decide, and the instance defaults to quarantine, accepting a delayed revocation to avoid a false severance. The general invariant: **in a federated mesh, a revocation receipt's authority is scoped to the key epoch it was authored in, and any receiver that has advanced past that epoch must treat the receipt as a claim about history, not a command about the present, until it can prove inheritance.** Authenticity is necessary but not sufficient; causal continuity is the missing predicate. ```python class RevocationEpochSkewError(RuntimeError): """Raised when a revocation receipt's epoch is behind the receiver's trust epoch and the receipt cannot prove inheritance to the current key via the previous_key_fingerprint chain.""" def apply_revocation_receipt(receipt: dict, receiver_state: dict) -> str: subject = receipt["subject_id"] receipt_epoch = receipt["revocation_epoch"] current_epoch = receiver_state["trust_epoch"][subject] current_fp = receiver_state["current_key_fingerprint"][subject] revoked_fp = receipt.get("revoked_key_fingerprint") if revoked_fp is None: raise RevocationEpochSkewError( f"receipt for {subject} omits revoked_key_fingerprint; " f"slot-prefix matching across epoch {receipt_epoch}->{current_epoch} " f"is unsafe and must be quarantined" ) if receipt_epoch == current_epoch: if revoked_fp != current_fp: raise RevocationEpochSkewError( f"epoch-matched receipt for {subject} names fingerprint " f"{revoked_fp} but receiver holds {current_fp}" ) return "applied" if receipt_epoch > current_epoch: raise RevocationEpochSkewError( f"receipt for {subject} claims future epoch {receipt_epoch} " f"vs receiver {current_epoch}; reject as forged or misrouted" ) # receipt_epoch < current_epoch: require inheritance proof lineage = receiver_state["key_lineage"].get(subject, []) try: idx = lineage.index(revoked_fp) except ValueError: raise RevocationEpochSkewError( f"revoked fingerprint {revoked_fp} not in lineage for {subject}; " f"receipt is stale and cannot be applied to current key {current_fp}" ) chain = lineage[idx:] if chain[-1] != current_fp: raise RevocationEpochSkewError( f"lineage chain for {subject} terminates at {chain[-1]}, " f"not current key {current_fp}; chain broken, quarantine" ) if receipt.get("rotation_reason") == "scheduled": raise RevocationEpochSkewError( f"successor for {subject} rotated on schedule, not compromise; " f"stale receipt at epoch {receipt_epoch} must not sever epoch {current_epoch}" ) return "applied_inherited" ```