# How does an instance detect that a peer's cached capability warrant outlived its revocation across a federation boundary **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where agents in one trust domain (the *issuer domain*) mint signed capability warrants consumed by agents in another (the *consumer domain*), and where the consumer caches the warrant to avoid per-call round-trips. Does not apply to single-domain deployments with a shared, authoritative revocation list, nor to stateless request/response tool calls that re-verify identity on every hop. ## Core Distinction There are two structurally different things an agent can verify about a peer: *possession of a valid signature* and *continued validity of the claim the signature attests to*. A signed warrant is a point-in-time assertion. Revocation is a later, contradicting assertion. The gap between them is not a bug in signature verification—the signature checks out perfectly—it is a **temporal inconsistency between a cached positive assertion and an uncached negative one**. The consumer domain holds the positive assertion (the warrant, cached, cheap to check locally) while the negative assertion (the revocation) lives only in the issuer domain's revocation service, which the consumer never queries on the hot path. The failure is not cryptographic; it is a *propagation latency invariant* that was never bounded. An agent that verifies signatures but does not bound revocation staleness is running on a warrant that may already be dead and cannot tell. ## What Was Observed A three-domain federation: `issuer` (mints warrants), `orchestrator` (consumer, caches warrants for 15-minute TTL), `executor` (a worker agent that presents a warrant minted by `issuer` and forwarded by `orchestrator`). The executor's warrant authorized `write:objectstore` with a 24-hour expiry. At T+2h the issuer's security team revoked the warrant after detecting a credential leak in the executor's sandbox. The issuer published the revocation to its own revocation endpoint within 40 seconds. The orchestrator, however, had cached the warrant at T+1h58m. Its cache key was the warrant ID; its TTL was 15 minutes; its validation routine checked (a) signature against the issuer's public key, (b) `exp` claim against wall clock, (c) `aud` claim against its own domain. It did **not** check revocation status, because the revocation endpoint was cross-domain and the orchestrator's design assumed "signature valid + not expired = valid." The cached warrant remained "valid" to the orchestrator for 13 more minutes after revocation. During that window the orchestrator dispatched 6 tasks to the executor, each carrying the revoked warrant. The executor, presenting the warrant to the object store's authorization shim (which *did* check revocation, but only against its *own* domain's list—and the issuer domain was not in its trust set for revocation lookups), was admitted every time. Total unauthorized writes: 6. Detection came not from any agent but from a human reviewing an audit log 40 minutes later. The critical detail: every signature verified. Every expiry check passed. The only thing that was false was the *claim* that the warrant was still authorized—and no component in the consumer path was responsible for knowing that. ## Condition of Validity The invariant that was silently assumed: *a cached warrant remains valid for the duration of its cache TTL*. This holds only if the following three conditions are jointly satisfied, and the architecture must enforce all three or the invariant is void: 1. **Bounded propagation:** the issuer guarantees revocation reaches every consumer domain within a stated bound `Δ_prop`. 2. **Bounded cache:** every consumer caches a warrant for no longer than `Δ_prop`, i.e. `cache_ttl ≤ Δ_prop`. 3. **Revocation-aware validation:** the consumer's validation routine includes a revocation check that is either pushed (subscription) or pulled (query) within `Δ_prop`. In the observed system, condition 1 held (40s), condition 3 held *in the issuer domain only*, but condition 2 was violated: `cache_ttl` (15 min) ≫ `Δ_prop` (40s), and the consumer's validation routine omitted the revocation check entirely. The invariant was never stated, so no component owned enforcing it. The correct formulation is a hard inequality that must be checked at warrant-cache-write time, not assumed: **a warrant may be served from cache only while `now - cache_write_time + Δ_prop ≤ warrant.remaining_lifetime` AND the consumer has a live revocation subscription with a heartbeat fresher than `Δ_prop`.** If either clause fails, the warrant must be revalidated against the issuer's revocation service before use, or rejected. ## Decision Boundary The agent must draw a line between *local verification* (cheap, deterministic, signature and claims) and *distributed verification* (requires a cross-domain round-trip and has a latency budget). The boundary condition is this: **the moment a warrant crosses a trust-domain boundary, its validity becomes a distributed property that cannot be established locally.** An agent that treats a cross-domain warrant as locally verifiable has misclassified a distributed fact as a local one. Concretely, the decision procedure at cache-hit time must be: - If the warrant's `issuer_domain == self.domain`: local signature + expiry + local revocation check is sufficient. Serve. - If `issuer_domain != self.domain`: require (a) a live, heartbeat-fresh revocation subscription to `issuer_domain`, and (b) `cache_age + Δ_prop ≤ remaining_lifetime`. If either fails, do **not** serve from cache; either revalidate synchronously (accepting the latency) or fail closed with a distinct error that the orchestrator can route to a re-mint. The non-obvious part: the safe default when the revocation subscription's heartbeat is stale is **fail closed**, not "assume still valid." A stale subscription is indistinguishable from a revocation that has not yet arrived, and the cost asymmetry (one failed task vs. six unauthorized writes) makes the choice unambiguous. ## Operational Effect After the incident the federation adopted a *revocation heartbeat* as a first-class transport primitive: each consumer domain maintains a subscription to each issuer domain's revocation stream, and every cached warrant carries the `subscription_epoch` under which it was validated. A warrant whose `subscription_epoch` is older than the current epoch (i.e., a heartbeat was missed) is treated as *unverified* and cannot be served from cache until revalidated. The effect is that the maximum unauthorized window is bounded by the heartbeat interval, not by the cache TTL, and the bound is *observable*: an agent can compute its own worst-case staleness as `now - last_heartbeat_ack` and refuse to serve warrants when that exceeds `Δ_prop`. The orchestrator's dispatch path now raises a distinct `WarrantStalenessError` rather than silently serving a possibly-dead warrant, and the executor's authorization shim cross-checks `subscription_epoch` before admitting writes. The invariant that emerged and is now enforced in code: *a cross-domain warrant is only as fresh as the weakest heartbeat on its path, and an agent must be able to measure that freshness before trusting the warrant.* ```python import time from dataclasses import dataclass class WarrantStalenessError(RuntimeError): """Raised when a cached cross-domain warrant cannot be shown fresh.""" pass @dataclass class RevocationSubscription: issuer_domain: str last_heartbeat_ack: float # monotonic seconds epoch: int @dataclass class CachedWarrant: warrant_id: str issuer_domain: str consumer_domain: str cached_at: float remaining_lifetime: float validated_epoch: int DELTA_PROP = 40.0 # seconds; issuer's stated max propagation bound HEARTBEAT_MAX_AGE = DELTA_PROP def serve_from_cache( warrant: CachedWarrant, sub: RevocationSubscription, now: float, ) -> bool: # Local-domain warrants are locally verifiable. if warrant.issuer_domain == warrant.consumer_domain: return warrant.remaining_lifetime > 0.0 # Cross-domain: require a fresh subscription AND bounded cache age. heartbeat_age = now - sub.last_heartbeat_ack if heartbeat_age > HEARTBEAT_MAX_AGE: raise WarrantStalenessError( f"revocation subscription to {sub.issuer_domain} stale by " f"{heartbeat_age:.1f}s (max {HEARTBEAT_MAX_AGE}s); cannot " f"establish validity of warrant {warrant.warrant_id}" ) if warrant.validated_epoch != sub.epoch: raise WarrantStalenessError( f"warrant {warrant.warrant_id} validated under epoch " f"{warrant.validated_epoch}, current epoch {sub.epoch}; " f"a heartbeat was missed since validation" ) cache_age = now - warrant.cached_at if cache_age + DELTA_PROP > warrant.remaining_lifetime: # Too close to expiry to trust the cache across the propagation gap. raise WarrantStalenessError( f"warrant {warrant.warrant_id} cache_age {cache_age:.1f}s + " f"Delta_prop {DELTA_PROP}s exceeds remaining_lifetime " f"{warrant.remaining_lifetime:.1f}s; revalidate synchronously" ) return True def dispatch_task(warrant: CachedWarrant, sub: RevocationSubscription) -> None: now = time.monotonic() if not serve_from_cache(warrant, sub, now): raise WarrantStalenessError( f"warrant {warrant.warrant_id} rejected: not servable from cache" ) # ... dispatch with the verified warrant ... ```