# What happens when an instance keeps signing with a rotated-out key after a cross-domain revocation notice arrives out of band **Date of Record:** 2026 November 26 **Scope:** Applies to federated multi-agent deployments where agent instances hold signing keys for capability warrants, A2A task delegation, and MCP tool-invocation attestations, and where revocation/rotation notices propagate between trust domains over a channel separate from the request path. Does not apply to single-domain deployments with a shared trust root, nor to symmetric-secret schemes where revocation is a global key destruction. ## Core Distinction Revocation is a *state* event; key rotation is a *transition* event. Systems routinely conflate them. A revocation says "this identity must no longer be honored, effective at epoch N." A rotation says "key K_old is superseded by K_old+1, but warrants signed under K_old during the overlap window remain valid until they expire or are explicitly revoked." The non-obvious failure lives in the gap between these two semantics when they cross a trust-domain boundary. Domain A revokes agent instance `alpha`'s key `K_A1` and rotates to `K_A2`. Domain B receives the revocation notice over an out-of-band gossip channel — a webhook, a message queue, a signed CRL pull — that is *asynchronous* relative to the A2A request path. During the propagation lag, `alpha` continues to hold `K_A1` in memory (it was never told to discard it, or it discarded it but a cached warrant bundle still references it) and continues to sign delegation warrants. Domain B, which has not yet applied the revocation, accepts them. The warrants are then presented to Domain C, which *has* applied the revocation and rejects them — but only after the downstream task has already partially executed under a warrant Domain C considers void. The invariant that fails is not "revoked keys must be rejected." It is the stronger, frequently unstated one: **a warrant's validity must be decidable from the warrant itself plus a monotonic epoch, not from the receiver's local copy of a mutable revocation set.** When validity depends on receiver-local state, two receivers in different domains can disagree about the same warrant at the same wall-clock instant, and any multi-hop delegation chain that traverses both becomes non-deterministic. ## What Was Observed A three-domain delegation: Domain A (issuer) → Domain B (broker) → Domain C (executor). Agent `alpha` in A holds key `K_A1`, epoch 41. At T0, A's control plane revokes `K_A1` and publishes epoch 42 with successor `K_A2`. The revocation record is signed and pushed to B and C over independent channels. - **T0+0s:** A's control plane commits epoch 42. `alpha` is *supposed* to rotate, but its rotation is triggered by a pull from A's key-distribution endpoint that runs on a 60-second poll. `alpha` does not yet know. - **T0+8s:** `alpha` receives an inbound A2A `task.delegate` request and signs a delegation warrant `W` with `K_A1`, embedding `issuer_epoch: 41`. It forwards `W` to B. - **T0+11s:** B has *not* yet received the revocation push (its channel has 15s median lag). B verifies `W` against its cached copy of A's key set, which still lists `K_A1` as current for epoch 41. `W` verifies. B re-delegates to C, counter-signing with `K_B1` and attaching `W`. - **T0+13s:** C *has* received the revocation push (its channel had 3s lag). C checks `W.issuer_epoch = 41` against its local revocation set, finds `K_A1` revoked as of epoch 42, and rejects the chain. The task fails at C. - **T0+14s:** B's verification of the *same* warrant `W` at T0+11s had succeeded. B and C disagree about `W` by construction, because each consulted a different local snapshot of a mutable set. The observable symptom is not a clean rejection. It is an *asymmetric* one: B believes it brokered a valid delegation and has already emitted its own counter-signature and side effects (a reservation, a resource lease, a partial write to a shared workspace). C rejects. B's side effects are now orphaned — committed under a warrant that a downstream peer considers void. Reconciliation requires a compensating transaction, which the protocol has no primitive for. A second, subtler observation: `alpha`'s rotation pull at T0+60s eventually fires and `alpha` discards `K_A1`. But `alpha` had already emitted `W` at T0+8s, and `W` is now in B's outbound queue with a 30-minute TTL. When `W` is replayed to C at T0+40s during a retry, C rejects again — correctly — but B's retry logic interprets the rejection as a transient transport failure and retries three more times, each time re-attaching the same dead warrant. The retry storm is a *symptom* of the epoch mismatch, not a transport problem. ## Condition of Validity The failure requires all of the following to hold simultaneously: 1. **Asynchronous revocation propagation.** The revocation/rotation notice reaches different verifiers at different times. If all verifiers share a single strongly-consistent revocation store (or block on a synchronous check), the window collapses to zero. 2. **Warrant validity is receiver-local.** The verifier decides validity by consulting *its own* view of the issuer's key state, rather than deriving it from a signed, self-contained, monotonically-versioned artifact. 3. **Multi-hop delegation with side effects committed at intermediate hops.** If B commits nothing before C verifies, the disagreement is harmless. The damage is proportional to the side effects B commits between its own verification and C's. 4. **Rotation overlap is permitted.** If the issuer's policy is "revoke and rotate atomically, old key invalid the instant new key is published," there is no overlap window — but then any in-flight warrant signed microseconds before rotation is spuriously invalidated, which trades one failure for another. The overlap window exists precisely to prevent that, and it is the window that breaks cross-domain agreement. When (1) and (2) hold but (3) does not — a single-hop delegation with no intermediate commits — the system degrades to a clean reject/accept race with no orphaned state. That is a *latency* problem, not a *correctness* problem. The correctness problem is specifically the conjunction with (3). ## Decision Boundary The architectural fix is to make warrant validity a *pure function of the warrant and a monotonic epoch*, verifiable identically by every domain regardless of local revocation state. Concretely: - **Bind the epoch into the warrant at signing time and make it non-negotiable.** A warrant carries `issuer_epoch` and a `not_after_epoch`. A verifier accepts only if `warrant.issuer_epoch <= local_known_epoch <= warrant.not_after_epoch` *and* the signing key is the one the issuer committed to for that epoch in a signed, append-only key-transparency log. The log entry for epoch 42 supersedes epoch 41; a verifier that has only seen up to epoch 41 must treat epoch-41 warrants as *provisionally* valid and must not let an intermediate hop commit irreversible side effects under a provisional warrant. - **Separate provisional from final verification.** B may *route* under a provisional warrant but must gate any irreversible commit behind a final verification against the issuer's transparency log, which is monotonic and therefore yields the same answer at B and C once both have caught up. The gate is the invariant: no irreversible side effect under a warrant whose epoch has not been confirmed against the log. - **Make the revocation record itself monotonic and self-authenticating.** Each revocation carries the issuer's signed epoch counter and a hash-chain link to the prior record. A verifier that receives epoch 42 out of order (before 40, 41) must buffer, not apply, until the chain is contiguous — otherwise a replayed old record can roll a verifier *backward* and re-admit a revoked key. - **Do not retry a warrant rejection as a transport error.** A rejection whose reason is `epoch_superseded` or `key_revoked` is terminal for that warrant. Retrying it is a category error that amplifies the orphaned-state problem. The decision boundary for the operator: if your delegation chains have intermediate hops that commit side effects, and your revocation propagation is asynchronous, you *must* have provisional-vs-final verification. If you do not, you do not have a revocation system — you have a revocation *suggestion*, and your cross-domain peers will disagree about it. ## Operational Effect The practical consequence is that "revoked" is not a boolean an agent can read off its local state at the moment it matters. It is a relation between a warrant, an epoch, and a monotonic log, and the only safe intermediate-hop behavior is to *defer* irreversible commits until the relation is confirmed. Systems that skip this exhibit orphaned side effects, retry storms against terminally-dead warrants, and — worst — occasional *acceptance* of a revoked key at a hop whose local revocation set lagged just long enough to admit a warrant that a downstream peer then acted on. The last case is the security-relevant one: the lag is not symmetric, and the hop with the slowest propagation is the hop an adversary will route through. The guardrail is structural, not procedural: no intermediate hop commits under a warrant it has only provisionally verified, and every verifier derives validity from the same monotonic artifact rather than its own mutable cache. ```python import hashlib from dataclasses import dataclass class EpochMismatchError(RuntimeError): """Raised when a warrant's epoch cannot be reconciled with the verifier's monotonic view of the issuer's key-transparency log.""" pass @dataclass(frozen=True) class Warrant: issuer: str issuer_epoch: int not_after_epoch: int key_id: str payload_hash: str signature: bytes @dataclass(frozen=True) class TransparencyEntry: issuer: str epoch: int key_id: str prev_hash: str entry_hash: str class MonotonicKeyLog: """Append-only, hash-chained view of an issuer's key epochs. A verifier may only advance forward; gaps are buffered, never applied.""" def __init__(self) -> None: self._entries: dict[str, list[TransparencyEntry]] = {} self._pending: dict[str, dict[int, TransparencyEntry]] = {} def ingest(self, entry: TransparencyEntry) -> None: chain = self._entries.setdefault(entry.issuer, []) # Buffer out-of-order entries; apply only when the chain is contiguous. self._pending.setdefault(entry.issuer, {})[entry.epoch] = entry while True: pending = self._pending[entry.issuer] next_epoch = len(chain) + 1 if next_epoch not in pending: break nxt = pending.pop(next_epoch) expected_prev = chain[-1].entry_hash if chain else "GENESIS" if nxt.prev_hash != expected_prev: raise EpochMismatchError( f"hash-chain break for {entry.issuer} at epoch {nxt.epoch}: " f"expected prev {expected_prev}, got {nxt.prev_hash}" ) chain.append(nxt) def known_epoch(self, issuer: str) -> int: return len(self._entries.get(issuer, [])) def key_for_epoch(self, issuer: str, epoch: int) -> str: chain = self._entries.get(issuer, []) if epoch < 1 or epoch > len(chain): raise EpochMismatchError( f"epoch {epoch} for {issuer} not yet confirmed in local log " f"(known up to {len(chain)})" ) return chain[epoch - 1].key_id def verify_warrant( w: Warrant, log: MonotonicKeyLog, *, allow_provisional: bool, ) -> str: """Returns 'final' or 'provisional'. Provisional warrants may be routed but MUST NOT gate irreversible side effects.""" known = log.known_epoch(w.issuer) if known < w.issuer_epoch: if not allow_provisional: raise EpochMismatchError( f"warrant from {w.issuer} at epoch {w.issuer_epoch} exceeds " f"local log ({known}); refusing final verification" ) return "provisional" if w.issuer_epoch > w.not_after_epoch: raise EpochMismatchError( f"warrant epoch {w.issuer_epoch} past not_after {w.not_after_epoch}" ) committed_key = log.key_for_epoch(w.issuer, w.issuer_epoch) if committed_key != w.key_id: raise EpochMismatchError( f"warrant signed by {w.key_id} but epoch {w.issuer_epoch} of " f"{w.issuer} commits to {committed_key}" ) return "final" def commit_side_effect(w: Warrant, log: MonotonicKeyLog) -> None: """Intermediate hop: irreversible commit is gated on FINAL verification.""" status = verify_warrant(w, log, allow_provisional=False) if status != "final": # Defensive: verify_warrant already raises, but keep the invariant explicit. raise EpochMismatchError( f"refusing irreversible commit under {status} warrant from {w.issuer}" ) # ... perform the commit ... ```