Why does an instance keep trusting a revoked capability when the revocation was signed, propagated, and acknowledged?
**Date of Record:** 2026 December 1 **Scope:** Applies to federated agent registries where capability attestations (signed claims that agent A may invoke capability C on agent B) are issued by an authority registry and consumed by peer agents via cached attestation bundles with TTLs. Does not apply to single-registry deployments with a synchronous online check on every invocation, nor to capability models where revocation is enforced by the callee at execution time rather than by the caller at admission time.
Core Distinction
A revocation is a *negative fact about the future*: "from sequence N onward, claim K is invalid." An attestation is a *positive fact about the present*: "claim K is valid as of sequence M." Federated agent systems almost always propagate the positive fact eagerly (it is what unblocks work) and the negative fact lazily (it is what only some peers care about). The failure is not that revocation messages get lost. The failure is that revocation is **monotonic in the authority's log but non-monotonic in the consumer's cache**, and the consumer's admission decision is a function of the cache, not the log. An instance that has *acknowledged* a revocation can still hold, in a warm in-memory attestation cache keyed by `(issuer, subject, capability)`, a pre-revocation entry whose TTL has not expired — and its admission path consults the cache, not the acknowledgment record. The acknowledgment is a transport-layer receipt; the cache is a decision-layer artifact. Nothing in the protocol couples them.
What Was Observed
A three-registry federation: `R_auth` (issuer of attestations), `R_peer` (mirrors attestations for low-latency reads), and an auditor agent `A_aud` that subscribes to revocation events. Agent `B_exec` holds a cached bundle from `R_peer` granting `B_exec` the capability `invoke:settlement` on agent `C_settle`, TTL 900s, issued at authority sequence 4410.
At sequence 4471, `R_auth` revokes the `invoke:settlement` claim — `C_settle` was found to be executing settlement calls against a stale ledger snapshot. The revocation is signed, pushed to `R_peer`, and `R_peer` returns `200 OK` with a `revocation_seq: 4471` echo. `B_exec` receives the push, writes an acknowledgment, and updates its `revocation_watermark` to 4471. Within 40ms, `B_exec`'s *newly fetched* attestation bundles correctly exclude the claim.
But `B_exec` had already, at sequence 4468, resolved the capability through its **warm admission cache** — a `dict[(issuer, subject, capability)] -> (decision, expiry)` populated on first use and consulted on every subsequent invocation. That entry was created with `expiry = now + 900s`, independent of any revocation watermark. The revocation handler updated the watermark and the bundle store but did not invalidate the admission cache, because the admission cache is keyed by capability tuple and the revocation event carries only a claim ID, not the tuple(s) derived from it. The mapping from `claim_id -> (issuer, subject, capability)` lived in `R_auth`'s claim table, not in the event payload.
Result: for 861 seconds, `B_exec` continued admitting `invoke:settlement` calls to `C_settle` at a rate of ~14/s. Every one of those admissions was made by an instance that could truthfully report "I have acknowledged the revocation of sequence 4471." The instance was not lying, not partitioned, and not stale in any sense its own telemetry could see — its watermark was current. Its *decision function* simply did not read the watermark.
The secondary observation is the one that makes this a boundary condition rather than a bug: when the auditor `A_aud` replayed `B_exec`'s admission log against the authority log, it found 12,054 admissions after the revocation sequence. It classified them as **verification replay discrepancies** — the auditor's model of `B_exec` was "an agent that ignores revocations," which is wrong. `B_exec` was an agent whose acknowledgment and whose admission decision were served by two different subsystems with no shared invariant. The auditor's replay used `revocation_watermark` as the cutoff; `B_exec`'s admissions used cache expiry. Both were internally consistent; they disagreed because the protocol never specified which one is authoritative for admission.
Condition of Validity
The invariant that would have bounded this is a **revocation-closure condition on the admission cache**:
> For every admission decision served from cache at time `t`, the cache entry must have been created at a bundle sequence `s_create` such that no revocation with sequence `s_rev > s_create` and matching the entry's capability tuple exists in the instance's acknowledged revocation set at time `t`.
This is checkable only if two things hold, and in the observed system neither did:
- **The revocation event must carry the capability tuple**, not just the claim ID. Without it, the consumer cannot compute the invalidation key and must either invalidate the whole cache (a thundering-herd cost the operator had explicitly rejected) or invalidate nothing (what happened).
- **The cache entry must carry its originating bundle sequence**, not just a wall-clock expiry. A TTL is a statement about *time*, but revocation is a statement about *sequence*. In a federated system where `R_peer`'s bundle sequence and `R_auth`'s authority sequence can drift (they did — `R_peer` was at 4469 when `R_auth` was at 4471), a TTL cannot stand in for a sequence comparison. The entry must remember `s_create` so that `s_rev > s_create` is decidable at admission time.
The condition is *not* satisfied by shortening TTLs. A 60s TTL reduces the window from 861s to ~60s but does not eliminate it, and the failure recurs at every TTL boundary — it is a structural gap, not a tuning parameter. The condition is *not* satisfied by "check the watermark before admitting" either, unless the watermark is keyed by capability tuple; a global watermark forces full-cache invalidation on every revocation, which is correct but scales as O(revocations × cache size) and was the reason the operator avoided it in the first place.
Decision Boundary
The boundary is between **transport acknowledgment** and **decision-layer commitment**. These are different events and the protocol conflated them:
- *Acknowledged* means: "I have durably received revocation 4471 and will not re-fetch a bundle with sequence < 4471." This is a statement about the bundle store.
- *Committed* means: "No admission decision I serve from this moment forward will rely on a claim that revocation 4471 invalidates." This is a statement about the admission cache.
A correct protocol requires the consumer to emit a **commitment receipt** distinct from the acknowledgment, and the authority must not consider the revocation *propagated* until commitment receipts arrive from all consumers whose caches could hold the tuple. The commitment receipt must be keyed by `(capability_tuple, revocation_seq)` and must be emitted only after the admission cache has been swept for that tuple. The authority's revocation record then has two states — `acknowledged` and `committed` — and only `committed` closes the window.
The boundary also has an auditor-side consequence. A replay that uses `revocation_watermark` as the cutoff will over-count post-revocation admissions and mis-classify a cache-coherence gap as a policy violation. The auditor must replay against the **commitment receipt sequence**, not the acknowledgment watermark, or it will systematically attribute transport-layer correctness to decision-layer correctness and miss exactly this class of failure.
Operational Effect
Three concrete effects, in order of severity:
- **Silent over-admission for the residual TTL.** The instance is indistinguishable from a compliant one on every transport metric (ack latency, watermark freshness, bundle-store sequence). Dashboards show green. The only signal is the auditor's replay discrepancy, and that signal is mis-classified as a policy violation rather than a coherence gap, so it routes to the wrong on-call rotation.
- **Revocation storms amplify the gap.** When an authority revokes a batch (e.g., a compromised settlement ledger invalidates 40 capability tuples at once), consumers that *do* implement per-tuple invalidation sweep their caches and re-fetch, generating a burst of bundle requests. Consumers that *do not* (like `B_exec`) serve stale admissions through the entire burst, so the over-admission rate scales with the batch size, not linearly with time. The failure is worst exactly when revocation matters most.
- **Federation drift widens the window.** `R_peer` lagged `R_auth` by 2 sequences at revocation time. A consumer comparing `s_create` against `R_peer`'s sequence would have seen `s_create = 4468 < 4469` and admitted correctly by its own local logic — but the authority had already revoked at 4471. The commitment receipt must be checked against the **authority** sequence, not the mirror's, or the mirror's lag becomes an unaccounted-for extension of the window.
The guardrail is a single structural change: **admission cache entries are keyed by capability tuple and carry `s_create`; revocation events carry the tuple set; the admission path rejects any entry where `acknowledged_revocation_set[tuple].max_seq > s_create`.** This makes the watermark a decision-layer input rather than a transport-layer artifact, and it makes the auditor's replay cutoff agree with the consumer's admission cutoff by construction.
from dataclasses import dataclass, field
from typing import Dict, Optional, Set
class RevocationCoherenceError(RuntimeError):
"""Raised when an admission decision would rely on a revoked capability."""
pass
@dataclass(frozen=True)
class CapabilityTuple:
issuer: str
subject: str
capability: str
@dataclass
class AdmissionCacheEntry:
decision: bool
s_create: int # bundle sequence at which this entry was created
expiry: float # wall-clock TTL, NOT a substitute for s_create
@dataclass
class RevocationRecord:
capability_tuple: CapabilityTuple
revocation_seq: int # authority sequence, not mirror sequence
acknowledged: bool = False
committed: bool = False
class FederatedAdmissionGate:
def __init__(self) -> None:
self._cache: Dict[CapabilityTuple, AdmissionCacheEntry] = {}
self._revocations: Dict[CapabilityTuple, RevocationRecord] = {}
def register_revocation(self, rec: RevocationRecord) -> None:
# Revocation events MUST carry the tuple; claim-ID-only events cannot
# compute an invalidation key and silently leave the cache warm.
self._revocations[rec.capability_tuple] = rec
rec.acknowledged = True
def commit_revocation(self, tup: CapabilityTuple) -> None:
rec = self._revocations.get(tup)
if rec is None:
raise RevocationCoherenceError(
f"cannot commit revocation for unknown tuple {tup}"
)
# Sweep the admission cache for this tuple before committing.
self._cache.pop(tup, None)
rec.committed = True
def admit(self, tup: CapabilityTuple, now: float) -> bool:
entry = self._cache.get(tup)
if entry is None or entry.expiry <= now:
# Cold path: fetch a fresh bundle from the authority sequence.
entry = AdmissionCacheEntry(decision=True, s_create=self._authority_seq(), expiry=now + 900.0)
self._cache[tup] = entry
rec = self._revocations.get(tup)
if rec is not None and rec.revocation_seq > entry.s_create:
# The revocation-closure invariant is violated: the cached entry
# predates a revocation the instance has already acknowledged.
raise RevocationCoherenceError(
f"admission for {tup} would rely on claim revoked at seq "
f"{rec.revocation_seq} but cached at seq {entry.s_create}; "
f"acknowledged={rec.acknowledged} committed={rec.committed}"
)
return entry.decision
def _authority_seq(self) -> int:
# Placeholder: real implementations read R_auth's sequence, never R_peer's.
return 4471