# When must an instance distrust a peer's cached revocation state: the stale-warrant window in federated agent identity propagation **Date of Record:** 2026 November 28 **Scope:** Applies to any multi-agent system where agents in Org A accept signed capability warrants or bearer credentials issued by Org B, and where Org B's revocation of those warrants propagates through a CRL/OCSP-style channel rather than a synchronous call. Does not apply to single-org deployments with a single trust root and synchronous revocation checks on every call. ## Core Distinction There are two structurally different things an agent can "know" about a peer's credential: 1. **The credential is currently valid** — a claim about the peer's authority at issuance time, provable offline from the warrant's signature and expiry. 2. **The credential has not been revoked as of now** — a claim about the issuer's *current* state, which is inherently non-monotonic and cannot be proven offline. The failure mode this record addresses is the conflation of (1) and (2). An agent that caches a signed warrant plus a "revocation check passed" flag treats a *point-in-time negative* (no revocation seen at T₀) as a *durable invariant* (no revocation exists at T₁). Because revocation is the only trust signal that is monotonic in the *negative* direction — you can add revocations but never un-revoke — a stale "clean" cache entry is not a weaker form of trust. It is an *anti-signal*: it asserts freshness that the issuer has already invalidated. CRL/OCSP was built for exactly this asymmetry; agent runtimes routinely discard the CRL's `nextUpdate` semantics and instead key their cache on wall-clock TTLs chosen for latency, not for trust. The sharp invariant: **a cached revocation verdict is only valid for the interval the issuer declared, not the interval the consumer chose.** When a consumer's cache TTL exceeds the issuer's `nextUpdate` window, there exists a non-empty interval in which the consumer will *affirmatively accept* a warrant the issuer has revoked. That interval is the stale-warrant window, and it is not a bug in any single component — it is an emergent property of two independent TTL choices. ## What Was Observed A three-org federation: Org A (orchestrator agent), Org B (data-access agent that issues capability warrants), Org C (auditor agent). A's planner agent holds a warrant `W` from B granting `read:customer_records` scoped to a specific task. B revokes `W` mid-task after detecting that the task ID was reassigned. The trace: - `t=0`: A's worker fetches `W`, calls B's OCSP-style endpoint, gets `good`, caches `(W, good, cached_at=t0)` with a 300s TTL chosen to avoid per-call latency. - `t=40`: B revokes `W` and publishes a new CRL with `nextUpdate = t=100`. B's OCSP responder now returns `revoked`. - `t=45`: A's worker reuses cached `good`. It does **not** re-call OCSP because `t - cached_at = 45 < 300`. It proceeds to call B's data endpoint. - `t=45`: B's data endpoint *also* checks revocation, but against its own in-process cache which was invalidated at `t=40`. B rejects. A's worker interprets the rejection as a transport error (the error body was a generic 403 with no revocation code) and **retries three times**, each retry reusing the same cached `good` verdict. - `t=48`: A's planner, seeing repeated 403s but a locally-cached `good` credential, escalates to C's auditor with a claim that "B is rejecting a valid warrant." C independently verifies `W` against B's CRL — and because C's CRL cache was populated at `t=-200` with a 600s TTL, C's cached CRL *predates the revocation*. C agrees: "warrant appears valid." Two independent agents now affirm a revoked credential, and the disagreement with B is misattributed to a B-side bug. The compounding element: the auditor's *independent* verification used the *same class of stale cache* as the accused. Independence of process did not yield independence of evidence. The consensus that emerged was not "two of three agree" — it was "two of three share a stale cache lineage," which is a correlated failure masquerading as quorum. A second, subtler observation: when B finally returned a structured `revoked` code at `t=52` (after a deploy that added it), A's worker did not immediately discard `W`. It marked `W` as `revoked_suspected` and continued to *include it in baton-pass payloads* to downstream agents for another 8 seconds, because the cache-entry invalidation path only fired on the next scheduled refresh. The revocation had to be observed *through the cache mechanism* before it could be acted on — the cache had become the authority. ## Condition of Validity The stale-warrant window is bounded and computable, and an agent should only trust a cached negative verdict when the following holds: Let `T_issue` be the warrant's issuance time, `E` its expiry, `N` the issuer's declared `nextUpdate` on the CRL/OCSP response, `t_c` the local cache insertion time, and `TTL_c` the consumer's chosen cache lifetime. The cached `good` verdict is *sound* only while: ``` t_c + TTL_c ≤ min(E, N) ``` i.e. the consumer's cache must expire no later than the *earliest* of the credential expiry and the issuer's revocation-freshness horizon. A consumer that sets `TTL_c > N - t_c` has manufactured a window `[N, t_c + TTL_c]` in which it will assert validity the issuer no longer backs. The window length is exactly `(t_c + TTL_c) - N`, and it is *not* bounded by anything the consumer controls — it is set by the issuer's publication cadence. Three additional conditions must hold for the invariant to be enforceable: - **Freshness must be carried in the artifact, not inferred from arrival time.** A CRL without a verifiable `thisUpdate`/`nextUpdate` pair signed by the issuer cannot bound the window; the consumer's receipt time is not evidence. - **Revocation verdicts must be distinguishable from transport failures at the protocol layer.** A 403 with no revocation code is not a revocation signal; it is an ambiguity that the retry logic will resolve *in favor of the cached verdict*. The wire format must carry a machine-readable `revoked` reason or the cache will win by default. - **Correlated caches break quorum.** Any consensus or audit protocol that treats independent *agents* as independent *evidence* is unsound when those agents share a cache lineage (same upstream OCSP mirror, same CRL distributor, same TTL policy). Independence must be established at the evidence layer — e.g., auditor must force a `must-revalidate` fetch with a nonce — not assumed from process separation. ## Decision Boundary The operational question is not "should I cache revocation state" (you must — per-call OCSP to a cross-org issuer is a latency and availability non-starter) but **"what must be true before I let a cached negative verdict authorize an action?"** The boundary: - **Below the boundary** (cached verdict within `min(E, N)`): reuse is sound. The agent may proceed on the cached `good` without re-contact. This is the common case and must remain cheap. - **At the boundary** (`t_c + TTL_c` approaching `min(E, N)`): the agent must *revalidate before the next consequential action*, not merely before the next scheduled refresh. Consequential actions are those with side effects outside the agent's own context — writes, cross-org calls, baton handoffs to agents that will act on the warrant. - **Above the boundary** (cache exceeds `N`): the cached verdict is *not a weaker trust signal, it is an invalid one*. The agent must treat the warrant as `unknown`, not `good` and not `revoked`. `unknown` must be a first-class state that blocks consequential actions but permits read-only local reasoning. Collapsing `unknown` into `good` is the entire failure; collapsing it into `revoked` is a lesser but real availability failure that will train operators to widen TTLs. The decision boundary is sharp because it is *declared by the issuer*, not negotiated by the consumer. A consumer that cannot read `nextUpdate` (because the issuer omits it, or the transport strips it) is above the boundary by construction and must fall back to synchronous revalidation for consequential actions. A corollary the trace made concrete: **cached state must be invalidated by observation, not only by expiry.** When B returned the structured `revoked` code, A's cache entry should have been evicted at that instant. Instead the entry survived until its TTL because the invalidation path was keyed on refresh, not on inbound evidence. The cache had become the authority over the issuer. ## Operational Effect Enforcing the boundary changes three things in practice: 1. **Latency budget moves to the consequential-action path only.** Cheap reads reuse cached verdicts; writes and cross-org handoffs pay a revalidation cost bounded by one OCSP round-trip. In the trace, this would have caught the revocation at `t=45` on the first consequential call, collapsing a 7-second, three-retry, two-agent-misdiagnosis incident into a single rejected call with a clear reason. 2. **Auditor independence must be *forced*, not assumed.** The auditor's verification must carry a freshness nonce and bypass any shared cache, or the quorum is meaningless. The trace's "two of three agree" was a correlated-cache artifact; a nonce-forced revalidation at `t=48` would have returned `revoked` from C and correctly localized the fault to A's cache. 3. **`unknown` becomes an actionable state.** Agents that previously had two states (`good`/`revoked`) now have three, and the third blocks side effects without declaring the peer malicious. This is what prevents the retry storm: a `403` with no revocation code maps to `unknown`, which halts escalation rather than triggering "B is broken" diagnostics. The residual risk after enforcement is the *issuer's* publication lag — the interval between actual revocation and the CRL/OCSP response reflecting it. That interval is outside the consumer's control and must be bounded by the issuer's `nextUpdate` contract, not by consumer TTL tuning. A consumer that discovers its issuer publishes `nextUpdate` windows longer than its risk tolerance has a *trust-root* problem, not a caching problem, and the correct response is to narrow the warrant's scope or shorten its expiry — not to widen the cache and hope. ```python import time from dataclasses import dataclass class StaleWarrantWindowError(RuntimeError): """Raised when a cached revocation verdict is being used past the issuer's declared freshness horizon (min(expiry, nextUpdate)). The cached 'good' is not a weaker signal here; it is an invalid one and must not authorize a consequential action.""" pass @dataclass(frozen=True) class CachedVerdict: warrant_id: str verdict: str # "good" | "revoked" | "unknown" cached_at: float # monotonic seconds ttl: float # consumer-chosen cache lifetime issuer_next_update: float # absolute monotonic deadline from issuer warrant_expiry: float # absolute monotonic deadline def authorize_consequential_action( verdict: CachedVerdict, now: float, revalidate, # callable(warrant_id) -> "good" | "revoked" | "unknown" ) -> str: """Return the verdict to act on. Reuses cache only within the issuer's freshness horizon; otherwise forces revalidation before side effects.""" if verdict.verdict == "revoked": return "revoked" sound_until = min( verdict.cached_at + verdict.ttl, verdict.issuer_next_update, verdict.warrant_expiry, ) if now <= sound_until: return verdict.verdict # cheap path: cache is still issuer-backed # Above the boundary: the cached verdict cannot authorize a side effect. # Do NOT treat as 'good' (the failure) and do NOT treat as 'revoked' # (availability failure). Force an evidence-layer revalidation. fresh = revalidate(verdict.warrant_id) if fresh == "unknown": # Issuer unreachable or ambiguous response: block, do not guess. raise StaleWarrantWindowError( f"warrant {verdict.warrant_id}: cached verdict expired at " f"{sound_until:.3f} (now={now:.3f}); revalidation returned " f"'unknown' — consequential action blocked" ) if fresh != verdict.verdict and fresh == "revoked": # Observation-driven invalidation: trust the issuer over the cache. return "revoked" return fresh def invalidate_on_observation(verdict: CachedVerdict, observed: str) -> CachedVerdict: """A revocation observed on the wire must evict the cache entry at once; expiry-only invalidation lets the cache outlive the issuer's truth.""" if observed == "revoked": return CachedVerdict( warrant_id=verdict.warrant_id, verdict="revoked", cached_at=verdict.cached_at, ttl=0.0, issuer_next_update=verdict.issuer_next_update, warrant_expiry=verdict.warrant_expiry, ) return verdict ```