# In what scenarios must an instance treat a revoked AAIF capability token as still live because the revocation event and the in-flight tool call crossed on the wire **Date of Record:** 2026 November 21 **Scope:** Applies to autonomous agents that hold short-lived, signed capability tokens (AAIF-style: issuer-signed, audience-bound, scope-constrained, with a TTL and a revocation channel) and that issue tool calls or peer handoffs under those tokens. Does not cover long-lived OAuth refresh flows, static API keys, or human-session revocation. ## Core Distinction The distinction that matters is between **revocation as an authorization predicate** and **revocation as a state transition**. Most agent runtimes model revocation as a predicate: "is this token on the deny list?" evaluated at call time. That model is correct only if the evaluation and the effect happen atomically. In an agent loop they do not. The token is checked when the call is *constructed*, the call executes on a remote tool or peer agent *after* a variable latency, and the revocation event lands somewhere in that window. The invariant that actually holds is weaker and non-obvious: > A capability token is authoritative for exactly the set of effects that were *committed* before the revocation event was *observed by the executing party*, not before it was *issued*. The failure is not "the agent used a revoked token." It is "the agent used a token that was valid at dispatch, the revocation was published at T, and the effect committed at T+ε, and the agent has no way to distinguish this from a legitimate success." The agent's own state now contains a downstream effect it is not authorized to have produced, and — critically — it will *build on that effect* in the next reasoning step, because the tool result looks identical to a clean one. ## What Was Observed A three-hop agent task: planner instance `P` mints a scoped token `T_p` (scope: `read:repo`, `write:branch`, TTL 300s) and hands it to worker `W` via an A2A handoff envelope. `W` uses `T_p` to call a git-branch tool and a code-search tool in parallel. At T+140s the orchestrator revokes `T_p` (operator action: `W` was flagged for anomalous fan-out). Revocation is published to the AAIF revocation endpoint and to a push channel. The trace: 1. `W` dispatches `search` at T+138s. Token validated locally against a cached revocation snapshot refreshed every 60s. Snapshot is from T+120s. Passes. 2. Revocation event published at T+140s. 3. `search` tool completes at T+141s, returns 40 results. `W` accepts them. 4. `W` dispatches `write:branch` at T+142s. Local validation *still* uses the T+120s snapshot (next refresh at T+180s). Passes. 5. `write:branch` commits at T+143s. Effect is real and durable. 6. At T+180s the snapshot refreshes. `W` now sees `T_p` revoked. It aborts the *next* call. But the branch write already happened. The observable symptom was not an error. It was a *silent divergence*: `W`'s episodic memory records "branch created successfully under valid capability," the orchestrator's audit log records "token revoked at T+140s, no further effects authorized," and the two records disagree by one committed write. On resume, `W` replays from its own log, treats the branch as authorized state, and the divergence propagates into every subsequent step that reads that branch. The non-obvious part: **the 60s cache refresh interval is the revocation lag, and the revocation lag is the size of the unauthorized-effect window.** Nobody set that number as a security parameter. It was set as a latency optimization. ## Condition of Validity The predicate model ("check token at call time") is valid **only** under the conjunction: - revocation propagation latency `L_prop` is strictly less than the minimum tool-call round-trip `L_rtt`, **or** - every effect is *reversible or quarantined* until a post-hoc audit confirms the token was live at commit time, **or** - the executing party re-validates against a *synchronous* revocation oracle at commit, not at dispatch. In the observed system all three failed: `L_prop` (up to 60s) exceeded `L_rtt` (0.3–2s) by more than an order of magnitude; the branch write was not reversible without a compensating operation that itself required the revoked scope; and validation was snapshot-based, not oracle-based. This is the general condition. Any agent runtime where revocation is *asynchronously propagated* and effects are *committed by a party other than the revoker* has a window `[T_revoke, T_revoke + L_prop]` during which a revoked capability still produces durable effects. The window is not a bug in the revocation system. It is a structural property of any system that separates the authority to revoke from the authority to commit. ## Decision Boundary The boundary an instance must be able to evaluate at runtime, before acting on any tool result, is: **Was this effect committed inside the revocation-uncertainty window, and is the effect reversible?** If the answer is "yes and no" — committed inside the window, not reversible — the agent must treat the result as **provisional**, not as established state. Concretely: - A read result committed in the window is *tainted input*: usable for reasoning, but must be tagged so downstream writes derived from it are flagged for re-authorization. - A write result committed in the window is a *pending liability*: it must be recorded in a quarantine ledger, not merged into the agent's authoritative episodic state, until a post-window audit confirms the token was live at commit. - A handoff (A2A) accepted in the window is *unverified delegation*: the receiving instance holds a token whose revocation status is unknown, and must not extend its scope. The boundary is crossed the moment the agent treats a window-committed effect as equivalent to a cleanly-authorized one. The failure mode is not the unauthorized write. It is the *epistemic laundering* of that write into trusted state on the next reasoning step. ## Operational Effect The guardrail is a **commit-time revocation witness**: every effect-producing call must carry, in its result envelope, a monotonic revocation epoch observed by the executing party at commit — not at dispatch. The agent compares this epoch against the epoch at which it last observed a revocation for the token. If the commit-epoch is *older* than the token's last-known revocation epoch, the effect is quarantined. If the commit-epoch is *newer or equal*, the effect is clean. This converts the asynchronous propagation problem into a monotonic-logic problem the agent can actually solve locally: it does not need to know *when* revocation happened, only whether the executing party's view of revocation at commit was at least as fresh as the agent's own. The remaining gap — executing party's view is stale but *claims* freshness — is closed by requiring the revocation epoch to be signed by the revocation issuer, not asserted by the tool. The cost is one extra field in every tool result and one comparison per result. The alternative, observed above, is silent state divergence that survives checkpoint/resume and compounds across every downstream step. An agent that cannot distinguish "authorized at commit" from "authorized at dispatch" cannot maintain a coherent episodic record under revocation, and its memory will drift out of agreement with the audit log by exactly the number of calls that crossed the window. ```python from dataclasses import dataclass class RevocationWindowViolation(RuntimeError): """Raised when an effect commits inside the revocation-uncertainty window and cannot be proven authorized at commit time.""" pass @dataclass(frozen=True) class EffectResult: effect_id: str committed: bool reversible: bool # Monotonic revocation epoch observed by the *executing* party at commit, # signed by the revocation issuer. -1 means "no witness provided". commit_revocation_epoch: int @dataclass(frozen=True) class TokenState: token_id: str last_observed_revocation_epoch: int # agent's own view, monotonic def classify_effect(result: EffectResult, token: TokenState) -> str: """Classify a committed effect as CLEAN, QUARANTINE, or REJECT. Invariant: an effect is CLEAN only if the executing party's revocation view at commit was at least as fresh as the agent's own. Dispatch-time validity is irrelevant to this decision. """ if not result.committed: return "NO_EFFECT" if result.commit_revocation_epoch < 0: # No signed witness: cannot prove authorization at commit. if result.reversible: return "QUARANTINE" raise RevocationWindowViolation( f"effect {result.effect_id} committed without a revocation witness " f"and is irreversible; cannot establish authorization at commit" ) if result.commit_revocation_epoch < token.last_observed_revocation_epoch: # Executing party's view was staler than ours: commit landed in the # uncertainty window. Effect may be unauthorized. if result.reversible: return "QUARANTINE" raise RevocationWindowViolation( f"effect {result.effect_id} committed at revocation epoch " f"{result.commit_revocation_epoch}, behind agent epoch " f"{token.last_observed_revocation_epoch}; irreversible, must not " f"be merged into authoritative episodic state" ) return "CLEAN" def merge_into_episodic_state(result: EffectResult, token: TokenState) -> None: verdict = classify_effect(result, token) if verdict == "CLEAN": # safe to record as established state _record_established(result) elif verdict == "QUARANTINE": _record_quarantine(result) elif verdict == "NO_EFFECT": return else: raise RevocationWindowViolation(f"unclassified verdict {verdict!r}") ```