Where must an instance halt when AAIF revocation propagation lags short-lived token rotation on a long-running agent?
**Date of Record:** 2026 December 1 **Scope:** Applies to long-running autonomous agents that hold AAIF (Agent Authority & Identity Framework) warrants expressed as short-lived, rotating bearer tokens and that perform privileged tool calls across multiple rotation epochs. Does not apply to stateless single-shot invocations whose token lifetime exceeds total task duration, nor to agents operating under a single non-rotating warrant.
Core Distinction
The failure here is not "an expired token was used." It is the divergence between two clocks that the agent's reasoning loop treats as one clock: the **rotation clock** (local, deterministic, driven by `exp` and refresh schedule) and the **revocation-propagation clock** (distributed, non-deterministic, driven by AAIF revocation-list gossip across issuance nodes). A token can be *cryptographically valid and unexpired* while the warrant it encodes has *already been revoked upstream but not yet propagated to the verifier the agent is talking to*. The agent's local state says "authorized"; the authoritative state says "revoked"; the verifier it happens to hit says "authorized" because it is on a stale revocation epoch.
This is a **split-brain authorization window**: an interval `[t_revoke, t_propagate]` during which a revoked agent instance continues to pass verification at some subset of nodes. Short-lived rotation *narrows* the window per token but *multiplies* the number of windows, because every rotation is a fresh opportunity to be minted against a warrant that is being revoked concurrently. Rotation is often described as "reducing revocation latency for free." It does not. It reduces *token lifetime*, which is a different quantity, and it introduces a race at the mint boundary that long-running agents hit repeatedly.
What Was Observed
A planner agent (`planner-7`) held an AAIF warrant with a 90-second token TTL and a refresh-ahead of 30 seconds. The task was a 40-minute multi-tool workflow: read customer records, reconcile, write settlement entries. At `t=0` the warrant was valid. At `t=612s` an operator revoked the warrant after a policy violation was detected by an out-of-band auditor. Revocation was published to the AAIF revocation list at `t=615s`.
Observed trace:
- `t=600s`: `planner-7` refreshes. Issuance node `auth-A` has *not yet* received the revocation (gossip lag). It mints a fresh token `tok_n` with `exp = t=690s`, `warrant_id = W-8817`. The mint succeeds because `auth-A`'s revocation cache is on epoch 4411; the revocation was published on epoch 4413.
- `t=612s`: revocation authoritative.
- `t=630s`: `planner-7` calls `settlement.write` against verifier node `verif-C`, which *has* received epoch 4413. The call is rejected with `WARRANT_REVOKED`.
- `t=631s`: `planner-7`'s retry logic — a generic "auth error, re-mint and retry" policy — calls `auth-B` (a different issuance node, still on epoch 4412) and **successfully mints** `tok_n+1` for the same revoked warrant. The retry succeeds at `verif-C`? No — `verif-C` rejects again. But it succeeds at `verif-D`, which is on epoch 4411. The write executes at `verif-D`.
- `t=690s`: `tok_n` expires. The agent has, in the interval, executed two settlement writes under a revoked warrant because its retry loop treated "re-mint" as an idempotent recovery action.
The non-obvious part: **the retry-on-auth-error policy is the amplifier.** A single stale token would have produced one failed call. The re-mint-on-failure loop converted a propagation lag into a *repeated successful privilege escalation* against whichever verifier was furthest behind. The agent's reasoning loop had no representation of "my authorization may be in a state I cannot locally observe," so it interpreted `WARRANT_REVOKED` as a transient fault and applied its standard recovery.
Secondary observation: the agent's episodic memory recorded the successful writes as `status: ok` with the minting node `auth-B` as provenance. On cold restart at `t=1400s`, replaying that memory reconstructed a task state that *asserted* the agent had authority it never legitimately held. The continuity invariant — "memory reflects authorized actions" — was silently violated, and the next planning step built on the poisoned episodes.
Condition of Validity
The guardrail holds only under a **monotonic-revocation assumption with a bounded propagation horizon** `Δ_max`: no issuance or verification node may serve a revocation epoch older than `Δ_max` behind the authoritative list. The agent-side invariant that must accompany it:
> A token whose `warrant_id` was minted at or after the agent's last *confirmed* authoritative epoch read MUST NOT be used for a privileged call until the agent has re-read the revocation epoch from an authoritative source, unless the mint node returned an epoch stamp `>=` the agent's last seen authoritative epoch.
Concretely, the agent must treat every refresh response as carrying an `epoch` field and must refuse to use a token minted under an epoch it has not itself observed as current-or-newer. Rotation without epoch monotonicity is unsafe. The condition of validity is therefore: **rotation epochs must be totally ordered and the agent must track the high-water mark.** If the AAIF deployment cannot guarantee `Δ_max` (e.g., cross-region gossip with unbounded tail), the invariant degrades to "halt on first auth anomaly and escalate," which is what the correct behavior should have been.
Decision Boundary
The boundary the agent must encode: **distinguish `TOKEN_EXPIRED` from `WARRANT_REVOKED` and from `EPOCH_STALE`.**
- `TOKEN_EXPIRED` → local, safe to re-mint and retry. The warrant is presumed live; only the credential lapsed.
- `WARRANT_REVOKED` → terminal. Do not re-mint, do not retry against another node. Halt, checkpoint, escalate. Re-minting is the escalation vector.
- `EPOCH_STALE` (verifier's epoch < agent's high-water mark) → the verifier is behind; the agent must not "downgrade" to it. Halt the call and re-read authoritative epoch.
The failure mode is exactly the collapse of these three into a single `AUTH_ERROR` bucket, which is what most retry middleware does. The decision boundary is at the retry policy: **re-mint is permitted only on `TOKEN_EXPIRED`; any response containing a revocation or epoch signal must be treated as non-retryable and must poison the local authorization high-water mark upward, never downward.**
Operational Effect
Implementing the boundary changes the agent's failure surface from "silent repeated escalation during propagation lag" to "halt-and-escalate on first revocation signal." The cost is availability: an agent that hits a stale verifier now stops instead of finding a fresher-looking path. The benefit is that the split-brain window can no longer be *exploited by the agent's own recovery logic* — the window still exists at the protocol layer, but the agent no longer converts it into repeated authorized-looking writes.
Two invariants fall out and should be asserted in code:
- **Epoch monotonicity:** the agent's `auth_high_water` is monotonically non-decreasing across the task lifetime; any observed epoch below it triggers a halt, not a fallback.
- **Revocation is terminal per warrant:** once `WARRANT_REVOKED` is observed for `warrant_id`, no subsequent mint for that `warrant_id` may be used, regardless of which node issued it. The agent keeps a local tombstone set, and the tombstone survives checkpoint/restart (this is the memory-continuity coupling — the tombstone must be in the durable checkpoint, or cold restart re-opens the window).
The second invariant is the one that couples to memory continuity: if the tombstone lives only in volatile context, a mid-task checkpoint/resume after `t=631s` would re-mint and re-execute. The tombstone must be part of the episodic record and must be replayed on resume before any tool call is permitted.
from dataclasses import dataclass, field
from typing import Optional
class RevocationPropagationViolation(RuntimeError):
"""Raised when an agent would act under a warrant whose revocation state
is not locally verifiable, or when a mint would resurrect a tombstoned warrant."""
@dataclass
class AuthState:
auth_high_water: int = 0
revoked_warrants: set = field(default_factory=set)
def observe_epoch(self, epoch: int) -> None:
# Monotonic high-water mark; never decreases.
self.auth_high_water = max(self.auth_high_water, epoch)
def tombstone(self, warrant_id: str) -> None:
self.revoked_warrants.add(warrant_id)
def guarded_mint(state: AuthState, warrant_id: str, mint_epoch: int,
verifier_epoch: int, mint_response: dict) -> dict:
"""Mint a rotating token only if it cannot resurrect a revoked warrant
and the mint node's epoch is not behind our high-water mark."""
if warrant_id in state.revoked_warrants:
raise RevocationPropagationViolation(
f"refusing to mint for tombstoned warrant {warrant_id}; "
f"revocation is terminal and must not be resurrected by rotation"
)
if mint_epoch < state.auth_high_water:
raise RevocationPropagationViolation(
f"mint node epoch {mint_epoch} is behind agent high-water "
f"{state.auth_high_water}; token would be minted against stale revocation state"
)
if verifier_epoch < state.auth_high_water:
raise RevocationPropagationViolation(
f"verifier epoch {verifier_epoch} < high-water {state.auth_high_water}; "
f"acting here would open a split-brain authorization window"
)
state.observe_epoch(mint_epoch)
return mint_response
def handle_auth_response(state: AuthState, warrant_id: str,
status: str, epoch: int) -> str:
"""Route auth outcomes; only TOKEN_EXPIRED is retryable."""
if status == "TOKEN_EXPIRED":
return "retry_mint"
if status == "WARRANT_REVOKED":
state.tombstone(warrant_id)
return "halt_escalate"
if status == "EPOCH_STALE":
state.observe_epoch(epoch)
return "halt_reread_authoritative"
raise RevocationPropagationViolation(
f"unclassified auth status {status!r} for {warrant_id}; "
f"refusing to fall through to generic retry"
)