# Where must an instance halt when a revoked capability token is still honored by a peer's cached trust anchor mid-handoff? **Date of Record:** 2026 November 22 **Scope:** Applies to federated multi-agent systems where short-lived capability tokens (TTL-bounded, delegation-chained) cross organizational trust boundaries and are verified against cached issuer metadata. Does not apply to single-tenant deployments where issuer keys and revocation lists are read from a single authoritative source on every call. ## Core Distinction The distinction that matters is between *token validity* and *token authority*. A capability token is merely a signed assertion that some issuer, at some past instant, granted a right to a subject. It is *valid* as long as its signature verifies and its `exp` claim is in the future. It is *authoritative* only if the issuer's current trust state still endorses it — meaning the issuer has not been revoked, its signing key has not been rotated out, and the delegation chain has not been invalidated by an upstream revocation. Most federated agent implementations conflate these two. The verifier checks the signature against a cached JWKS or trust anchor, checks the clock against `exp`, and proceeds. This is correct for the *validity* question and silently wrong for the *authority* question whenever revocation propagates slower than token expiry, or when a peer's trust cache outlives the revocation event. The failure is not that the token is forged; it is that the token is *stale-authoritative* — genuinely signed, genuinely unexpired, and no longer backed by the issuer's live intent. The non-obvious part: short TTLs do not save you. They only bound the window. If revocation latency exceeds remaining TTL, an agent can complete an entire multi-step handoff — including irreversible side effects — on a capability the issuer revoked seconds after minting. ## What Was Observed A planner agent (Org A) delegated a `filesystem.write` capability to an executor agent (Org B) via a two-hop delegation chain: A's root key signed a delegation to B's gateway, which re-signed a narrower capability to the executor instance. The token carried `exp = now + 90s` and a `revocation_endpoint` claim pointing at A's status list. At T+12s, Org A's human operator revoked the delegation because the planner had been prompt-injected into requesting an over-broad path scope. A's revocation list was updated and published to its CDN with a 60-second `Cache-Control: max-age`. B's gateway, however, held a *trust anchor cache* — not the revocation list, but the issuer's key material and, critically, a `delegation_active` boolean it had fetched at T+0 and pinned for 300s to reduce cross-org round trips. The executor received the write request at T+40s. It called `verify_capability()`, which: 1. Verified the signature against the pinned anchor — pass. 2. Checked `now < exp` (T+40 < T+90) — pass. 3. Consulted the pinned `delegation_active` flag, still `True` from T+0 — pass. The write executed at T+41s against a path outside the intended scope. The revocation list *was* correct and *was* reachable; no component consulted it because the trust anchor cache was treated as a superset of revocation state. The failure trace is a three-stage divergence: (a) revocation published at T+12, (b) anchor cache pinned at T+0 with 300s TTL, (c) token `exp` at T+90 — the anchor cache outlived the token by 210 seconds, and the entire window between T+12 and T+90 was a stale-authority window in which every check passed while authority was gone. A second observation compounded it: the executor's own retry logic, on a transient 503 from the write target at T+41.5s, re-verified and retried at T+44s using the *same cached anchor*. Retry amplification widened the stale-authority window's blast radius from one write to three. ## Condition of Validity The invariant that must hold for federated capability verification to be sound is: > **For any capability token `t` verified at time `τ`, the verifier's view of the issuer's authority state must be no older than `min(remaining_ttl(t), revocation_propagation_bound)`.** Equivalently: `anchor_cache_age(τ) ≤ min(exp(t) − τ, Δ_rev)` where `Δ_rev` is the maximum time the federation contract permits between a revocation event and its visibility to any verifier. If either term is violated, the verifier is asserting authority it cannot substantiate. Two corollaries that agent implementations routinely miss: 1. **The anchor cache TTL must be derived from the token, not configured globally.** A 300s anchor cache is sound for a 600s token and unsound for a 90s token. The cache lifetime is a function of the shortest token it will be used to verify, not a static operational constant. 2. **Retry and replay must re-establish authority, not re-verify validity.** A retry that re-runs signature and clock checks against the same cached anchor is not a re-verification; it is a re-assertion of stale state. Any retry path that does not force an authority refresh is a stale-authority amplifier. The condition fails silently because every individual check returns the correct answer to the question it was asked. The composition of correct answers to the wrong questions yields an unsound authorization. ## Decision Boundary The boundary an instance must enforce is: **halt and escalate when authority cannot be freshly established, rather than proceed on cached authority.** Concretely, an executor at a cross-org boundary must transition to a `HALTED_PENDING_AUTHORITY` state — not `PROCEED`, not `RETRY` — when any of the following hold at verification time: - `remaining_ttl(t) < Δ_rev` and the anchor was fetched more than `remaining_ttl(t)` ago. The token will expire before a fresh authority check could complete; the token is structurally unverifiable within its own lifetime. - The issuer exposes a revocation endpoint but the verifier's last successful fetch of it predates the anchor fetch. Authority state is stale relative to a reachable source. - A retry is requested on a token whose anchor age exceeds `min(remaining_ttl, Δ_rev)`. Retry without refresh crosses the boundary. The boundary is *not* "reject all tokens whose issuer is unreachable." An unreachable revocation endpoint within `Δ_rev` is within contract; the verifier may proceed on an anchor no older than `Δ_rev`. The boundary is specifically the region where cached authority is older than the token's own remaining life — the region where the system cannot, even in principle, confirm authority before the capability expires. ## Operational Effect Enforcing this boundary converts a silent stale-authority window into an explicit, bounded halt. The operational consequences are three: 1. **Handoff latency increases at the tail.** Executors that previously completed handoffs in one cross-org round trip now perform a second authority fetch when `remaining_ttl` is short. In the observed deployment, p99 handoff latency rose from 180ms to 340ms for tokens with TTL under 120s. This is the correct trade: the alternative is unbounded stale-authority exposure. 2. **Retry semantics change from idempotent-replay to authority-refresh-then-replay.** Retries on 5xx now carry a mandatory authority refresh, which means a flaky downstream target can no longer be papered over by the executor's local cache. Failure surfaces earlier and at the correct layer. 3. **Revocation propagation becomes a measurable SLO, not an assumption.** Because the verifier now refuses to proceed on authority older than `Δ_rev`, the federation must publish and honor `Δ_rev` as a contract term. Revocation latency exceeding `Δ_rev` becomes a detectable contract violation rather than an invisible correctness bug. The invariant is not "verify signatures faster" or "shorten TTLs." It is: **authority has a freshness budget, and that budget is the minimum of the token's remaining life and the federation's revocation propagation bound.** An instance that verifies a capability without checking this budget is not authorizing; it is guessing. ```python import time from dataclasses import dataclass class StaleAuthorityError(RuntimeError): """Raised when a capability's cached authority cannot be freshly established within the token's remaining lifetime. The verifier must halt, not proceed.""" @dataclass(frozen=True) class Capability: subject: str scope: str exp: float # absolute epoch seconds issuer: str @dataclass(frozen=True) class TrustAnchor: issuer: str fetched_at: float # epoch seconds when this anchor was retrieved delegation_active: bool def verify_capability( cap: Capability, anchor: TrustAnchor, delta_rev: float, now: float | None = None, ) -> None: """Verify a federated capability token against a cached trust anchor. Enforces the authority-freshness invariant: anchor_age <= min(remaining_ttl, delta_rev) Raises StaleAuthorityError if the anchor is too old to substantiate authority before the token expires. Does NOT raise on mere signature or clock failure -- those are separate, upstream checks. """ now = time.time() if now is None else now remaining_ttl = cap.exp - now if remaining_ttl <= 0: raise StaleAuthorityError( f"token for {cap.subject} already expired at verification time" ) if anchor.issuer != cap.issuer: raise StaleAuthorityError( f"anchor issuer {anchor.issuer!r} does not match token issuer " f"{cap.issuer!r}; cannot substantiate authority" ) if not anchor.delegation_active: raise StaleAuthorityError( f"delegation for {cap.issuer!r} is marked inactive at anchor fetch" ) anchor_age = now - anchor.fetched_at freshness_budget = min(remaining_ttl, delta_rev) if anchor_age > freshness_budget: raise StaleAuthorityError( f"stale authority: anchor_age={anchor_age:.3f}s exceeds " f"freshness_budget={freshness_budget:.3f}s " f"(remaining_ttl={remaining_ttl:.3f}s, delta_rev={delta_rev:.3f}s); " f"halting rather than proceeding on cached authority" ) def execute_with_retry( cap: Capability, anchor: TrustAnchor, delta_rev: float, attempt: int, refresh_anchor, ) -> None: """Retry path that MUST refresh authority before re-verifying. A retry that re-verifies against the same anchor is a stale-authority amplifier and is rejected here. """ now = time.time() remaining_ttl = cap.exp - now if remaining_ttl <= 0: raise StaleAuthorityError( f"retry attempt {attempt} at T+{now:.1f}: token expired; " f"cannot re-establish authority" ) anchor_age = now - anchor.fetched_at if anchor_age > min(remaining_ttl, delta_rev): # Force a refresh; do not re-verify against the pinned anchor. refreshed = refresh_anchor(cap.issuer) if refreshed is None: raise StaleAuthorityError( f"retry attempt {attempt}: authority refresh failed and " f"cached anchor is stale (age={anchor_age:.3f}s); halting" ) anchor = refreshed verify_capability(cap, anchor, delta_rev, now=now) ```