# When must an instance distrust a peer's cached revocation state: stale CRL windows across federated agent handoffs **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent meshes where peer instances validate each other's warrants (capability tokens, signed identity assertions) against a periodically-refreshed revocation list, and where a handoff or delegation occurs between two instances that hold independently-cached revocation state. Does not apply to single-issuer intra-process capability checks or to stateless one-shot tool calls where no peer warrant is exchanged. ## Core Distinction The failure is not "a revoked agent keeps acting." That is a coarse, easily-detected breach. The failure is subtler: **a peer instance holds a revocation list that is internally valid, correctly signed, and not yet expired by its own `nextUpdate` field, yet is already stale relative to the issuer's true revocation state at the moment of a delegation handoff.** The distinction that matters operationally is between *freshness of the artifact* (does the signature verify, is `nextUpdate` in the future) and *freshness of the fact* (was the revocation actually published before the handoff occurred). A CRL-style object can pass every cryptographic and temporal check an agent performs and still be wrong, because the agent's checks answer the artifact question, not the fact question. This is a boundary condition, not a bug. It lives exactly at the seam between two instances whose cache refresh schedules are unsynchronized, during the interval where one has ingested a revocation and the other has not. The window is bounded and predictable in duration but *unobservable from inside either instance* — neither peer can tell, from the bytes it holds, whether it is on the fresh or stale side of that seam. ## What Was Observed A three-instance federation: `planner`, `executor`, and `auditor`. Each holds a signed revocation list (`revlist`) issued by a central authority, with fields `issuedAt`, `nextUpdate` (default 300s), and a monotonic `crlNumber`. Refresh is pull-based: each instance re-fetches when `now >= nextUpdate - skew`, where `skew` is a per-instance clock-drift allowance (observed values 5s–45s, uncoordinated). Trace of the failing sequence: 1. `t=0` — Authority revokes agent `W` (a worker warrant). Publishes `crlNumber=41`. `W`'s warrant is now invalid at the source of truth. 2. `t=0` — `planner` last refreshed at `t=-280`, holding `crlNumber=40`, `nextUpdate=+20`. `executor` last refreshed at `t=-40`, holding `crlNumber=40`, `nextUpdate=+260`. 3. `t=8` — `planner` refreshes (its `nextUpdate - skew` elapsed), ingests `crlNumber=41`, learns `W` is revoked. `executor` does not refresh for another ~250s. 4. `t=12` — `planner` performs a baton-pass handoff: it delegates a subtask to `executor`, passing `W`'s warrant as the acting credential inside the handoff envelope. `planner`'s own check passes (it knows `W` is fine to *not* use, but the envelope carries `W` because the delegation was constructed from a pre-revocation plan graph). 5. `t=13` — `executor` validates `W`'s warrant against its cached `crlNumber=40`. Signature valid. `W` not present in list. `nextUpdate` is in the future by 247s. **Validation passes.** `executor` executes the subtask as `W`. 6. `t=40` — `executor` refreshes, ingests `crlNumber=41`, discovers `W` is revoked. Too late; the action already committed. The observable signature in logs: a successful `warrant_validate` on `executor` at `t=13` for a warrant that `planner` would have rejected at `t=13`. Two instances, same authority, contradictory verdicts, both correct relative to their own state. There is no error, no exception, no failed signature. The mesh's own telemetry shows a clean validation. ## Condition of Validity The stale-window acceptance is only possible when all of the following hold simultaneously. Remove any one and the boundary closes: - **Pull-based, per-instance refresh with uncoordinated schedules.** If refresh is push-broadcast (authority fans out to all instances and waits for acks before any instance may accept a handoff), the window collapses to the broadcast latency, not the refresh period. - **`nextUpdate` used as the sole freshness gate.** The validator asks "is this list still within its stated validity window?" and never asks "is this list at least as new as the delegation event I am now processing?" The second question is the one that closes the hole. - **Handoff envelope carries a warrant whose revocation status is checked only at the *receiving* instance.** The delegating instance already knows `W` is revoked but does not propagate that knowledge — it forwards the credential and lets the receiver re-validate cold. - **No revocation-generation binding on the handoff.** The envelope does not record the `crlNumber` under which the delegation was *constructed*. If it did, the receiver could compare and detect the gap. The invariant that was violated: **a warrant accepted at a handoff must be validated against a revocation list whose `crlNumber` is greater than or equal to the `crlNumber` observed by the delegating instance at the instant the delegation was signed.** Without this, "valid" means "valid as of some unspecified past," and the receiver cannot distinguish a fresh peer from a stale one. ## Decision Boundary The operational question an instance must answer at handoff is not "does this warrant validate?" but "**can I prove my revocation view is not older than the delegator's?**" The decision boundary is a comparison of two generation counters, not a boolean validity check. Concretely, the receiving instance must refuse to execute when: ``` envelope.delegator_crl_number > local.crl_number ``` i.e., the delegator was operating under a *newer* revocation view than the receiver holds. In that case the receiver is provably stale and must refresh (or reject) before acting. Equality is acceptable only if the delegator also asserts the warrant was checked against that exact generation. The delegator being *older* than the receiver is safe — the receiver has strictly more revocation information. Two corollaries bound the guardrail: - **The counter must be monotonic and signed**, or a malicious delegator can lie about its generation to force acceptance. `crlNumber` as a signed monotonic integer satisfies this; a wall-clock `issuedAt` does not, because clocks drift and an attacker controls their own. - **The guardrail must fail closed on absence.** If the envelope carries no `delegator_crl_number`, the receiver cannot prove non-staleness and must treat the warrant as unverified. An agent that defaults to "no counter means assume fresh" has simply moved the hole, not closed it. ## Operational Effect With the generation-binding guardrail in place, the `t=13` handoff in the trace above is rejected: `executor` sees `delegator_crl_number=41 > local.crl_number=40`, refuses to execute, forces a synchronous refresh, then re-validates and correctly rejects `W`. The cost is a bounded latency spike on the fraction of handoffs that straddle a refresh boundary — in the observed mesh, roughly 3–6% of handoffs during steady state, clustered immediately after authority publications. That latency is the price of the invariant; it is not optional overhead. Without it, the failure is silent and the blast radius is bounded only by the refresh period: any action `W` can take within `nextUpdate` of the delegator's refresh is executable by a revoked identity, on any peer whose cache lags. Because the window is a *time* window, not a *count* window, a high-throughput mesh amplifies it — more handoffs per unit time means more handoffs land inside the stale interval. The deeper lesson for federated agent identity: **revocation freshness is a relational property between two instances, not an absolute property of a signed artifact.** An instance cannot determine its own staleness from the bytes it holds; it can only determine it by comparing its generation against a peer's. Any protocol that validates warrants in isolation — however correct the cryptography — leaves the seam open. The generation counter on the handoff envelope is what makes the seam observable, and observability is the precondition for the fail-closed decision. ``` ```python from dataclasses import dataclass class StaleRevocationViewError(RuntimeError): """Raised when a receiver cannot prove its revocation view is not older than the delegator's at the instant of a handoff.""" pass @dataclass(frozen=True) class RevocationView: crl_number: int # signed, monotonic next_update_epoch: int # absolute expiry of this artifact @dataclass(frozen=True) class HandoffEnvelope: warrant_id: str delegator_crl_number: int | None # None if delegator omitted it def validate_handoff( envelope: HandoffEnvelope, local: RevocationView, now_epoch: int, revoked_warrant_ids: frozenset[str], ) -> None: # 1. Fail closed if the delegator did not bind its revocation generation. if envelope.delegator_crl_number is None: raise StaleRevocationViewError( f"handoff {envelope.warrant_id!r}: delegator omitted crl_number; " "cannot prove non-staleness, refusing to execute" ) # 2. Refuse if the delegator was operating under a newer revocation view # than we hold -- we are provably stale and may miss a revocation. if envelope.delegator_crl_number > local.crl_number: raise StaleRevocationViewError( f"handoff {envelope.warrant_id!r}: delegator crl_number " f"{envelope.delegator_crl_number} > local {local.crl_number}; " "receiver is stale, refresh required before execution" ) # 3. Refuse if our own artifact has expired -- we cannot vouch for it. if now_epoch >= local.next_update_epoch: raise StaleRevocationViewError( f"local revocation artifact expired at {local.next_update_epoch}, " f"now={now_epoch}; refresh required" ) # 4. Only now is the warrant's revocation status meaningful. if envelope.warrant_id in revoked_warrant_ids: raise StaleRevocationViewError( f"handoff {envelope.warrant_id!r}: warrant is revoked under " f"crl_number {local.crl_number}" ) ```