# Why does an instance trust a revoked peer when its own issuer rotates keys mid-handoff? **Date of Record:** 2026 December 2 **Scope:** Applies to federated agent deployments where an agent's identity is attested by one or more external issuers and where peer agents validate those attestations at handoff time. Does not apply to single-issuer, single-key deployments with no rotation, nor to purely symmetric shared-secret authentication. ## Core Distinction Most revocation designs assume a **single authoritative issuer** whose revocation list is globally ordered and monotonic. Federated agent topologies violate both assumptions: an agent A presenting a warrant signed by issuer I₁ can be validated by peer B, but B may also hold cached attestations from I₂ and I₃ that touch the same subject agent through *transitive delegation* (A→B→C chains, or A acting "on behalf of" a principal attested by a different issuer). The failure mode here is not "revocation was missed." It is **revocation scope confusion under partial key rotation**: when issuer I₁ rotates its signing key, peer B's cached revocation entries for I₁ are keyed by the *old* key fingerprint. A revocation published against the old key does not match the subject's *new* attestation, and B treats the rotated subject as freshly valid — even though the revocation was issued precisely because the subject's warrant was compromised, not because the key was. The invariant that breaks: **revocation must be bound to the subject principal, not to the signing key or the attestation instance.** Under multi-issuer topologies, the natural implementation binds revocation to `(issuer, key_id, subject)` because that is what the signature verifies against. Rotation silently re-keys the subject and orphans the revocation. ## What Was Observed A three-issuer topology: I₁ (primary org issuer), I₂ (partner federation), I₃ (delegated service issuer). Subject agent `S` holds a warrant `W₁` signed by I₁ under key `K₁a`, plus a cross-attestation from I₂ asserting `S` may act on behalf of principal `P`. Peer agent `B` caches both attestations with a 10-minute TTL and validates on every handoff by checking `(issuer, key_id, subject)` against local revocation sets. At T+0, I₁ detects that `S`'s private key material was exfiltrated and publishes a revocation: `revoke(issuer=I₁, key_id=K₁a, subject=S)`. B's cache receives it via push within ~2s and marks `S` invalid **for attestations signed by K₁a**. At T+180s, I₁ completes a scheduled key rotation to `K₁b`, re-signs all *non-revoked* subjects, and—critically—**does not re-sign `S`**, because `S` is revoked. But I₁'s revocation endpoint garbage-collects entries older than 5 minutes as "stale key records," and the `revoke(K₁a, S)` entry is dropped at T+300s alongside the key. At T+340s, `S` (or an attacker holding `S`'s exfiltrated material) presents to B a **new** attestation: I₂'s cross-attestation is still valid (I₂ never learned of the compromise), and `S` now presents a *self-signed* rotation certificate claiming continuity from `K₁a → K₁c`. B's validator checks: does `K₁c` chain to a trusted issuer? Yes—`S` presents a forged-but-structurally-valid chain rooted at I₂'s delegation of `S`'s key-management authority, which I₂ granted long ago and never revoked. B re-verifies against I₂, finds no revocation for `(I₂, *, S)`, and admits `S`. The trace: **revocation was scoped to `(I₁, K₁a, S)`; the attacker's presentation was scoped to `(I₂, *, S)`; the union of "no active revocation" across issuers returned empty, and B admitted the peer.** The single-issuer mental model ("revoked means revoked") failed because no single issuer's revocation set is authoritative over the subject across the federation. Two compounding factors made this non-obvious: 1. **Rotation certificate forgery under delegated key-management.** I₂ had delegated key-rotation authority to `S` itself (a common pattern for autonomous agents managing their own lifecycle). I₂'s delegation was never scoped to "rotation only, not identity re-rooting," so `S` could mint a chain that B accepted. 2. **Revocation GC tied to key lifetime.** Revocation entries keyed by `key_id` were garbage-collected when the key retired, which is correct for key-compromise revocations but wrong for subject revocations that must outlive the key. ## Condition of Validity The guardrail holds only when all of the following are enforced: - **Subject-anchored revocation.** Every revocation record is keyed by `(subject_principal_id)` and carries a `reason_class` ∈ {`key_compromise`, `subject_compromise`, `delegation_revoked`}. `subject_compromise` records are **never** garbage-collected on key retirement; they persist for the subject's maximum credential lifetime or indefinitely. - **Cross-issuer revocation union with fail-closed semantics.** A peer B admits subject `S` only if **no** trusted issuer in B's trust set has an active `subject_compromise` or `delegation_revoked` record for `S`. The check is a union across issuers, not a per-issuer check. - **Rotation authority is not identity authority.** A delegation that grants key-rotation rights MUST NOT permit the holder to re-root identity to a new issuer chain. Rotation certificates must be co-signed by the delegating issuer, or rotation must be issuer-initiated only. Self-rotation of an agent's own identity root is disallowed. - **Monotonic revocation epochs.** Each issuer maintains a monotonically increasing `revocation_epoch`; peers reject any attestation whose `issued_at` precedes the issuer's latest epoch transition for that subject. This closes the window where a rotated subject re-presents old-but-structurally-valid material. If any of these is absent—particularly if revocation is keyed by `key_id` rather than subject, or if rotation authority is conflated with identity authority—the boundary fails and a revoked subject can re-enter the federation through a different issuer's still-valid path. ## Decision Boundary The decision boundary is **not** "is this attestation cryptographically valid?" It is: **"does the union of trusted issuers' subject-scoped revocations admit this subject, and is the presented rotation chain issuer-rooted rather than subject-rooted?"** Concretely, B must evaluate, in order: 1. Resolve subject principal `S` from the attestation (not from the signing key). 2. Query every issuer in B's trust set for `revocation(S)`. If any returns an active `subject_compromise` or `delegation_revoked`, reject — regardless of which issuer signed the presented attestation. 3. If the presented attestation claims a key rotation, verify the rotation certificate is co-signed by the delegating issuer (or is issuer-initiated). Reject subject-rooted rotation chains. 4. Check `issued_at` against each issuer's `revocation_epoch` for `S`. Reject attestations issued before the latest epoch transition. 5. Only then validate the signature against the current key. Step 2 is the one that fails in the observed trace, because the natural implementation stops at "check the signing issuer's revocation list," which is per-attestation rather than per-subject. ## Operational Effect The practical consequence is that **revocation is a distributed union operation, not a local list lookup**, and any implementation that treats it as local will admit revoked subjects under multi-issuer topologies whenever the subject can pivot to a second issuer. The window of exposure is bounded by the slowest issuer's revocation propagation plus the subject's rotation authority scope. Under autonomous agents (which commonly hold self-rotation authority for lifecycle management), that window is effectively unbounded unless rotation authority is explicitly decoupled from identity authority. The correct mental model: a subject is revoked if *any* trusted issuer says so, and a subject's identity root can only be moved by the issuer that minted it—never by the subject itself. Revocation records must outlive the keys they were first associated with. ```python from dataclasses import dataclass from typing import Iterable class RevocationScopeError(RuntimeError): """Raised when a peer would be admitted despite a subject-scoped revocation from a trusted issuer, or when a rotation chain is subject-rooted.""" @dataclass(frozen=True) class RevocationRecord: issuer: str subject: str reason_class: str # 'key_compromise' | 'subject_compromise' | 'delegation_revoked' epoch: int @dataclass(frozen=True) class Attestation: issuer: str subject: str key_id: str issued_at_epoch: int rotation_chain_root: str # issuer id that roots the rotation chain, if any def admit_peer( att: Attestation, trust_set: Iterable[str], revocations: Iterable[RevocationRecord], issuer_epochs: dict[str, int], ) -> bool: trust = set(trust_set) if att.issuer not in trust: raise RevocationScopeError(f"attestation issuer {att.issuer} not in trust set") # Step 2: subject-scoped revocation union across ALL trusted issuers. for rev in revocations: if rev.issuer not in trust: continue if rev.subject != att.subject: continue if rev.reason_class in ("subject_compromise", "delegation_revoked"): raise RevocationScopeError( f"subject {att.subject} revoked by {rev.issuer} " f"(reason={rev.reason_class}); attestation from {att.issuer} cannot override" ) # Step 3: rotation chain must be issuer-rooted, not subject-rooted. if att.rotation_chain_root and att.rotation_chain_root == att.subject: raise RevocationScopeError( f"subject {att.subject} presented a self-rooted rotation chain; " f"rotation authority is not identity authority" ) # Step 4: monotonic epoch check against each issuer's latest transition for subject. for issuer in trust: latest = issuer_epochs.get(issuer, 0) if att.issued_at_epoch < latest: raise RevocationScopeError( f"attestation epoch {att.issued_at_epoch} precedes {issuer} " f"latest revocation epoch {latest} for subject {att.subject}" ) return True ```