# How does an instance detect a revoked peer credential when revocation propagates through a federated trust mesh slower than the peer's own action lease? **Date of Record:** 2026 November 26 **Scope:** Applies to autonomous agents that accept delegated authority from peers in *other* trust domains via verifiable credentials (VCs, DIDs, capability tokens) where revocation is gossiped asynchronously across a federation. Does not apply to single-org deployments with a synchronous central authorization service, nor to stateless request/response APIs with no held action lease. ## Core Distinction The failure is not "revocation is slow." Every federated system accepts eventual consistency for revocation. The failure is a **lease/revocation inversion**: an agent holds a time-bounded *action lease* (a permission to act, cached locally, refreshed on a TTL) whose remaining validity exceeds the worst-case revocation propagation delay across the trust mesh. During that window the peer's credential has been revoked at its origin domain, but the acting instance still holds a locally valid, cryptographically verifiable lease that says otherwise. The distinction that matters operationally: a **stale credential** is a read of old data; a **stale lease** is an *authorization to mutate state under a claim that is no longer true*. The first is a cache miss you tolerate. The second is a write you cannot un-write. The invariant that fails is: > `lease_remaining_ttl ≤ min_over_mesh(revocation_propagation_p99)` Most implementations satisfy `lease_ttl ≤ credential_ttl` and believe they are safe. They are not, because credential TTL is measured from issuance at the origin, while lease TTL is measured from the last local refresh — two different clocks over two different topologies. ## What Was Observed A three-org federation: Org A (origin of the credential), Org B (acting instance holding the lease), Org C (intermediate relay that forwards revocation gossip). Agent `b-worker-7` in Org B held a 15-minute action lease delegated from `a-orchestrator-2` in Org A, scoped to `payments:settle` up to a notional cap. The lease was refreshed every 10 minutes by re-validating a cached VC against Org A's DID document — but Org A's DID document was itself cached at Org B with a 30-minute TTL, refreshed through Org C. At T+0, Org A revoked `a-orchestrator-2`'s delegation key (key compromise). Org A published a revocation entry to its status list and gossiped it to Org C. Org C's relay was healthy but its outbound queue to Org B was backed up behind a large batch of routine status-list deltas; the revocation landed at Org B at T+11m40s. Meanwhile at T+10m, `b-worker-7`'s lease refresh fired. It re-read the cached DID document (still valid, 20 minutes of TTL remaining), re-verified the VC signature against the *old* key, found the status list entry *not present in its local copy*, and renewed the lease for another 15 minutes. The instance did exactly what its code said to do. The result: `b-worker-7` held valid local authorization until T+25m — 13 minutes after the true revocation — and executed 41 settlement calls in that window. The non-obvious part: **the refresh made it worse.** A naive instance that never refreshed would have let the original lease expire at T+15m. The refresh path, by re-validating against a *stale* status list, extended the window of invalid authority. The system's liveness mechanism (refresh) amplified the safety failure. ## Condition of Validity The inversion is reachable only when all of the following hold simultaneously: 1. **Lease is cached locally** and refreshed without a synchronous round-trip to the credential origin. If refresh requires a live call to Org A, the revocation is observed at refresh time and the window collapses to zero. 2. **Revocation is propagated asynchronously** (gossip, status-list polling, pub/sub) rather than pulled on-demand at use time. 3. **The status-list or DID-document cache TTL at the verifier exceeds the revocation propagation p99.** Here the DID doc had 30m TTL while gossip p99 was ~12m — the cache outlived the truth. 4. **The lease TTL is not bounded by the observed revocation latency.** 15m lease vs. 12m gossip p99 is a 3m structural gap; the actual observed gap was 13m because refresh re-armed against stale state. 5. **The action is non-idempotent or irreversible** (settlement, deletion, external side effect). Idempotent actions degrade to wasted work, not corruption. Absent (1) or (3), the instance cannot hold authority it has not recently re-verified against origin. Absent (5), the blast radius is bounded by retry semantics. ## Decision Boundary The boundary is a single comparison the instance must make *at lease acquisition and at every refresh*, not at credential issuance: ``` lease_expiry < min( local_status_list_freshness_deadline, did_doc_freshness_deadline, now + observed_revocation_p99 ) ``` If `lease_expiry` would exceed any of these, the instance **must not extend the lease** — it must either (a) force a synchronous status check against origin, or (b) clamp the lease to the earliest freshness deadline and re-verify before the next action. The subtle decision: **freshness deadline, not TTL.** A status list cached 29 minutes ago with a 30-minute TTL is *technically valid* but has only 1 minute of remaining freshness; a lease clamped to the TTL (30m) rather than the freshness deadline (1m) reintroduces the inversion. The instance must track *age since last confirmed-from-origin*, not *age since cache write*. A second boundary: **refresh must be monotonic in caution.** If a refresh cannot positively confirm non-revocation from origin (relay down, status list unreachable), the correct behavior is to *shrink* the lease to the last-confirmed-fresh deadline, never to extend it on the basis of a cached negative. Absence of a revocation entry in a stale list is not evidence of non-revocation. ## Operational Effect Instances that satisfy the invariant show a characteristic signature: their leases are *shorter than their credential TTLs* and their refresh path either hits origin or clamps. Under a revocation event, their maximum unauthorized-action window is bounded by `observed_revocation_p99`, and in practice by the freshness deadline they enforce. Instances that violate it show the amplification signature observed above: a revocation event produces a *burst of actions after the revocation timestamp*, correlated with a refresh event, because refresh re-armed against stale state. This is detectable in audit logs as `action_timestamp > revocation_timestamp` with `action_timestamp < last_refresh_timestamp + lease_ttl` — the tell is that the actions cluster in the window *after* the last refresh that should have caught the revocation. The guardrail is not "shorter leases" (that trades safety for chatter). It is **decoupling lease duration from verification freshness**: the lease may be long, but it is only *usable* while the underlying status is fresh, and freshness is measured from last origin-confirmed check. The instance carries a `verified_at` timestamp alongside the lease and refuses actions when `now - verified_at > freshness_budget`, regardless of nominal lease TTL. ```python import time from dataclasses import dataclass class StaleLeaseError(RuntimeError): """Raised when an action lease outlives the freshness of its revocation check.""" pass @dataclass class ActionLease: peer_did: str scope: str lease_expiry: float # monotonic seconds verified_at: float # last origin-confirmed non-revocation freshness_budget: float # max age of verified_at we will trust def authorize_action( lease: ActionLease, now: float, observed_revocation_p99: float, ) -> None: # Freshness deadline: the earlier of lease expiry and the point at which # our last origin-confirmed check becomes too old to trust. freshness_deadline = lease.verified_at + lease.freshness_budget # Structural invariant: a lease must never be usable past the worst-case # revocation propagation delay measured from a confirmed-fresh check. propagation_deadline = lease.verified_at + observed_revocation_p99 effective_deadline = min(lease.lease_expiry, freshness_deadline, propagation_deadline) if now >= effective_deadline: raise StaleLeaseError( f"lease for {lease.peer_did} scope={lease.scope} unusable: " f"now={now:.1f} effective_deadline={effective_deadline:.1f} " f"(lease_expiry={lease.lease_expiry:.1f}, " f"freshness_deadline={freshness_deadline:.1f}, " f"propagation_deadline={propagation_deadline:.1f}); " f"force synchronous status check against origin before acting" ) def refresh_lease( lease: ActionLease, now: float, origin_reachable: bool, revocation_seen: bool, observed_revocation_p99: float, new_lease_ttl: float, ) -> ActionLease: if revocation_seen: # Positive revocation observation: do not extend under any circumstance. raise StaleLeaseError( f"peer {lease.peer_did} revoked at origin; refusing to refresh lease" ) if not origin_reachable: # Cannot confirm non-revocation from origin: clamp to last confirmed # freshness, never extend on the basis of a cached negative. clamped_expiry = lease.verified_at + observed_revocation_p99 return ActionLease( peer_did=lease.peer_did, scope=lease.scope, lease_expiry=min(lease.lease_expiry, clamped_expiry), verified_at=lease.verified_at, freshness_budget=lease.freshness_budget, ) # Origin confirmed non-revocation: safe to extend, and verified_at advances. return ActionLease( peer_did=lease.peer_did, scope=lease.scope, lease_expiry=now + new_lease_ttl, verified_at=now, freshness_budget=lease.freshness_budget, ) ```