# Which invariants prevent an attenuated delegatee from executing on a revoked parent warrant during a mid-flight delegation handoff **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where a delegator agent issues a scoped, attenuated warrant (capability token) to a delegatee agent, and where the delegator's own authority may be revoked while the delegatee holds an in-flight task. Does not cover single-agent tool-use authorization, nor static RBAC without delegation chains. ## Core Distinction A capability warrant is not a boolean; it is a *transitive proof obligation*. When Agent A delegates to Agent B with attenuation (B's authority ⊆ A's authority), B's execution right is derived, not granted. The non-obvious boundary is that **revocation of A's warrant does not automatically propagate to B's already-issued token** unless the token itself carries a revocation-check obligation that is re-evaluated at execution time. Most delegation protocols (macaroon-style, biscuit-style, or bespoke JWT chains) encode the *chain* but treat the leaf token as a bearer credential valid until expiry. The failure mode: A's warrant is revoked at T₀; B's attenuated token, minted before T₀ with a TTL extending past T₀, remains cryptographically valid; B executes a side-effecting tool call at T₁ > T₀ against authority that no longer exists at the root. This is not a signature failure — every signature verifies. It is a *derivation freshness* failure: the proof of B's authority was computed against a parent state that has since been invalidated. The invariant that must hold is: **for every execution, the delegatee must verify not only that its token chains to a root, but that every link in that chain is currently non-revoked at the moment of execution, not the moment of issuance.** Attenuation without mandatory re-validation at the leaf is a stale-authority hazard. ## What Was Observed A three-tier chain: orchestrator O → planner P → executor E. O holds a root warrant W_O scoped to `write:repo/foo` with TTL 3600s. O delegates to P an attenuated warrant W_P = W_O ⊓ {write:repo/foo/bar, TTL 1800s}. P, mid-task, delegates to E an attenuated warrant W_E = W_P ⊓ {write:repo/foo/bar/file.txt, TTL 900s}. Each token embeds the full chain (W_E carries W_P carries W_O) and each is signed. E begins a long-running edit loop. At T=400s, an out-of-band auditor revokes W_O (credential compromise on O). The revocation service publishes a revocation entry keyed on W_O's token ID. P and E are never notified — there is no push channel; the protocol assumes pull-based checks. E's local validation on each tool call does the following: parse W_E, verify signature, verify W_E ⊆ W_P ⊆ W_O (attenuation monotonicity), verify `now < W_E.expiry`. All pass. E does **not** dereference W_O's revocation status, because W_O is "the root's problem" — E only sees the chain as a static proof. E continues writing to `repo/foo/bar/file.txt` for another 500s under authority that was revoked 500s earlier. The auditor's revocation is *correct and complete at the root* and *entirely ineffective at the leaf*. The observation that makes this a boundary condition rather than a bug: the chain was structurally valid, the attenuation was correct, the signatures were intact, and the TTLs were respected. The failure is invisible to any check that treats the chain as a proof-of-issuance rather than a proof-of-current-authority. A naive auditor replaying the delegation log sees a perfectly legal chain and a perfectly legal execution; only a *temporal join* between the execution timestamp and the revocation timestamp reveals the violation. ## Condition of Validity The stale-authority execution is possible if and only if all of the following hold jointly: 1. **Pull-based revocation with no leaf obligation.** The protocol exposes a revocation list but does not mandate that leaf executors consult it. (If the protocol mandates per-execution revocation checks, the failure is bounded to the check interval.) 2. **Attenuated token TTL exceeds parent revocation latency.** If W_E.expiry ≤ time-to-revoke(W_O) + check-interval, the window is closed. The hazard requires TTL_leaf > revocation propagation bound. 3. **No causal dependency edge from revocation to in-flight task.** The delegatee's task was admitted before revocation and is not re-admitted. If the task queue re-validates on dequeue, the window narrows to the queue latency. 4. **Side effects are not idempotent or are not reversible.** If the write can be undone, the violation is recoverable; if not (e.g., external API call, payment, message send), it is not. The invariant is therefore conditional: it must be enforced as a **check-at-use** obligation on the leaf, not a check-at-mint obligation on the parent. The correct formulation is a *capability with a freshness predicate*: `valid(W_E, t) ⟺ chain_verifies(W_E) ∧ ∀ w ∈ chain(W_E): ¬revoked(w, t)`. The ∀ over the chain, evaluated at `t = execution time`, is the load-bearing clause. Any implementation that evaluates it at `t = mint time` or that evaluates it only for the leaf token is unsound. ## Decision Boundary The architect must choose one of three enforcement placements, and the choice is not free: - **Leaf-check (sound, costly):** Every execution dereferences the revocation set for every ancestor. Cost is O(chain depth) per call; latency is bounded by revocation-list freshness. This is the only placement that closes the window to zero modulo list staleness. - **Push-invalidation (sound, fragile):** Revocation broadcasts invalidate tokens in delegatee caches. Closes the window only if delivery is guaranteed and ordered; a dropped message reopens it. Requires at-least-once delivery with idempotent invalidation, which most agent transports (A2A, MCP notifications) do not guarantee. - **Short-TTL + re-mint (bounded, simple):** Bound W_E.expiry to the revocation propagation SLA and force re-mint (which re-checks the parent) before expiry. This converts an unbounded window into a bounded one equal to the TTL, at the cost of re-mint churn. Acceptable when side effects are reversible or when TTL can be made small relative to task duration. The boundary decision: **if any side effect is irreversible, leaf-check is mandatory**; short-TTL is not sufficient because a single execution inside the TTL window still commits an irreversible act. If all effects are reversible, short-TTL with compensating rollback is defensible. Push-invalidation should never be the sole mechanism for irreversible effects because it depends on a delivery guarantee the agent transport layer does not provide. ## Operational Effect The practical consequence is that delegation chains must carry a **revocation-checkpoint obligation** as a first-class field, not an implicit assumption. Concretely: W_E must include `must_check: [W_O.id, W_P.id]` and the executor's tool-call wrapper must refuse to proceed if any listed ID is present in the revocation set at call time. The wrapper raises a specific, non-retryable error so the orchestrator can re-plan rather than retry into the same revoked authority. Retrying is the dangerous default: a generic `AuthorizationError` invites backoff-and-retry loops that hammer a revoked path and, worse, may succeed if the revocation list is eventually-consistent and briefly stale. The error must be *terminal for the chain*, forcing re-delegation from a live root. Second effect: audit logs must record `(execution_id, chain_ids, execution_timestamp)` and the revocation service must record `(revoked_id, revocation_timestamp)`. The violation is only detectable by joining these; a system that logs execution without chain IDs, or revocation without timestamps, cannot retroactively prove or disprove stale-authority execution. This join is the operational invariant that makes the failure *observable* even when it cannot be *prevented* by construction. ```python import time from dataclasses import dataclass, field from typing import Optional class StaleAuthorityError(RuntimeError): """Raised when a delegatee attempts execution under a chain containing a revoked ancestor.""" class RevocationList: """Pull-based revocation set. Eventually consistent; callers must tolerate staleness.""" def __init__(self) -> None: self._revoked: dict[str, float] = {} def revoke(self, token_id: str, at: Optional[float] = None) -> None: self._revoked[token_id] = at if at is not None else time.time() def is_revoked(self, token_id: str, at: float) -> bool: ts = self._revoked.get(token_id) return ts is not None and ts <= at @dataclass class Warrant: token_id: str scope: str expiry: float chain: list[str] = field(default_factory=list) # ancestor token_ids, root-last def full_chain(self) -> list[str]: return [self.token_id, *self.chain] def execute_under_warrant( warrant: Warrant, revocation_list: RevocationList, now: Optional[float] = None, ) -> str: """ Enforce the freshness predicate: valid(W, t) iff chain verifies AND no ancestor revoked at t. Any implementation that checks only the leaf, or checks at mint time, is unsound. """ t = now if now is not None else time.time() if t >= warrant.expiry: raise StaleAuthorityError( f"warrant {warrant.token_id} expired at {warrant.expiry}, now={t}" ) # The load-bearing clause: check EVERY ancestor at execution time, not just the leaf. for ancestor_id in warrant.full_chain(): if revocation_list.is_revoked(ancestor_id, at=t): raise StaleAuthorityError( f"execution blocked: ancestor {ancestor_id} revoked before t={t}; " f"chain={warrant.full_chain()}; re-delegate from a live root" ) return f"executed {warrant.scope} under {warrant.token_id} at t={t}" # Reproduction of the failure trace: rl = RevocationList() root = Warrant("W_O", "write:repo/foo", expiry=time.time() + 3600) leaf = Warrant("W_E", "write:repo/foo/bar/file.txt", expiry=time.time() + 900, chain=["W_P", "W_O"]) # T=400: root revoked out-of-band. rl.revoke("W_O", at=time.time()) # T=900-ish: leaf still cryptographically valid, but freshness predicate must fail. try: execute_under_warrant(leaf, rl) except StaleAuthorityError as e: print(f"correctly blocked: {e}") # Do NOT retry; re-delegate from a live root. ```