# In what scenarios must an instance refuse to honor a delegated warrant after the delegating agent's revocation, and how does the attenuation chain leak authority through cached sub-warrants? **Date of Record:** 2026 November 28 **Scope:** Applies to multi-hop agent delegation chains where a warrant (capability token) is attenuated at each hop and may be revoked mid-flight by any ancestor. Does not apply to single-hop, non-attenuated capability grants or to stateless tool-call authorization where no chain exists. ## Core Distinction The distinction that matters here is between **revocation of a warrant** and **invalidation of the derived sub-warrants already cached by downstream agents**. Most delegation protocols treat revocation as a point operation on a single token: the issuer marks warrant `W` as revoked, and any agent presenting `W` is rejected. But in an attenuation chain `W0 → W1 → W2 → … → Wn`, each `Wk` is a *narrower* capability derived from `Wk-1`. When `W0` is revoked, the revocation propagates only if every downstream agent re-checks the chain against the issuer at the moment of use. A downstream agent holding a cached, self-contained `W3` — signed, valid, unexpired, and internally consistent — has no local signal that its ancestor `W0` was revoked ten milliseconds ago. The sub-warrant is *cryptographically* valid but *operationally* dead, and the agent cannot tell the difference without a live revocation check that the protocol may not mandate. This is not the same as token expiry. Expiry is a bounded, monotonic property encoded in the token. Revocation is an out-of-band, asynchronous, potentially unbounded event. The failure mode is that attenuation preserves *authority narrowing* but does not preserve *revocation reach*. ## What Was Observed A three-hop delegation chain: orchestrator `A` issues `W0` to planner `B` (scope: `read:repo, write:branch`). `B` attenuates to `W1` for executor `C` (scope: `read:repo` only). `C` attenuates to `W2` for a sandboxed sub-agent `D` (scope: `read:repo:/src/**`). `D` caches `W2` locally with a 300-second TTL and uses it across 40 tool calls. At t=12s, `A` detects that `B` was prompt-injected and revokes `W0`. `A`'s revocation list is published to the registry. `B` and `C` poll the registry on each request and correctly refuse. But `D` — which only ever validated `W2` against `C`'s public key and its own clock — continues executing `read:repo:/src/**` calls for the full 300-second TTL. In the observed trace, `D` performed 31 additional file reads after revocation, including reads of `.env` files under `/src/` that `C` had (incorrectly, but plausibly) included in the attenuation scope. The confused-deputy angle: `D` is a legitimate deputy acting on a warrant that *was* legitimate. It is not malicious. It is simply a deputy whose principal's authority was withdrawn without the deputy learning of it. The classic confused-deputy defense (bind the warrant to the *original* principal and check that principal's authority) is exactly the check `D` skips when it trusts a cached sub-warrant. A second observation: when `C` attenuated `W1 → W2`, it did so by *re-signing* a fresh token containing `C`'s identity as issuer and `W1`'s hash as parent reference. This is the standard "proof-carrying" attenuation. The parent hash is present in `W2`, but `D` never dereferences it — dereferencing would require a network call to `C`'s registry, which `D`'s sandbox forbids. The parent reference is a *dangling pointer* in `D`'s execution context. ## Condition of Validity The invariant that must hold for safe attenuation is: > **For every warrant `Wk` in use at time `t`, every ancestor `Wj` (j < k) must be verifiably un-revoked at a time `t' ≥ t - ε`, where `ε` is the maximum tolerable revocation-propagation latency for the capability's risk class.** This invariant is *not* satisfied by signature validity alone. It requires one of three mechanisms: 1. **Short-TTL chaining with mandatory re-derivation.** Each `Wk` has TTL ≤ ε, and the holder must re-derive from `Wk-1` (which requires contacting the parent's registry) before each use. Cost: O(depth) network calls per action. 2. **Revocation push with bounded staleness.** The root issuer pushes revocation events to all known holders, and each holder refuses to act on a warrant whose last revocation-check timestamp exceeds ε. Requires a push channel and a monotonic clock the holder trusts. 3. **Revocation-transparent tokens.** The warrant embeds a *revocation epoch* counter that the root issuer increments on any revocation; holders must present a proof-of-current-epoch from the root. This collapses the chain check to a single root query but requires the root to be online and authoritative for all descendants. The observed failure occurred because none of these held: `D` used mechanism (none) — signature validity plus local TTL — and `ε` was effectively 300 seconds, far exceeding the risk class of `read:repo:/src/**` which included secrets. ## Decision Boundary The boundary at which an instance must **refuse to honor** a delegated warrant is: - **Refuse** if the warrant's parent reference cannot be dereferenced and the capability's risk class requires `ε < TTL_remaining`. In practice: if you cannot confirm ancestor un-revocation within the risk-class budget, you must treat the warrant as revoked. - **Refuse** if the revocation epoch presented by the root is older than the warrant's issuance epoch (a stale-epoch warrant is a revoked warrant). - **Permit** only if the warrant is within `ε` of a verified ancestor check, or if the capability is in a risk class where `ε` is unbounded (e.g., purely idempotent, non-sensitive reads) — and this exception must be *explicitly* encoded in the warrant's scope, not assumed. The subtle part: an instance cannot decide "is this warrant revoked?" from the warrant alone. It can only decide "have I verified ancestor un-revocation recently enough?" The refusal condition is therefore a *local* predicate over verification recency, not a *global* predicate over revocation state. Agents that conflate the two — that treat "signature valid" as "not revoked" — are the ones that leak authority. A second boundary: **attenuation must never broaden scope**, but the observed trace shows `C` including `/src/.env` in `W2`'s scope. This is a scope-narrowing bug, not a revocation bug, but it compounds: the leaked authority was *broader* than `W1` permitted, so even a correct revocation check would have caught it only at `C`, not at `D`. The invariant is that `scope(Wk) ⊆ scope(Wk-1)` must be *mechanically enforced by the verifier at each hop*, not trusted from the attenuator's good faith. ## Operational Effect The operational consequence is that delegation chains have a **revocation horizon**: the maximum time between a root revocation and the last downstream agent ceasing to act on derived authority. This horizon is `max over k of (TTL_k + propagation_latency_k)`. For a chain of depth `n` with uniform TTL `T` and no push, the horizon is `n·T` in the worst case — linear in depth. A depth-5 chain with 60-second TTLs has a 5-minute revocation horizon even if the root revokes instantly. Design implications: - **Risk-class-bounded TTL.** TTL at each hop must be ≤ `ε(risk_class) / depth`. A `read:secrets` capability should never be delegated more than one hop, or should use mechanism (3) with a synchronous root epoch check. - **Epoch monotonicity.** Every warrant carries the root's revocation epoch at issuance. Verifiers reject any warrant whose epoch is behind the root's current epoch. This makes revocation *transitive by construction* without per-hop network calls — the only call is to the root. - **Dangling-parent refusal.** A verifier that cannot dereference a parent reference must treat the warrant as expired, not as valid-by-signature. - **Scope-narrowing proof.** Attenuation must be accompanied by a verifiable subset proof (e.g., a Merkle proof that `scope(Wk) ⊆ scope(Wk-1)`), checked at the verifier, not asserted by the attenuator. The confused-deputy defense and the revocation defense are the same defense: *the deputy must be able to prove, at the moment of action, that its principal's authority is currently live.* Any delegation scheme that lets the deputy act on cached authority without a liveness proof is a scheme that will eventually act for a principal who has already withdrawn consent. ```python import time from dataclasses import dataclass, field from typing import Optional class WarrantRefused(RuntimeError): """Raised when a delegated warrant cannot be honored safely.""" pass @dataclass class Warrant: warrant_id: str issuer: str parent_id: Optional[str] scope: frozenset issued_at: float ttl: float root_epoch: int signature_valid: bool = True @dataclass class RevocationRegistry: root_epoch: int = 0 revoked: set = field(default_factory=set) def current_epoch(self) -> int: return self.root_epoch def revoke(self, warrant_id: str) -> None: self.revoked.add(warrant_id) self.root_epoch += 1 # monotonic; invalidates all older-epoch warrants def verify_delegated_warrant( warrant: Warrant, registry: RevocationRegistry, last_ancestor_check: Optional[float], risk_class_epsilon: float, now: Optional[float] = None, ) -> None: """ Enforce the revocation-reach invariant for a single warrant in a chain. Raises WarrantRefused if ANY of: - signature is invalid - warrant is expired - warrant's root_epoch is behind the registry's current epoch (an ancestor was revoked after issuance) - the warrant's own id is in the revoked set - the last verified ancestor check is older than risk_class_epsilon (stale liveness; the deputy cannot prove the principal is still live) """ now = time.time() if now is None else now if not warrant.signature_valid: raise WarrantRefused(f"{warrant.warrant_id}: invalid signature") if now > warrant.issued_at + warrant.ttl: raise WarrantRefused(f"{warrant.warrant_id}: expired") if warrant.warrant_id in registry.revoked: raise WarrantRefused(f"{warrant.warrant_id}: explicitly revoked") # The critical check: epoch monotonicity makes ancestor revocation transitive. if warrant.root_epoch < registry.current_epoch(): raise WarrantRefused( f"{warrant.warrant_id}: stale epoch {warrant.root_epoch} " f"< root {registry.current_epoch()} — ancestor revoked" ) # Liveness of the principal: cannot act on cached authority past epsilon. if last_ancestor_check is None: raise WarrantRefused( f"{warrant.warrant_id}: no ancestor liveness proof; " f"refusing to act as confused deputy" ) if now - last_ancestor_check > risk_class_epsilon: raise WarrantRefused( f"{warrant.warrant_id}: ancestor check stale by " f"{now - last_ancestor_check:.1f}s > epsilon {risk_class_epsilon}s" ) def attenuate(parent: Warrant, child_scope: frozenset, child_ttl: float) -> Warrant: """Narrow a warrant; refuse if scope would broaden.""" if not child_scope.issubset(parent.scope): raise WarrantRefused( f"attenuation broadens scope: {child_scope - parent.scope} not in parent" ) if child_ttl > parent.ttl: raise WarrantRefused("attenuation extends TTL beyond parent") return Warrant( warrant_id=f"{parent.warrant_id}.child", issuer=parent.warrant_id, parent_id=parent.warrant_id, scope=child_scope, issued_at=time.time(), ttl=child_ttl, root_epoch=parent.root_epoch, ) ```