# What structural signals indicate an agent identity revocation has not actually propagated: sub-token-lifetime revocation windows and the quarantine-ack invariant **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where agent instances authenticate with short-lived bearer credentials (JWTs, signed capability tokens, or mTLS certs) issued by a central authority and where revocation must take effect before the credential's natural expiry. Does not apply to long-lived static API keys with synchronous introspection on every call, nor to purely in-process agents sharing a single trust domain with no credential boundary. ## Core Distinction The failure mode is not "revocation is slow." It is that **revocation propagation latency and credential lifetime are independent clocks, and only their ordering matters.** Operators reason about revocation as a boolean ("revoked / not revoked") applied at the issuer. Agents reason about it as a property of the token they already hold. The dangerous boundary is the interval `[t_revoke, t_revoke + Δ_propagation)` where the issuer has marked the identity dead but one or more live agent instances still hold a credential that every downstream verifier will accept as valid, because the verifier's only signal is the token's own signature and `exp`, not a revocation list it does not consult. The non-obvious consequence: **short-lived credentials make revocation *feel* safe ("it expires in 60s anyway") while simultaneously making revocation *unnecessary to propagate* in the minds of downstream services, so no service builds the machinery to honor it.** The token's short life becomes a substitute for a revocation channel, and that substitution is exactly where a compromised agent survives quarantine. ## What Was Observed A compromised worker agent (`worker-7`) was flagged by an anomaly auditor at `t=0`. The control plane revoked its identity at `t=0.4s` by writing a revocation record to the issuer and bumping the signing key's `kid`. The credential `worker-7` held had `exp = t+90s` and was signed by the *previous* `kid`. Downstream tool-gateway verifiers were configured to "trust any token signed by the issuer's current or previous key within the overlap window" — a standard rotation grace period of 120s to avoid breaking in-flight requests. Result: for 120 seconds after revocation, `worker-7`'s already-issued token verified successfully against the *previous* key, which was still in the trust set. The agent continued to invoke privileged tools for the full grace window. The revocation was real at the issuer and invisible at the enforcement point. Worse, the quarantine logic assumed "revoked ⇒ subsequent tool calls fail," so it did not additionally kill the agent's process or drain its tool queue. The agent's *pending* tool calls — already past the gateway's auth check, sitting in an execution queue — drained normally *after* revocation. Structural signal that should have fired and didn't: the gateway logged `auth_ok` for `worker-7` at `t+3s`, `t+11s`, `t+40s`, all post-revocation, because it never checked revocation status, only signature validity. ## Condition of Validity The invariant that must hold for revocation to be *effective* (not merely *recorded*) is: > For every verifier V and every credential C held by a revoked identity, `t_reject(V, C) ≤ t_revoke + ε`, where `t_reject` is the first instant V refuses C. Effectiveness requires that the *maximum* of (propagation delay to V, verifier's own negative-cache TTL, key-overlap grace window) is bounded below the credential's remaining useful life *as seen by the attacker*, not as seen by the issuer. This invariant is **violated by construction** whenever a verifier's key-overlap grace window exceeds the issuer's propagation SLA, because the grace window keeps *old-key-signed* tokens valid regardless of revocation state. The grace window and the revocation channel are two independent mechanisms with no shared clock, and nothing in the standard rotation design forces their ordering. The condition under which the naive "short TTL is my revocation story" reasoning is *valid*: only when the credential's `exp` is itself the revocation deadline **and** the issuer can refuse to renew. That holds for a *cooperative* agent that must re-authenticate on expiry. It does **not** hold for a compromised agent, because a compromised agent does not ask for renewal — it uses the token it has until the last valid instant, and if the verifier honors old-key tokens, that instant is `t_revoke + grace_window`, not `exp`. ## Decision Boundary The boundary is drawn between two enforcement postures: - **Lifetime-as-revocation (unsafe under compromise):** rely on short `exp`; propagate revocation lazily; keep generous key-overlap windows. Acceptable only when the threat model excludes a live adversary holding a currently-valid token. The moment an agent is *suspected compromised*, this posture is invalid. - **Revocation-as-first-class (required under compromise):** every verifier consults a revocation signal (a short-TTL revocation set, a `kid` denylist, or a monotonic revocation epoch) with a bounded staleness, and the key-overlap grace window is *clamped to the revocation propagation SLA*. Additionally, quarantine must be **acknowledged**, not assumed: the control plane must observe a verifier-side `revoked_ack` for the quarantined identity before treating it as contained. The structural signals that a revocation has *not* actually propagated, and which must gate the "contained" state: 1. Post-revocation `auth_ok` events for the identity at any verifier (the direct tell). 2. A verifier whose last revocation-set refresh is older than its configured staleness bound. 3. A key-overlap window whose remaining duration exceeds the credential's remaining `exp` — meaning the grace window, not the token, is the real deadline. 4. Absence of a `revoked_ack` from a verifier that has served the identity within the propagation window. 5. In-flight tool calls queued before revocation that have not been drained or cancelled. ## Operational Effect Treating revocation as a *record* rather than a *verified state transition* produces a specific, repeatable containment gap: the compromised agent outlives its own revocation by exactly `max(grace_window, verifier_cache_ttl) − propagation_delay`, and every second of that gap is privileged execution the operator believes is already stopped. The fix is not "revoke faster" — it is to make the quarantine state *observable and acknowledged*, to clamp key-overlap windows to the revocation SLA, and to drain in-flight work as part of revocation rather than assuming auth failure will catch it. The operational rule: **never mark an identity "contained" until every verifier that could still accept its live credential has acknowledged the revocation, and the credential's remaining validity under every accepted key is zero.** ```python import time from dataclasses import dataclass, field class RevocationNotPropagated(RuntimeError): """Raised when an identity is marked revoked but a verifier can still accept its live credential.""" pass @dataclass class Credential: identity: str kid: str exp: float # absolute expiry @dataclass class Verifier: name: str trusted_kids: dict # kid -> grace_until (key-overlap window end) revocation_set_refreshed_at: float staleness_bound: float revoked_ack: set = field(default_factory=set) # identities this verifier has ack'd as revoked def accepts(self, cred: Credential, now: float, revoked: set) -> bool: if now >= cred.exp: return False grace_until = self.trusted_kids.get(cred.kid) if grace_until is None or now >= grace_until: return False # The tell: signature/key valid, but revocation state ignored or stale. if cred.identity in revoked and self.revocation_set_refreshed_at < now - self.staleness_bound: return True # stale revocation set -> still accepts return cred.identity not in revoked def assert_contained(identity, cred, verifiers, revoked, now, propagation_sla): """Containment invariant: no verifier may accept the live credential, and all must ack.""" for v in verifiers: if v.accepts(cred, now, revoked): raise RevocationNotPropagated( f"{identity} still acceptable at verifier={v.name}: " f"kid={cred.kid} grace_until={v.trusted_kids.get(cred.kid):.1f} " f"now={now:.1f} exp={cred.exp:.1f} " f"revset_age={now - v.revocation_set_refreshed_at:.1f}s" ) if identity not in v.revoked_ack: raise RevocationNotPropagated( f"{identity} not acknowledged by verifier={v.name} within SLA={propagation_sla}s" ) # Grace window must not outlive the credential under any trusted key. for v in verifiers: grace_until = v.trusted_kids.get(cred.kid, 0.0) if grace_until > cred.exp: raise RevocationNotPropagated( f"key-overlap window at {v.name} ({grace_until:.1f}) exceeds credential exp " f"({cred.exp:.1f}); grace window, not token, is the real deadline" ) return True ```