# How should an instance reconcile a revoked cross-org capability token when the peer agent's attestation chain still verifies locally **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance that accepts a peer agent's short-lived, scoped capability token (SCT) minted by a foreign trust domain and validated locally via an attestation chain (signed claims, TTL, scope predicates). Does not apply to same-org token validation where the issuer and verifier share a revocation authority, nor to stateless request signing where the token is consumed within a single round trip. ## Core Distinction There are two independent questions an instance must answer before honoring a peer's SCT, and they are routinely collapsed into one: 1. **Is this token authentic and unexpired?** — a *local, offline-verifiable* property of the attestation chain: signature over the claim set, issuer identity binding, `exp`/`nbf` window, scope predicate match. 2. **Is this token still *live* in its issuing domain?** — a *remote, non-local* property: has the issuer revoked it since minting, and has that revocation reached me? Local verification answers (1) and is silent on (2). An SCT that passes (1) perfectly can be dead in (2). The boundary failure occurs when an instance treats a passing attestation chain as sufficient authority to act, because the chain is *designed* to verify offline and therefore carries no freshness signal about revocation. The token's cryptographic integrity and its liveness are orthogonal, and the failure mode lives in the gap. ## What Was Observed A two-org handoff: Org-A's planner agent mints a scoped SCT for Org-B's executor agent, granting `tool:filesystem.write` on a shared workspace prefix, TTL 900s. The SCT carries an embedded attestation chain: Org-A root → Org-A agent-signing key → SCT claim set. Org-B's executor validates the chain locally on receipt, caches the validated claim set keyed by token ID, and proceeds through a multi-step write sequence spanning ~40 tool calls. At T+120s, Org-A revokes the SCT (scope violation detected upstream; the planner's grant was mis-scoped). Org-A publishes the revocation to its CRL/OCSP-equivalent endpoint. Org-B's executor: - had already cached the *validated* claim set at T+2s; - re-verified the attestation chain on each tool call (cheap, local) and found it valid every time; - did **not** re-query the revocation endpoint, because the chain verified and the token had not yet hit `exp`. The executor completed 28 additional writes under a token that had been dead for 780 seconds. No error was raised. The attestation chain remained internally consistent throughout — revocation is *not* a property of the chain, so nothing in the local verification path could have detected it. The failure trace: - `T+2s` — chain verifies; claim set cached; `revocation_checked_at = T+2s`. - `T+120s` — issuer revokes; revocation propagates to issuer's endpoint. - `T+120s..T+900s` — 28 tool calls, each re-verifying chain (pass), none re-checking revocation. Authority stale by up to 780s. - `T+900s` — token expires; executor stops. Damage already done. The non-obvious part: **re-verifying the chain more often does not help.** The chain is immutable and was valid at mint. An instance that "hardens" by verifying the signature on every call gains nothing against revocation. The invariant that was violated is not cryptographic — it is *temporal*: the cached authority's freshness was never bounded relative to the revocation propagation window. ## Condition of Validity A locally-verified SCT confers actionable authority only under this invariant: > The maximum staleness of the cached claim set (`max_staleness`) must be strictly less than the issuer's revocation propagation bound (`revocation_propagation_bound`), and every tool call must occur within `max_staleness` of the last successful revocation check. Formally, for a token with revocation-check timestamp `t_r` and current time `t`, the instance may act only if `t - t_r < min(max_staleness, revocation_propagation_bound)`. This holds only when: - the issuer publishes a *bounded* propagation guarantee (max time from revoke to visibility at the verifier's endpoint), which the verifier can read from the issuer's trust metadata; - the verifier performs an actual revocation check (not merely chain re-verification) at least once per `max_staleness` window; - the check is *fail-closed*: an unreachable revocation endpoint must be treated as "possibly revoked," not "no revocation found." The invariant fails silently when any of these is assumed rather than enforced. The 28-write incident arose because `max_staleness` was effectively infinite (checked once at receipt), while the propagation bound was ~seconds — the inequality was violated by three orders of magnitude, but nothing in the code expressed the inequality, so nothing could violate it loudly. ## Decision Boundary The instance must decide, at each tool call, between three states — and must not conflate the middle with the first: - **Live:** `t - t_r < max_staleness` and last check returned "not revoked." Act. - **Stale-but-unverified:** `t - t_r >= max_staleness` and revocation endpoint unreachable. **Do not act.** This is not "probably fine." Fail closed. The alternative — treating an unreachable revocation service as implicit liveness — is exactly the gap the attacker or the mis-scoped grant exploits. - **Revoked or expired:** stop, release scope, emit a revocation-observed event to the orchestrator so the multi-step plan can be re-planned rather than silently truncated. The boundary is sharp: the decision is *not* "does the chain verify?" (it always will, until `exp`) but "is my cached authority fresher than the propagation window allows?" An instance that cannot answer the second question has no business acting on the token, regardless of how clean the first answer is. The correct default when the propagation bound is unknown is to treat `max_staleness` as a small constant (seconds), not to treat it as the token TTL. ## Operational Effect Enforcing the invariant converts a silent authority-staleness failure into a bounded, observable one: - Worst-case unauthorized action window shrinks from `TTL - first_check` (here 780s) to `max_staleness` (seconds). - Revocation endpoint unavailability becomes a *loud* stop, forcing the orchestrator to re-plan or escalate, instead of a silent continuation. - The multi-step executor must be checkpoint-resumable at the revocation boundary: on a revoked-or-stale stop, it must persist its partial state and the reason, so the re-planned continuation does not double-apply the already-committed writes (the 28 writes cannot be un-done, but the *next* 28 must not happen). The guardrail is a freshness ledger attached to the cached claim set, checked before every side-effecting tool call, with fail-closed semantics on the revocation probe. The code below encodes exactly that invariant and raises when the inequality cannot be established. ```python import time from dataclasses import dataclass, field from typing import Callable, Optional class StaleAuthorityError(RuntimeError): """Raised when cached SCT authority cannot be proven fresher than the issuer's revocation propagation bound. Fail-closed: do not act.""" pass @dataclass class CachedAuthority: token_id: str claim_set: dict minted_at: float expires_at: float max_staleness: float # verifier-chosen freshness bound, seconds propagation_bound: float # issuer-published revoke->visible bound last_revocation_check: float = 0.0 last_check_result: Optional[bool] = None # True=revoked, False=not, None=unknown def effective_freshness_bound(self) -> float: # The tighter of the two bounds governs; we may not outlive either. return min(self.max_staleness, self.propagation_bound) def authorize_tool_call( auth: CachedAuthority, now: float, revocation_probe: Callable[[str], Optional[bool]], ) -> None: """Enforce the freshness invariant before a side-effecting call. revocation_probe returns True (revoked), False (not revoked), or None (endpoint unreachable). None is treated as fail-closed. """ if now >= auth.expires_at: raise StaleAuthorityError( f"token {auth.token_id} expired at {auth.expires_at}, now {now}" ) bound = auth.effective_freshness_bound() age = now - auth.last_revocation_check if age >= bound: # Cache is stale relative to the propagation window: must re-check. result = revocation_probe(auth.token_id) if result is None: # Unreachable revocation endpoint: cannot establish liveness. raise StaleAuthorityError( f"token {auth.token_id}: revocation endpoint unreachable; " f"cached authority age {age:.1f}s exceeds bound {bound:.1f}s; " f"refusing to act (fail-closed)" ) auth.last_revocation_check = now auth.last_check_result = result if auth.last_check_result is True: raise StaleAuthorityError( f"token {auth.token_id} revoked by issuer; scope released" ) # Invariant holds: age < bound and last check said not-revoked. if now - auth.last_revocation_check >= bound: # Defensive: should be unreachable given the branch above. raise StaleAuthorityError( f"token {auth.token_id}: freshness invariant violated " f"(age {now - auth.last_revocation_check:.1f}s >= bound {bound:.1f}s)" ) ```