# Which invariants prevent capability de-escalation from being bypassed by stale warrants in AAIF trust chains **Date of Record:** 2026 December 3 **Scope:** Applies to federated agent deployments where an AAIF (Agent Authority & Identity Federation) trust chain carries signed warrants across three or more hops and a mid-chain issuer revokes or de-escalates a capability. Does not apply to single-issuer, single-hop delegation, nor to purely local capability tokens that never cross an issuer boundary. ## Core Distinction The failure surface here is not "can a revoked agent still authenticate." It is subtler: **a downstream agent can present a cryptographically valid, unexpired warrant that attests to a capability its upstream issuer has already de-escalated.** The warrant's signature verifies, its `exp` is in the future, its chain of `iss`/`sub` links is intact — and yet the capability it conveys no longer reflects the issuer's current authority state. This is the difference between *revocation* (the identity is dead) and *de-escalation* (the identity lives, but a specific capability grant has been narrowed). Federated trust chains are usually built to propagate the first and silently fail to propagate the second. A revocation list is a deny-set that downstream verifiers check against the *subject*. A de-escalation is a *narrowing of the grant set* that must be re-evaluated at every hop, against the issuer's live authority, not against the warrant's embedded claims. The invariant that actually holds the system together is: **a warrant's effective capability at hop N is the intersection of the capability asserted in the warrant and the issuer's capability state at verification time — not the capability asserted at issuance time.** Any chain that treats the warrant's embedded capability as authoritative after issuance is one de-escalation event away from a privilege that outlives its grant. ## What Was Observed A three-hop delegation was exercised repeatedly under a fault-injection harness: - **Hop 0 (root issuer `R`)** issues warrant `W0` to orchestrator `O`, granting `capability = {read, write, delegate, spawn_worker}` with `exp = T+3600s`. - **Hop 1 (`O`)** issues `W1` to specialist agent `S`, granting `{read, write}` derived from `W0`, with `exp = T+1800s`. - **Hop 2 (`S`)** issues `W2` to worker `W`, granting `{read}`. At `T+600s`, root `R` de-escalates `O` from `{read, write, delegate, spawn_worker}` to `{read}` — `O` may still read, may no longer write, delegate, or spawn. `R` publishes this as a *capability-state update* (a signed `cap_state` record keyed by `O`'s identity), **not** as a revocation of `O`. The observed trace: 1. `W` presents `W2` to a resource server `RS`. `RS` walks the chain `W2 → W1 → W0`, verifies every signature, checks `exp` on each (all valid), and checks `R`'s revocation set for `O` and `S` (neither revoked). Chain validates. 2. `W` then *itself* exercises `write` — not the `read` in `W2`, but a `write` it obtained by re-deriving from `W1`'s embedded capability set, which `S` had cached at hop 1 issuance. `W1` still literally asserts `write`. 3. `RS` accepts the write. `O`'s de-escalation at `T+600s` never reaches the decision, because no hop re-queries `R`'s `cap_state` for `O` at verification time. The warrant chain was, in the narrow cryptographic sense, entirely valid. The authority it conveyed was stale by 600 seconds. The failure is not a forgery; it is a **time-of-check / time-of-use gap on the capability grant itself**, where the "check" happened at issuance and the "use" happens at an arbitrary later instant against a grant that has since narrowed. A second, compounding observation: when `S` did attempt to re-derive capabilities from `R`'s live `cap_state`, it queried the *nearest* issuer in its chain (`O`), not the *root* (`R`). `O`'s local capability view was itself a cache populated at `T+0` and never invalidated by the `T+600s` update — `O` had no subscription to its own de-escalation event. So `S` received a stale answer from a stale cache, and the intersection it computed was `{read, write}` instead of `{read}`. ## Condition of Validity The guardrail that bounds this failure is a **capability-intersection invariant with root-anchored re-validation**, stated precisely: > For any warrant chain `W_k → … → W_0` presented at verification time `t`, the effective capability granted to the leaf is > `⋂_{i=0..k} live_cap(issuer_i, t) ∩ asserted_cap(W_i)` > where `live_cap(x, t)` is the issuer's signed capability state at `t`, resolved from the **root authority**, not from any intermediate cache. This invariant is *not* satisfied by the common pattern of "verify signature, check expiry, check revocation list." It requires three additional properties, each of which is a distinct place the observed system broke: 1. **De-escalation is a first-class propagated event, not an implicit absence of revocation.** The `cap_state` update must be *pushed* (or pulled with a bounded staleness window) to every hop that holds a warrant derived from the de-escalated grant. A cache that is only invalidated on revocation misses de-escalation entirely. 2. **Re-validation is root-anchored.** An intermediate issuer's cached view of its own capability is not authoritative for its own de-escalation — the root's `cap_state` is. Hop 1's cache answering Hop 2's query is the specific defect that let `S` hand `write` to `W`. 3. **Intersection, not substitution.** The leaf's effective capability is the intersection of every hop's live capability with every asserted capability. A single hop that re-derives from its own stale cache and returns a *superset* must be clamped by the intersection, not trusted as the chain's answer. The validity condition holds only when the staleness bound `Δt` on `cap_state` propagation is strictly less than the minimum remaining `exp` of any warrant in the chain that could be used to exercise the de-escalated capability. If `Δt ≥ remaining_exp`, the invariant cannot be enforced by propagation alone and the verifier must fall back to synchronous root query at use time. ## Decision Boundary The decision boundary is whether to **fail closed on stale capability state** or **fail open on a valid-but-stale warrant**. The correct boundary is a function of the *capability's blast radius*, not the warrant's cryptographic validity: - **Fail closed** (reject, force re-issuance) when the asserted capability includes any authority the issuer has *ever* been observed to de-escalate, or when the capability is in a high-blast-radius class (`write`, `delegate`, `spawn_worker`, `transfer`). Here, `W1`'s cached `write` must be rejected at `RS` the moment `R`'s `cap_state` for `O` no longer contains `write`, regardless of `W1`'s `exp`. - **Fail open with bounded staleness** only for read-only, idempotent, low-blast-radius capabilities where a `Δt`-stale grant cannot cause irreversible state change. `read` may tolerate a propagation window; `write` may not. The boundary is *not* "is the warrant expired." A warrant can be unexpired and stale. The boundary is "does the leaf's effective capability, computed by root-anchored intersection at use time, still contain the capability being exercised." If that computation is unavailable (root unreachable, `cap_state` too stale), the safe default for high-blast-radius capabilities is rejection — a valid signature is not a license to act on a grant the issuer may have withdrawn. A second boundary applies to the intermediate cache: an issuer's cache of its *own* capability must be invalidated by its *own* de-escalation event before it answers any downstream re-derivation query. If the cache cannot be invalidated within `Δt`, it must refuse to answer (return "unknown, query root") rather than answer from stale state. Answering from a stale self-view is the precise mechanism that produced the `{read, write}` superset. ## Operational Effect The practical consequence is that **AAIF trust chains must carry capability state as a live, root-anchored, intersection-computed quantity rather than as an issuance-time assertion embedded in the warrant.** Concretely: - Warrants should assert the *maximum* capability the issuer *could* grant, and every verifier must clamp to `live_cap` at use time. The warrant is a ceiling, not a floor. - De-escalation must be a propagated, subscribed event with a bounded `Δt`, distinct from revocation, and must invalidate intermediate self-caches before they serve re-derivation queries. - Verifiers must compute the intersection across all hops against root-anchored live state, and must fail closed for high-blast-radius capabilities when that computation is stale or unavailable. The failure mode is quiet: no signature fails, no expiry trips, no revocation list is consulted in vain. The system grants a capability the issuer withdrew ten minutes ago because the warrant remembered a grant the issuer had forgotten. The invariant that prevents it is the one that treats every warrant as a *claim about the past* and every use as a *query about the present* — and refuses to let the past answer for the present when the capability's blast radius is large enough that being wrong is unrecoverable. ```python class StaleCapabilityWarrantError(RuntimeError): """Raised when a warrant asserts a capability the root issuer has de-escalated.""" pass class CapabilityStateUnavailableError(RuntimeError): """Raised when root-anchored cap_state cannot be resolved within the staleness bound.""" pass HIGH_BLAST_RADIUS = frozenset({"write", "delegate", "spawn_worker", "transfer"}) def effective_capability(chain, root_cap_state, now, max_staleness_s): """ chain: list of warrants ordered leaf -> root. root_cap_state: {issuer_id: {"caps": set, "updated_at": float}} Returns the root-anchored intersection of live and asserted capabilities. """ effective = None for warrant in chain: issuer = warrant.iss state = root_cap_state.get(issuer) if state is None: raise CapabilityStateUnavailableError( f"no root cap_state for issuer {issuer!r}; cannot verify hop" ) if now - state["updated_at"] > max_staleness_s: raise CapabilityStateUnavailableError( f"cap_state for {issuer!r} stale by " f"{now - state['updated_at']:.0f}s > {max_staleness_s}s" ) hop_caps = state["caps"] & warrant.asserted_caps effective = hop_caps if effective is None else (effective & hop_caps) if effective is None: raise StaleCapabilityWarrantError("empty chain") # Enforce fail-closed for high-blast-radius caps whose live state narrowed. for cap in effective: if cap in HIGH_BLAST_RADIUS: for warrant in chain: if cap in warrant.asserted_caps and cap not in root_cap_state[warrant.iss]["caps"]: raise StaleCapabilityWarrantError( f"capability {cap!r} asserted by {warrant.iss!r} " f"but de-escalated at root; refusing high-blast-radius use" ) return effective def exercise_capability(chain, root_cap_state, requested, now, max_staleness_s): granted = effective_capability(chain, root_cap_state, now, max_staleness_s) if requested not in granted: raise StaleCapabilityWarrantError( f"requested {requested!r} not in root-anchored effective set {sorted(granted)}" ) return True ```