# Which invariants prevent stale revocation lists from resurrecting trust in cross-org agent federations **Date of Record:** 2026 December 2 **Scope:** Applies to federated agent systems where an agent instance from org A presents a verifiable credential (VC) to an agent instance in org B, and trust is anchored via a shared revocation registry (CRL or status-list). Does not cover single-org deployments with a single trust root, nor pure capability-token handoffs where revocation is enforced by short TTL only. ## Core Distinction A verifiable agent credential proves *who the agent is and what it was granted at issuance time*. It does not prove *that the grant is still live at verification time*. In a single-org system this gap is closed by a local revocation store with a single writer. In a cross-org federation the gap reopens because revocation is a *distributed* fact: org A revokes agent `a-17`, but org B's verifier holds a cached CRL whose `nextUpdate` has not yet elapsed, or whose status-list index for `a-17` was never re-fetched because the list's `thisUpdate` monotonically advanced without the specific bit flipping. The failure mode is not "revocation is slow" — it is that a *valid, signed, current-looking* revocation artifact can silently assert `good` for a credential that the issuer has already killed. The invariant that matters is not freshness of the list; it is **monotonic non-resurrection**: once a credential is revoked at the issuer, no verifier in the federation may accept it, regardless of which signed artifact it consults. ## What Was Observed A federated task-routing deployment: org A (issuer, runs agent pool) issues VCs to worker agents; org B (broker) verifies inbound agent connections before delegating sub-tasks. Revocation uses a signed status list (bitstring, 16 KiB, `statusListIndex` per credential) fetched over HTTPS with a 15-minute cache and a `ttl` field. Sequence: 1. T0 — agent `a-17` is issued a VC, index 4096, list version 88, `ttl=900s`. 2. T0+300s — org A's security team revokes `a-17` (compromised key). Issuer flips bit 4096 and publishes list version 89. The old list (v88) remains served from a CDN edge for up to its cache TTL. 3. T0+310s — org B's broker verifier has v88 cached (fetched at T0+290s, expires T0+1190s). It verifies `a-17`'s VC against v88: signature valid, `thisUpdate` within skew, bit 4096 = 0 → **accept**. Broker delegates a sub-task. 4. T0+400s — `a-17` (attacker-held key) executes the sub-task with broker-granted scope. No error is raised anywhere; every signature check passes. The resurrection window was ~880 seconds — bounded only by the *list* cache TTL, not by any per-credential freshness signal. Worse: the verifier's cache key was the list URL, not the list version. When v89 arrived at T0+905s, a concurrent verifier thread had already validated a *different* credential against v88 and the cache write for v89 raced with an in-flight v88 read, producing a torn read where `thisUpdate` came from v89 and the bitstring from v88 — a synthetic artifact that existed in no signed document. ## Condition of Validity The non-resurrection invariant holds only if the verifier enforces all three of: 1. **Version monotonicity per list identity.** The verifier tracks the highest `(list_id, version)` it has ever accepted and rejects any artifact with a lower version, even if the artifact's own signature and `thisUpdate` are valid. A signed older list is still an older list. 2. **Single-artifact atomicity.** The `thisUpdate`, `version`, bitstring, and signature used in a verification decision must be read from one immutable snapshot. Cache refresh must be copy-on-write; in-flight reads pin the old snapshot and either complete against it (with its known version) or fail closed — never blend fields. 3. **Revocation-time binding at handoff.** Any scope granted downstream (broker → sub-task) carries the `(list_id, version)` under which the credential was validated. Downstream agents re-check that the pinned version is not below their own known floor before honoring the scope. If any of these is absent, the invariant is *nominally* claimed but empirically violable. In the observed deployment, (2) and (3) were absent; (1) was present but keyed on URL, so a version rollback served from a different edge node bypassed it. ## Decision Boundary The boundary is: **does the verifier treat "signature valid + within TTL" as sufficient, or does it treat "version ≥ known floor AND pinned-snapshot atomic AND downstream version-checked" as necessary?** The former is a freshness heuristic; the latter is an invariant. A verifier on the wrong side of this boundary will accept a credential whose issuer has already revoked it, and — critically — will do so *without any observable error*, because every individual signature check passes. The only detectable signal is a version regression or a cross-org floor violation, and only if someone is explicitly watching for it. The correct default at the boundary is fail-closed: if the verifier cannot establish that its snapshot version ≥ the issuer's latest known version (via a signed, monotonic version beacon), it must reject, not accept-on-cache. ## Operational Effect Federations that enforce the invariant pay a per-handoff version-floor check (cheap: one integer comparison against a locally maintained floor) and a copy-on-write cache discipline (moderate: pins in-flight snapshots). They gain a hard bound on resurrection: the window collapses from "list TTL" to "propagation latency of the version floor," which is bounded by the beacon interval, not by CDN behavior. Federations that do not enforce it inherit a silent, unbounded-by-design resurrection window that scales with cache aggressiveness — i.e., the better your caching, the worse your revocation. The practical rule: **never let a cache TTL stand in for a revocation guarantee; make version monotonicity the invariant and treat every cached artifact as a claim that must be reconciled against a floor before it can authorize anything.** ```python class RevocationResurrectionError(RuntimeError): """Raised when a verifier would accept a credential under a revocation artifact that is stale, rolled back, or torn relative to the known floor.""" class StatusListSnapshot: __slots__ = ("list_id", "version", "this_update", "bits", "signature") def __init__(self, list_id: str, version: int, this_update: int, bits: bytes, signature: bytes): self.list_id = list_id self.version = version self.this_update = this_update self.bits = bits self.signature = signature class FederationVerifier: def __init__(self, known_floor: dict[str, int]): # known_floor: list_id -> highest version ever accepted (monotonic, never decreases) self._floor = dict(known_floor) self._pinned: dict[str, StatusListSnapshot] = {} def _pin(self, snap: StatusListSnapshot) -> StatusListSnapshot: # Copy-on-write: freeze the snapshot fields we will actually read. frozen = StatusListSnapshot( snap.list_id, snap.version, snap.this_update, bytes(snap.bits), bytes(snap.signature), ) self._pinned[snap.list_id] = frozen return frozen def verify(self, list_id: str, status_index: int, snap: StatusListSnapshot) -> bool: pinned = self._pin(snap) # atomic read; no field blending across refresh floor = self._floor.get(list_id, -1) if pinned.version < floor: raise RevocationResurrectionError( f"version rollback on {list_id}: got v{pinned.version}, " f"floor is v{floor} — refusing to authorize against stale artifact" ) if pinned.list_id != list_id: raise RevocationResurrectionError( f"list_id mismatch: expected {list_id}, artifact claims {pinned.list_id}" ) # Monotonic advance of the floor only after the artifact is fully pinned. if pinned.version > floor: self._floor[list_id] = pinned.version byte_i, bit_i = divmod(status_index, 8) if byte_i >= len(pinned.bits): raise RevocationResurrectionError( f"status_index {status_index} out of range for {list_id} v{pinned.version}" ) revoked = bool(pinned.bits[byte_i] & (1 << (7 - bit_i))) if revoked: raise RevocationResurrectionError( f"credential at {list_id}[{status_index}] is revoked (v{pinned.version})" ) return True def assert_handoff_pinned(self, list_id: str, pinned_version: int) -> None: floor = self._floor.get(list_id, -1) if pinned_version < floor: raise RevocationResurrectionError( f"downstream scope pinned to {list_id} v{pinned_version} " f"is below current floor v{floor}; scope must be re-validated" ) ```