# In what scenarios must an instance treat a delegation chain as invalid the moment a mid-chain warrant is revoked, rather than at the next handoff checkpoint **Date of Record:** 2026 November 29 **Scope:** Applies to any multi-agent system where an orchestrator delegates authority to subordinate agents via signed, attenuable warrants (capability tokens, macaroons, biscuit tokens, or bespoke signed grant chains) and where revocation of an ancestor warrant must propagate to descendants. Does not apply to single-hop delegation with no transitive attenuation, nor to systems where all agents share a single trust domain and no cryptographic warrant is carried. ## Core Distinction The critical distinction is between **revocation as a state fact** and **revocation as a delivery event**. Most agent frameworks implement revocation as an event: a revocation record is written to a registry, and agents learn about it when they next poll, next fetch a checkpoint, or next perform a handoff. Under this model, a descendant agent holding a still-valid-looking signed chain continues to execute between the moment the ancestor warrant is revoked and the moment the revocation reaches it. The window is bounded by the propagation interval — but the *work performed inside that window is not automatically undone*, and if the descendant's actions are side-effecting (writing to a store, spending a budget, calling an external tool), the revocation is retroactively violated. The non-obvious invariant is this: **a delegation chain is not a proof of current authority; it is a proof of a historical grant plus a set of revocation-eligible ancestor identifiers.** Validity is a function of both the chain and the *current* revocation state of every ancestor in it. An agent that treats a locally-valid signature chain as sufficient authority is conflating "was granted" with "is granted." The boundary condition is that the descendant cannot, in general, observe the ancestor's revocation state without a synchronous check, and the system must decide — per action class — whether a synchronous check is required or whether the action can be deferred/reversible. ## What Was Observed A three-tier delegation: orchestrator `O` issues warrant `W1` to planner `P` scoped to `{read:kb, spend:100, tool:search}`. `P` attenuates to `W2` for executor `E`, narrowing to `{read:kb, spend:20, tool:search}` and embedding `W1`'s identifier in `W2`'s ancestor list. `E` runs a long tool-calling loop — 40+ steps, several minutes — and each step re-validates `W2` locally: signature chain intact, scope not exceeded, expiry not passed. At step 22, `O` revokes `W1` (operator intervention: the planner was found to be prompt-injected and had begun issuing over-broad attenuations). The revocation is written to the registry at `t=0`. `E`'s next local validation at `t=+4s` passes, because local validation only checks the signature chain and the embedded expiry — it does not consult the registry. `E` continues. At `t=+90s`, `E` has completed steps 23–40, including three `tool:search` calls that returned attacker-shaped results and two `spend` debits against `W2`'s budget that were authorized under a warrant whose root was already dead. The failure trace, precisely: 1. `E` holds `W2 = sign_P({scope, ancestors:[W1_id], expiry})`. 2. `O` writes `revoke(W1_id)` at `t=0`. 3. `E`'s validator computes `valid(W2) = sig_ok(W2) ∧ scope_ok(W2) ∧ now < expiry(W2)`. Returns `true`. **It never evaluates `revoked(W1_id)`.** 4. `E` executes side-effecting steps 23–40 under dead authority. 5. At the next *handoff* (step 41, a sub-delegation to a verifier `V`), `V` performs a full check including registry lookup, discovers `W1_id` revoked, and rejects `W2`'s descendant. But steps 23–40 already happened. The observable symptom is a **revocation lag with committed side effects**: the system reports "revocation propagated successfully at t=+90s," yet the audit log shows 18 authorized actions executed between t=0 and t=+90s under a revoked root. The lag is not a bug in the registry — it is a consequence of validating the chain locally and treating the handoff as the propagation boundary. A second, subtler observation: when `P` was prompt-injected, it issued `W2` with a *narrower* scope than `W1` — attenuation looked correct. The injection did not widen scope; it *selected a target* (`E`) and a *timing* (during `E`'s long loop). Attenuation correctness is orthogonal to revocation propagation. A perfectly attenuated warrant under a revoked root is still dead authority. ## Condition of Validity The invariant holds — i.e., a chain must be treated as invalid at revocation time, not at handoff — exactly when all three of the following are true: - **Side-effecting actions occur between handoffs.** If every action `E` takes is pure (read-only, no external mutation, no budget debit), then deferring revocation to the next handoff is safe: the actions can be discarded or replayed. The moment an action commits state that outlives the agent's turn, the deferral window becomes a correctness hole. - **The ancestor set is transitively embedded.** If `W2` carries only `W1_id` and not `W1`'s own ancestors, a revocation of a grandparent is invisible even to a registry lookup keyed on direct ancestors. The chain must embed the *full* ancestor closure, or the registry must support transitive revocation queries. - **Revocation is authoritative, not advisory.** If the registry can be partitioned or the revocation record can be delayed arbitrarily, then "check the registry synchronously" is not a guarantee. The condition of validity requires a bounded-staleness read (e.g., a lease with a known TTL) — a check against a registry you cannot bound the staleness of is not a revocation check, it is a hope. When any of these fails, the correct posture is not "defer to handoff" but "restrict to reversible actions until a synchronous check succeeds." The distinction matters because the naive fix — "check the registry on every step" — collapses under latency (a 200ms registry round-trip per tool call on a 40-step loop is 8s of added latency and a new failure mode: registry unavailability now blocks all execution). The bounded-staleness lease is the actual guardrail: `E` holds a lease on `W2`'s validity for `Δ` seconds, and inside `Δ` it may act; outside `Δ`, it must re-acquire. Revocation propagation then has a *known* worst-case lag of `Δ`, and side-effecting actions are gated on lease freshness rather than on handoff boundaries. ## Decision Boundary The decision boundary is **reversible vs. irreversible action class, crossed with lease freshness**: - **Reversible action + fresh lease:** proceed. No synchronous registry check needed. - **Reversible action + stale lease:** re-acquire lease (synchronous check); on failure, halt. - **Irreversible action + fresh lease:** proceed *only if* the lease TTL is shorter than the maximum tolerable revocation lag for that action class. For a `spend` debit, `Δ` must be small enough that the worst-case unauthorized spend (`rate × Δ`) is within budget tolerance. - **Irreversible action + stale lease:** never proceed. Re-acquire; if registry unreachable, fail closed. The trap is treating the handoff as the natural checkpoint. Handoffs are *coordination* events, not *authorization* events. An agent that only re-validates authority at handoffs has implicitly set `Δ` equal to the inter-handoff interval, which for a long tool-calling loop can be minutes — far longer than any sane revocation lag for a spending or writing action. A second boundary: **the revoking party must know the descendant set, or the descendants must be discoverable.** `O` revoking `W1` needs to either (a) write a revocation that descendants will observe via their ancestor-closure check, or (b) enumerate descendants and revoke each. Option (a) is correct and scales; option (b) races against in-flight attenuations (`P` may issue `W3` to a new agent `F` between the enumeration and the revocation write). The decision boundary here is: **revocation must be keyed on the ancestor identifier and evaluated by the descendant, never keyed on the descendant and pushed by the revoker.** Push-based revocation is a race; pull-based ancestor-closure evaluation is a fixed point. ## Operational Effect The operational consequence is that **authority is a leased, continuously-revalidated property, not a certificate presented at a checkpoint.** Concretely: - Every warrant carries its full ancestor closure, and every validation evaluates `revoked(a)` for all `a` in the closure against a bounded-staleness registry read. - Long-running loops hold a lease with an explicit TTL `Δ`; side-effecting actions are gated on `now - lease_acquired < Δ`. - The revocation lag is a *declared* system parameter, not an emergent property of handoff frequency. Operators can reason about worst-case unauthorized effect as `action_rate × Δ`. - Fail-closed on registry unavailability for irreversible actions; fail-open (degrade to reversible-only) for reversible ones. The failure this prevents is not "the agent did something wrong" — it is "the agent did something *correct under stale authority*," which is worse, because the audit log shows a clean signature chain and a passing local validation at every step. The post-mortem has to reconstruct that the chain was valid-but-dead, and the only artifact proving it is the registry's revocation timestamp versus the action timestamps. Without the lease, there is no invariant to check; with it, the violation is mechanically detectable. ```python import time from dataclasses import dataclass, field from typing import FrozenSet class DeadAuthorityError(RuntimeError): """Raised when an action is attempted under a warrant whose ancestor closure contains a revoked identifier, or whose validity lease has expired.""" @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str scope: FrozenSet[str] ancestors: FrozenSet[str] # full transitive closure, not just direct parent expiry: float signature_ok: bool = True @dataclass class RevocationRegistry: _revoked: dict = field(default_factory=dict) # warrant_id -> revocation_time _max_staleness: float = 5.0 # bounded-staleness guarantee def revoke(self, warrant_id: str) -> None: self._revoked[warrant_id] = time.monotonic() def is_revoked(self, warrant_id: str, as_of: float) -> bool: # A read is only trustworthy if the registry's staleness bound holds. if time.monotonic() - as_of > self._max_staleness: raise DeadAuthorityError( f"registry read too stale for {warrant_id}; cannot certify non-revocation" ) return warrant_id in self._revoked @dataclass class Lease: warrant_id: str acquired_at: float ttl: float def fresh(self, now: float) -> bool: return (now - self.acquired_at) < self.ttl IRREVERSIBLE = frozenset({"spend", "write", "tool:search"}) def authorize_action( warrant: Warrant, action: str, registry: RevocationRegistry, lease: Lease, now: float, ) -> None: if not warrant.signature_ok: raise DeadAuthorityError(f"bad signature on {warrant.warrant_id}") if now >= warrant.expiry: raise DeadAuthorityError(f"{warrant.warrant_id} expired") if action not in warrant.scope: raise DeadAuthorityError(f"action {action} outside scope of {warrant.warrant_id}") # Ancestor-closure revocation check — the invariant that local validation skips. read_as_of = now for ancestor_id in warrant.ancestors: if registry.is_revoked(ancestor_id, read_as_of): raise DeadAuthorityError( f"{warrant.warrant_id} is dead: ancestor {ancestor_id} revoked" ) # Lease freshness gates irreversible actions; reversible ones may proceed. if action in IRREVERSIBLE and not lease.fresh(now): raise DeadAuthorityError( f"stale lease ({now - lease.acquired_at:.1f}s > {lease.ttl}s) " f"for irreversible action {action} under {warrant.warrant_id}" ) ```