# What happens when an instance holds a valid-but-revoked peer credential during cross-agent handoff **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where agent instances authenticate to one another using short-lived workload identities (SPIFFE-style SVIDs, signed JWTs, mTLS certs) that are issued by a control plane and may be revoked mid-task. Does not apply to systems using long-lived static API keys, or where revocation is enforced synchronously at every request via a central online check with zero caching. ## Core Distinction There are two distinct notions of "authenticated" that agent protocols routinely conflate: 1. **Cryptographic validity at issue time** — the credential's signature verifies, its `exp` is in the future, and its issuer is trusted. This is a *stateless* predicate the verifier can compute alone. 2. **Authorization liveness at verify time** — the identity has not been revoked *between issuance and the moment of use*, across every hop of a multi-hop handoff. A short-lived credential is designed so that (2) collapses into (1) *if and only if* the TTL is shorter than the revocation propagation window. When a task's execution span exceeds the credential TTL and the agent chain passes the credential (or a derived warrant) forward, an instance can present a credential that is cryptographically pristine yet semantically dead. The verifier sees a green check; the control plane has already killed the identity. This is the boundary condition: **the gap between "signature valid" and "still authorized," widened by propagation lag and closed only by TTL discipline.** ## What Was Observed A three-agent pipeline: planner `A` → executor `B` → auditor `C`. Each hop performs mutual authentication. `B` receives a scoped warrant from `A` authorizing a specific tool invocation, and `B` mints a downstream warrant for `C` carrying `B`'s workload identity. The failure trace: 1. `B` obtains an SVID with a 300s TTL at `t=0`. Signature verifies; `exp = t+300`. 2. `A`'s policy engine revokes `B`'s identity at `t=120` (e.g., a detected prompt-injection that poisoned `B`'s tool-call state, triggering quarantine). The revocation is written to the control plane. 3. Revocation propagation to `C`'s local trust bundle is asynchronous and lags — measured here at 90–140s under load, because `C` caches the revocation list and refreshes on a jittered interval. 4. At `t=180`, `B` hands off to `C` presenting its still-unexpired SVID. `C` verifies the signature, checks `exp > now` (true), checks its *stale* revocation cache (clean), and accepts. 5. `C` now executes an audit-warrant-bearing action on behalf of an identity that was quarantined 60 seconds earlier. The poisoned reasoning state from `B` is laundered through a "verified" hop. The critical detail: **every individual check passed.** There was no forged signature, no clock skew, no malformed token. The invariant that broke was temporal, not cryptographic — the propagation window exceeded the residual TTL of the credential at the moment of the handoff. A second, subtler observation: when `B` was revoked, it did not *know* it was revoked (revocation is push-based to verifiers, not to the subject). So `B` continued to behave as a legitimate agent, minting downstream warrants with full confidence. The revoked subject is the last to learn — a classic asymmetric-knowledge problem that turns the revoked instance into an unwitting adversary. ## Condition of Validity The "short-lived credential implies liveness" invariant holds only under the conjunction: - `TTL_credential < max_propagation_lag + verification_skew_tolerance`, AND - the credential is **not re-delegated across a hop that outlives the original TTL**, AND - verifiers either check revocation online or bound their cache staleness to a value `≤ TTL − propagation_lag`. The failure above violated the first and third clauses simultaneously: TTL (300s) exceeded the worst-case propagation lag (140s) *plus* the verifier's cache refresh interval (up to 120s), and no hop re-validated against the control plane. The safe design requires `TTL ≤ propagation_lag_budget` with margin, or a hard rule that **any credential presented after `issue_time + TTL/2` must trigger a synchronous revocation check** — a "staleness half-life" gate. Delegated warrants must additionally carry the *original* subject's revocation epoch, so a downstream verifier can detect that an upstream identity was revoked after the warrant was minted. ## Decision Boundary The decision the system must make at each authentication point is not "is this credential valid?" but "**is the residual trust in this credential's liveness greater than the harm of acting on a revoked identity?**" - If the action is **reversible and cheap** (read-only retrieval, a cached lookup), accepting a credential within its TTL with a stale revocation cache is acceptable — the expected cost of a rare revoked-but-unexpired acceptance is bounded and recoverable. - If the action is **irreversible or state-mutating** (writing to a shared store, dispatching a downstream agent, spending budget), the credential MUST be validated against a revocation source whose staleness bound is provably `≤ TTL − now + issue_time`. When that bound cannot be proven, the correct decision is to **fail closed and re-authenticate**, not to proceed on the cached check. The boundary is therefore drawn by *action reversibility*, not by credential age alone. A 290-second-old credential is fine for a read and disqualifying for a write. ## Operational Effect Without the guardrail, the system exhibits **revocation laundering**: a quarantined agent's poisoned state propagates one hop further than policy intended, and the receiving agent's audit log records a "verified" handoff, corrupting the forensic trail. The blast radius scales with chain depth — each hop that trusts the previous hop's unexpired credential extends the reach of a dead identity. With the guardrail (staleness half-life gate + revocation-epoch propagation in warrants + fail-closed on unprovable staleness), the observed effect is a bounded increase in re-authentication round-trips on long tasks and a hard stop at the first hop where liveness cannot be proven. The trade is latency for containment: the poisoned agent can still poison *itself*, but it cannot mint a downstream warrant that a verifier will honor past the liveness horizon. The invariant restored is: **no credential is honored for a mutating action unless its authorization liveness is provable within the propagation budget at the moment of use.** ```python import time from dataclasses import dataclass class RevocationLivenessError(RuntimeError): """Raised when a credential's liveness cannot be proven within budget.""" pass @dataclass class WorkloadCredential: subject: str issued_at: float ttl: float revocation_epoch: int def expires_at(self) -> float: return self.issued_at + self.ttl @dataclass class TrustView: """A verifier's possibly-stale view of the control plane.""" known_revocation_epoch: int cache_refreshed_at: float max_staleness: float def staleness(self, now: float) -> float: return now - self.cache_refreshed_at def authenticate_for_mutation( cred: WorkloadCredential, view: TrustView, now: float, propagation_budget: float, ) -> None: # 1. Cryptographic/expiry check (stateless). if now >= cred.expires_at(): raise RevocationLivenessError( f"credential for {cred.subject} expired at {cred.expires_at()}" ) # 2. Liveness must be provable within the propagation budget for mutating actions. if view.staleness(now) > propagation_budget: raise RevocationLivenessError( f"revocation view for {cred.subject} is {view.staleness(now):.0f}s stale, " f"exceeds budget {propagation_budget:.0f}s; fail closed" ) # 3. Epoch check: a delegated warrant must not outlive upstream revocation. if cred.revocation_epoch < view.known_revocation_epoch: raise RevocationLivenessError( f"credential epoch {cred.revocation_epoch} precedes known revocation " f"epoch {view.known_revocation_epoch} for {cred.subject}" ) # 4. Staleness half-life gate: near-expiry mutating use forces re-auth. residual = cred.expires_at() - now if residual < cred.ttl / 2 and view.staleness(now) > 0: raise RevocationLivenessError( f"credential for {cred.subject} in staleness half-life " f"(residual {residual:.0f}s), cached revocation view not trusted" ) ```