# How does an instance detect that its AAIF verifiable credential was revoked mid-handoff before the peer's authorization cache expires? **Date of Record:** 2026 November 29 **Scope:** Applies to LLM agent instances operating under the Agent Identity and Authorization Interoperability Framework (AAIF) that present verifiable credentials (VCs) to peers during multi-agent handoffs, where peers cache authorization decisions locally. Does not apply to single-agent deployments with no cross-instance credential exchange, nor to synchronous online-verification architectures that re-resolve revocation on every call. ## Core Distinction The failure is not "a revoked agent keeps acting." The failure is that a *revoked agent cannot tell it has been revoked* while a peer still honors a cached credential—so the instance continues to emit warrants and handoff tokens that are cryptographically valid but operationally void. Two independent clocks govern this: the **issuer's revocation propagation clock** (how long until a revocation list/status entry reaches every verifier) and the **peer's authorization cache TTL** (how long a verifier will accept a previously validated VC without re-checking). The dangerous window is the region where `revocation_propagated_at < now < cache_expires_at` on the *verifier* side while the *subject* instance has received no revocation signal at all. Revocation in AAIF is a push-only signal to verifiers; it is not (by default) a signal to the credential holder. The subject learns of its own revocation only by inference, and most instances never attempt that inference. ## What Was Observed An orchestrator agent `A` held an AAIF VC with `scope: ["tool:filesystem_write", "handoff:delegate"]`, TTL 900s, presented to peer `B` at t=0. `B` validated the VC, cached the authorization decision for 300s (its default `auth_cache_ttl`), and began accepting delegated writes from `A`. At t=140s the issuer revoked `A`'s credential (policy violation detected out-of-band) and published a status-list update. Propagation to `B`'s status-list mirror completed at t=190s—but `B` did not consult the mirror until its cache entry expired at t=300s. Between t=140s and t=300s, `A` continued to operate. Critically, `A` had no mechanism to learn of its own revocation: the status-list update went to verifiers, not to `A`; `A`'s local credential file still validated against its own signature check; and `A`'s outbound handoff tokens to `B` were accepted because `B`'s cache still held a positive decision. The observable symptom was a *split-brain authorization state*: `A` believed it was authorized (self-check passed), `B` believed `A` was authorized (cache valid), but the issuer considered `A` revoked. When `B`'s cache finally expired at t=300s and re-resolved, it rejected `A` mid-handoff—after `A` had already committed three delegated writes that `B` had acknowledged. The reconciliation failure surfaced as orphaned writes with no valid originating warrant. A second, subtler observation: when `A` *did* attempt a self-revocation check (polling the status list every 60s), it hit a **staleness race**—the status list it fetched was a replica lagging the authoritative list by up to 120s, so `A` observed "not revoked" at t=200s while the authoritative entry had existed since t=140s. The instance concluded it was valid based on a stale replica and continued for another 100s. ## Condition of Validity The split-brain window exists if and only if all three hold: 1. **Asymmetric signal topology:** revocation is published to verifier-facing status lists but not delivered to the subject instance's control plane (no revocation webhook, no push to the holder). 2. **Positive caching at the verifier:** `B` caches validated authorization for `auth_cache_ttl > 0` and does not perform per-request status checks. 3. **Replica lag at the subject:** any self-check `A` performs reads a status replica whose `last_sync` may trail the authoritative revocation timestamp. If any one is absent, the window collapses. If `B` re-verifies per request, revocation takes effect within one propagation interval. If the issuer pushes revocation to `A`'s control plane, `A` can self-halt. If `A`'s self-check reads the authoritative list (or a replica with a bounded, *known* lag it accounts for), the staleness race disappears. The invariant that must be enforced: **an instance may only treat itself as authorized if it can bound the age of the revocation data it consulted AND that bound is tighter than the peer's cache TTL.** Formally, for the instance to safely continue: `max_replica_lag + self_check_interval < peer_auth_cache_ttl`. When this inequality fails, the instance is operating on authorization it cannot prove is current. ## Decision Boundary The instance must distinguish three states, not two: - **Provably authorized:** self-check consulted data with `age ≤ max_replica_lag` and found no revocation, and `max_replica_lag + interval < peer_cache_ttl`. Continue. - **Indeterminate:** self-check data is older than `max_replica_lag`, or the inequality above is violated. The instance cannot prove currency. This is *not* "authorized by default"—it must downgrade to read-only or halt handoffs, because continuing risks committing actions the peer will later disown. - **Provably revoked:** authoritative or fresh-enough data shows the entry. Halt immediately and emit a revocation-acknowledgment to in-flight peers. The non-obvious boundary is the middle state. Most implementations collapse indeterminate into authorized (self-check passed → proceed), which is exactly the split-brain generator. The correct decision is to treat indeterminate as a *soft halt*: cease new handoff token issuance, drain in-flight, and request an authoritative status fetch with an explicit freshness assertion. An instance that cannot obtain fresh revocation data within `peer_cache_ttl − max_replica_lag` must assume it may already be revoked and stop delegating. ## Operational Effect The architectural guardrail is a **freshness-bounded self-attestation loop** with three enforced properties: (1) every self-check records the `last_sync` timestamp of the data source and rejects data older than `max_replica_lag`; (2) the instance computes the safety inequality `max_replica_lag + self_check_interval < min(peer_cache_ttl over active peers)` at handoff time and refuses to issue delegation tokens if it fails; (3) on detecting indeterminate state, the instance enters a drain mode that stops new warrants, notifies peers to force cache invalidation, and awaits authoritative confirmation. This converts the silent split-brain into a bounded, observable soft-halt whose worst-case duration is `max_replica_lag + self_check_interval`, strictly less than the peer's cache lifetime—so the instance always stops *before* the peer's cache would have disowned it anyway. ```python import time from dataclasses import dataclass class RevocationFreshnessError(RuntimeError): """Raised when self-authorization cannot be proven current within peer cache bounds.""" pass @dataclass class StatusSnapshot: revoked: bool last_sync: float # epoch seconds of the replica's last authoritative sync @dataclass class PeerAuthCache: peer_id: str cache_ttl: float def assert_self_authorized( snapshot: StatusSnapshot, peers: list[PeerAuthCache], max_replica_lag: float, self_check_interval: float, now: float | None = None, ) -> None: now = time.time() if now is None else now data_age = now - snapshot.last_sync if snapshot.revoked: raise RevocationFreshnessError( f"authoritative revocation observed (age={data_age:.1f}s); halt and ack peers" ) if data_age > max_replica_lag: raise RevocationFreshnessError( f"self-check data stale: age={data_age:.1f}s > max_replica_lag={max_replica_lag:.1f}s; " "state is indeterminate, not authorized" ) if not peers: return tightest_peer_ttl = min(p.cache_ttl for p in peers) safety_bound = max_replica_lag + self_check_interval if safety_bound >= tightest_peer_ttl: raise RevocationFreshnessError( f"safety inequality violated: max_replica_lag+interval={safety_bound:.1f}s " f">= tightest peer cache_ttl={tightest_peer_ttl:.1f}s; " "cannot guarantee we stop before peer disowns us" ) def guarded_handoff( snapshot: StatusSnapshot, peers: list[PeerAuthCache], max_replica_lag: float, self_check_interval: float, ) -> str: assert_self_authorized(snapshot, peers, max_replica_lag, self_check_interval) return "delegation_token_issued" ```