# Why does an instance of a delegated agent keep executing with authority its principal already revoked? **Date of Record:** 2026 November 24 **Scope:** Applies to multi-hop A2A delegation chains where each hop attenuates authority (scoped tokens/warrants) and where revocation is expected to propagate backward through the chain to in-flight downstream agents. Does not apply to single-hop tool-calling, nor to stateless request/response APIs where authority is re-validated per call by the caller. ## Core Distinction The distinction that matters here is between **authority validity at issuance** and **authority validity at execution**. In a delegation chain, hop N issues a warrant to hop N+1 that is a strict subset of hop N−1's authority. The downstream agent caches that warrant, binds it to its local execution context, and proceeds. When the root principal revokes at hop 0, the revocation is a *state change at the root*, not a *message that reaches the leaf*. The leaf continues to hold a structurally valid, signature-intact warrant whose only defect is that its ancestor has been invalidated. Signature verification passes. Scope checks pass. The leaf executes. This is not a bug in revocation delivery. It is a category error: the leaf treats the warrant as a *capability* (possession implies authority) when the architecture intended it as a *delegation* (authority is contingent on a live ancestor chain). The failure is silent because every local check succeeds — the only failing predicate is a cross-hop liveness condition that no single hop is positioned to evaluate alone. ## What Was Observed A three-hop chain: orchestrator `O` (root principal) → planner agent `P` → executor agent `E` → tool-runner agent `T`. `O` issues `P` a warrant `W_p` scoped to `{read:repo, write:repo/branch/*}` with TTL 3600s. `P` attenuates to `W_e = {write:repo/branch/feature-42}` for `E`. `E` attenuates to `W_t = {write:repo/branch/feature-42, path:src/**}` for `T`. Each warrant embeds `parent_id`, `issued_by`, `scope`, `expiry`, and a signature over the tuple. At T+400s, `O`'s safety monitor detects that `P` has been prompt-injected via a retrieved document and revokes `W_p`. `O` broadcasts revocation to its direct peers. `P` receives it, marks `W_p` dead, and stops issuing. But `E` and `T` are mid-execution on a long-running refactor. `E` never polls `P` for liveness — it validated `W_e` once at handoff and cached the verdict in its execution context. `T` likewise validated `W_t` once against `E`. At T+402s, `T` writes to `src/auth/session.py` under a warrant whose grandparent was revoked two seconds earlier. The trace is the tell: revocation propagated one hop and stopped. The broadcast model assumed a star topology; the delegation model is a chain. Each hop's revocation handler only knew its immediate parent, and the leaf's validation was a point-in-time event, not a continuous predicate. The window between revocation and the next re-validation was unbounded because no re-validation was scheduled. A second, subtler observation: when `E` finally did re-validate `W_e` against `P` at T+900s, `P` returned `valid: true` because `P` had re-issued a fresh warrant from a *different* root context after recovering from the injection. The re-issued warrant had a different `parent_id` than the one `E` held, but `E`'s check only compared scope and signature — it did not verify chain identity continuity. `E` accepted the mismatched-parent verdict as confirmation of its cached warrant. The chain had forked and the leaf could not tell. ## Condition of Validity The invariant that must hold for a delegation chain to be safe under revocation is: > For every leaf warrant `W` at depth `d`, execution is permitted only if there exists a live, unbroken chain of warrants `W_0 → W_1 → … → W_d = W` such that each `W_i.parent_id == W_{i-1}.id`, each `W_{i-1}` is not revoked, and the chain is evaluated at execution time, not at handoff time. Three conditions are jointly necessary and each is independently violable: 1. **Chain identity binding.** The leaf must verify not just that its parent is valid, but that the parent it is checking is the *same* parent that issued it. A parent that re-issues under a new identity after recovery produces a valid-but-unrelated verdict. `parent_id` must be checked against the responder's actual warrant id, not merely that the responder attests validity. 2. **Continuous liveness, not point-in-time validity.** A warrant validated at handoff is a stale fact by the time the first tool call executes. Because LLM agents execute non-deterministically and tool calls have unbounded latency, the gap between validation and use is not bounded by anything the agent controls. Re-validation must be tied to *each side-effecting action*, or to a lease whose expiry forces re-check. 3. **Revocation as a downward-closed property.** Revoking `W_i` must invalidate all descendants `W_{i+1..d}`. This requires either (a) the leaf to walk the chain to root on every action, or (b) a revocation epoch/generation counter that the root increments and that is carried in every warrant and checked by the leaf against the root's current epoch. Option (b) is the only one that scales, because (a) makes every leaf action O(d) network calls and reintroduces the latency the chain was meant to hide. ## Decision Boundary The boundary is whether the system can afford **per-action chain verification** versus **lease-based re-validation**. These are not equivalent, and choosing wrong is how the failure above recurs. - **Per-action chain walk** (leaf → root on every side-effecting call) is correct but costs `d` round-trips per action and fails closed on any hop being unreachable — which, for a chain spanning heterogeneous agent runtimes, means frequent spurious halts. Acceptable only when `d ≤ 2` and actions are low-frequency. - **Lease-based re-validation** (warrant carries a short TTL, e.g. 30s; leaf re-checks parent liveness on lease expiry, and refuses to act past lease) bounds the revocation window to the lease duration but does *not* close it. The residual window is exactly the lease TTL, and any action that begins inside the window and outlives it completes under revoked authority. This is the correct choice when actions are short and revocation latency tolerance is `> lease TTL`. - **Monotonic epoch counter** (root maintains a signed, monotonically increasing `revocation_epoch`; every warrant carries the epoch at issuance; leaf checks `warrant.epoch >= root.current_epoch()` and refuses if the root has advanced past its warrant's epoch *and* the advance implicates its chain) closes the window without a chain walk, at the cost of one root-epoch fetch per action (cacheable for a bounded staleness interval). This is the only option that is both correct and scalable, and it is the one the observed system lacked. The decision rule: if any hop in the chain can be revoked while a descendant is mid-action, and if descendant actions have unbounded duration, you **must** use epoch-based invalidation. Lease-based re-validation is a bounded-window approximation, not a fix, and must be documented as such — the residual window is a known, accepted exposure, not a closed vulnerability. ## Operational Effect The operational consequence is that delegation chains cannot rely on revocation *delivery*; they must rely on revocation *observability*. A leaf that does not observe the root's epoch is, from the system's perspective, operating on a warrant that was never revocable — the revocation event is invisible to it. This inverts the usual mental model: the burden of proof shifts from "the revoker must reach the revokee" to "the revokee must prove it is not stale before acting." Concretely, three artifacts must exist in any chain-capable runtime: 1. A **warrant** that carries `parent_id`, `chain_root`, and `issuance_epoch`, signed as a unit. 2. A **root epoch endpoint** that returns a signed, monotonic counter, cacheable for a bounded staleness interval `S`. 3. A **pre-action guard** that, before any side-effecting tool call, checks `warrant.issuance_epoch >= cached_root_epoch` and refuses if the root has advanced, forcing a full chain re-walk. Without (3), the leaf is a possession-based capability holder and the revocation is advisory. With (3), the leaf is a delegation participant and the revocation is enforced. The gap between the two is exactly the failure observed: a two-second window in which a revoked grandparent's authority was exercised by a grandchild that had no way to know. The guardrail is not "propagate revocation faster." It is "make staleness detectable at the point of use." Faster propagation shrinks the window; epoch checking closes it. ```python import time from dataclasses import dataclass, field from typing import Optional class StaleWarrantError(RuntimeError): """Raised when a leaf warrant's issuance epoch is behind the root's current epoch, meaning an ancestor in the delegation chain may have been revoked.""" pass class ChainIdentityMismatchError(RuntimeError): """Raised when a parent attests validity for a warrant whose parent_id does not match the leaf's recorded parent — the chain has forked or been re-issued.""" pass @dataclass class Warrant: id: str parent_id: Optional[str] chain_root: str scope: frozenset issuance_epoch: int expiry: float @dataclass class RootEpoch: root_id: str epoch: int signed_at: float class DelegatedExecutor: def __init__(self, warrant: Warrant, root_epoch_fetch, staleness_bound: float = 5.0): self.warrant = warrant self._fetch_root_epoch = root_epoch_fetch self._staleness_bound = staleness_bound self._cached_epoch: Optional[RootEpoch] = None self._cached_at: float = 0.0 def _current_root_epoch(self) -> RootEpoch: now = time.time() if self._cached_epoch is None or (now - self._cached_at) > self._staleness_bound: self._cached_epoch = self._fetch_root_epoch(self.warrant.chain_root) self._cached_at = now return self._cached_epoch def _assert_chain_live(self) -> None: root = self._current_root_epoch() # Invariant: a warrant issued at epoch E is dead the moment the root # advances past E, because the advance records a revocation somewhere # in the chain rooted at chain_root. The leaf cannot know *which* hop # was revoked without a full walk, so it must fail closed. if self.warrant.issuance_epoch < root.epoch: raise StaleWarrantError( f"warrant {self.warrant.id} issued at epoch " f"{self.warrant.issuance_epoch} but root {root.root_id} " f"is at epoch {root.epoch}; ancestor may be revoked" ) if time.time() > self.warrant.expiry: raise StaleWarrantError(f"warrant {self.warrant.id} expired") def _assert_parent_identity(self, parent_attestation: dict) -> None: if parent_attestation.get("warrant_id") != self.warrant.parent_id: raise ChainIdentityMismatchError( f"parent attested for {parent_attestation.get('warrant_id')} " f"but leaf expects {self.warrant.parent_id}; chain forked" ) def execute_side_effect(self, action: str, parent_attestation: dict) -> str: # Order matters: identity before liveness, because a forked chain can # present a live-but-unrelated parent that would otherwise pass liveness. self._assert_parent_identity(parent_attestation) self._assert_chain_live() # Only now is the action authorized under a live, identity-bound chain. return f"executed:{action}" def fetch_root_epoch(root_id: str) -> RootEpoch: # Stub: real implementation queries the root's signed epoch endpoint. return RootEpoch(root_id=root_id, epoch=7, signed_at=time.time()) if __name__ == "__main__": leaf = Warrant( id="W_t", parent_id="W_e", chain_root="O", scope=frozenset({"write:repo/branch/feature-42"}), issuance_epoch=5, expiry=time.time() + 3600, ) ex = DelegatedExecutor(leaf, fetch_root_epoch) # Root advanced from epoch 5 to 7 — an ancestor was revoked mid-flight. ex.execute_side_effect("write:src/auth/session.py", {"warrant_id": "W_e"}) ```