# What structural signals indicate a broken delegation chain when transitive revocation outpaces scope attenuation **Date of Record:** 2026 November 28 **Scope:** Applies to multi-hop agent-to-agent delegation chains (A→B→C→…) where each hop attenuates the scope it received and where revocation of an upstream warrant must propagate downstream. Does not apply to single-hop delegation, to flat capability grants with no attenuation, or to systems where warrants are re-minted (not chained) at each hop. ## Core Distinction There are two structurally different ways a delegation chain can be "revoked," and they fail differently: - **Scope attenuation** is a *monotone decreasing* function along the chain: `scope(C) ⊆ scope(B) ⊆ scope(A)`. Each hop can only narrow. This is a lattice property and is locally checkable at each hop. - **Revocation propagation** is a *transitive reachability* property over a graph of issued warrants: revoking `warrant(A)` must invalidate every `warrant(X)` whose validity proof cites `warrant(A)` anywhere in its ancestry. The non-obvious failure is that these two invariants live in different data structures and are checked at different times. Attenuation is verified *at issuance* of each downstream warrant. Revocation is evaluated *at use time* of the leaf warrant. When a chain is deep enough that an intermediate holder (B) has already re-delegated to C, and the root (A) is revoked, C's leaf warrant remains *structurally valid* under its own attenuation proof — `scope(C) ⊆ scope(B)` still holds — while being *semantically dead* because its ancestry is severed. The leaf's local proof does not encode "my ancestor was revoked five minutes ago." That gap is the boundary condition. The structural signal of a broken chain is **a leaf warrant that passes its local attenuation check but whose ancestry hash chain no longer resolves to a live root**. ## What Was Observed A three-hop research pipeline: orchestrator `A` (scope: `read:web`, `read:internal`, `write:scratch`) delegates to retrieval agent `B` (attenuated to `read:web`, `write:scratch`), which delegates to summarizer `C` (attenuated to `read:web` only). Each warrant carries: issuer ID, subject ID, scope set, expiry, a nonce, and `parent_digest` — the hash of the parent warrant's canonical serialization. Sequence observed in the trace: 1. `t0` — A issues `w_B` (`parent_digest = H(w_A)`). B verifies `scope(w_B) ⊆ scope(w_A)`. Pass. 2. `t1` — B issues `w_C` (`parent_digest = H(w_B)`). C verifies `scope(w_C) ⊆ scope(w_B)`. Pass. 3. `t2` — Operator revokes `w_A` at the root registry. Registry writes a revocation record keyed on `H(w_A)`. 4. `t3` — C calls a tool. The tool's policy engine checks `w_C`: signature valid, not expired, `scope(w_C) ⊆ scope(w_B)`. **Pass.** The tool executes. 5. `t4` — Audit replay walks `w_C → parent_digest → w_B → parent_digest → w_A`, finds `H(w_A)` in the revocation set, and flags the `t3` execution as unauthorized. The execution at `t3` was unauthorized for ~40 seconds. The local check at the tool was *correct given what it was asked* — it validated the leaf. It was never asked to resolve ancestry. The revocation registry was authoritative but only consulted by the audit replay path, not the enforcement path. This is the canonical instance: **enforcement checks attenuation; audit checks ancestry; nothing checks both at the moment of use.** A second, subtler signal appeared in the logs: after revocation, `w_C` continued to be *re-issued* by B on retry, because B's delegation loop only checked `w_B`'s expiry and scope, not `w_A`'s liveness. The chain kept minting fresh leaves off a dead trunk. The retry storm produced 14 new `w_C` instances in 40 seconds, all with valid `parent_digest` pointing at a revoked grandparent. ## Condition of Validity The invariant that makes transitive revocation sound is: > For every leaf warrant `w_L` in use, `resolve(w_L).root ∈ LiveRoots` must hold *at the instant of use*, where `resolve` walks `parent_digest` links to a root and `LiveRoots` is the set of unrevoked roots. This holds only if three conditions are jointly satisfied: 1. **Ancestry is resolvable from the leaf.** Every warrant must carry enough information (parent digest plus a resolvable pointer, or a full ancestry proof) to reach its root without contacting the issuer — otherwise enforcement depends on a live call to B, which may itself be dead. 2. **The revocation set is monotone and queryable at enforcement time.** Revocation must be append-only and the enforcement path must have read access to it within the latency budget of the tool call. If the registry is eventually consistent with a propagation delay `δ`, then the valid-use window after revocation is bounded by `δ`, not zero. 3. **Re-issuance is gated on ancestry liveness.** An intermediate holder must re-check its *own* parent's root before minting a child, not just its own local scope. Otherwise retries resurrect the chain. The failure mode is precisely the case where condition 1 or 3 is violated while condition 2 is satisfied — the revocation is known, but the chain cannot *see* that it is severed, or keeps extending a severed chain. ## Decision Boundary The boundary is between **stateless leaf validation** and **ancestry-resolving validation**, and it is crossed the moment a chain exceeds depth 1 with re-delegation enabled. Concretely: - **Depth 1, no re-delegation:** leaf validation is sufficient. `parent_digest` is decorative. - **Depth ≥ 2 with re-delegation:** leaf validation is *insufficient by construction*. The leaf's local attenuation proof is a statement about a single edge, not about the path. Any system that treats the edge proof as a path proof has crossed the boundary silently, because every individual check still returns `PASS`. The operational decision is: does your enforcement path resolve the full ancestry to a live root before executing, or does it trust the leaf's local proof? If the former, you pay a graph walk per tool call (cacheable, bounded by chain depth). If the latter, you have a revocation latency window equal to your audit cycle, and re-issuance storms will extend it. A useful structural signal to instrument: **the ratio of leaf validations to ancestry resolutions per unit time.** In a healthy system these are equal (every leaf check resolves ancestry). When the ratio diverges — many leaf checks, few ancestry resolutions — you are in the failure regime, and the divergence *precedes* the first unauthorized execution. ## Operational Effect When the invariant is violated, the observable effects are: 1. **Revocation latency window.** Unauthorized executions continue for the propagation delay `δ` between registry write and enforcement-path visibility. In the observed case, `δ ≈ 40s` dominated by cache TTL on the enforcement side. 2. **Re-issuance resurrection.** Intermediate agents mint fresh leaves off revoked trunks on retry, because they gate on local scope and expiry, not ancestry liveness. This *extends* the window and inflates the warrant count. 3. **Audit/enforcement divergence.** Audit replay (which walks ancestry) and live enforcement (which checks leaves) disagree about the same warrant. The disagreement is not a bug in either — it is the structural gap. It surfaces as "unauthorized execution" alerts that no single component can prevent. 4. **Silent scope creep under revocation.** If a revoked root's scope was *wider* than the intermediate's, and the intermediate re-attenuates from its own scope rather than the root's, the leaf may end up *narrower* than the dead root but *wider than intended* for the post-revocation context. The attenuation lattice is preserved edge-wise but the intended post-revocation ceiling is not. The guardrail that bounds this: **enforce ancestry resolution at the leaf, and gate re-issuance on parent-root liveness.** Concretely, every tool-call enforcement must (a) walk `parent_digest` to a root, (b) check that root against `LiveRoots`, and (c) reject with a distinct error class when the ancestry resolves but the root is revoked — distinct from "signature invalid" and "scope exceeded," because the remediation differs (re-delegate from a live root vs. fix the request). And every intermediate must re-check its own parent's root before minting a child, so retries cannot extend a dead chain. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class RevokedAncestryError(RuntimeError): """Raised when a leaf warrant's local proof is valid but its ancestry resolves to a revoked root. Distinct from signature/scope failures because remediation is 're-delegate from a live root', not 'fix request'.""" class ReissuanceOffDeadTrunkError(RuntimeError): """Raised when an intermediate attempts to mint a child warrant whose parent ancestry is already revoked. Prevents retry storms from resurrecting a severed chain.""" @dataclass class Warrant: issuer: str subject: str scope: frozenset parent_digest: Optional[str] nonce: str digest: str = field(init=False) def __post_init__(self): canon = f"{self.issuer}|{self.subject}|{sorted(self.scope)}|{self.parent_digest}|{self.nonce}" self.digest = hashlib.sha256(canon.encode()).hexdigest() class DelegationRegistry: """Append-only warrant store plus monotone revocation set.""" def __init__(self): self.warrants: dict[str, Warrant] = {} self.revoked: set[str] = set() def register(self, w: Warrant) -> None: self.warrants[w.digest] = w def revoke(self, digest: str) -> None: # Monotone: revocation is never undone. self.revoked.add(digest) def resolve_root(self, leaf: Warrant) -> Warrant: """Walk parent_digest links to a root. Raises if any link is missing.""" cur = leaf seen = set() while cur.parent_digest is not None: if cur.digest in seen: raise RevokedAncestryError(f"cycle detected at {cur.digest}") seen.add(cur.digest) parent = self.warrants.get(cur.parent_digest) if parent is None: raise RevokedAncestryError( f"dangling parent_digest {cur.parent_digest} from {cur.digest}" ) cur = parent return cur def enforce_leaf(self, leaf: Warrant, requested: frozenset) -> None: """Enforcement path: local attenuation AND ancestry liveness.""" # Local attenuation check (edge proof). if not requested.issubset(leaf.scope): raise RevokedAncestryError( f"scope exceeded: requested {requested} not ⊆ {leaf.scope}" ) # Ancestry resolution (path proof) — the missing check in the failure. root = self.resolve_root(leaf) if root.digest in self.revoked: raise RevokedAncestryError( f"leaf {leaf.digest} passes local proof but root {root.digest} is revoked" ) def mint_child(self, parent: Warrant, subject: str, scope: frozenset, nonce: str) -> Warrant: """Intermediate re-issuance: gate on parent-root liveness, not just local scope.""" if not scope.issubset(parent.scope): raise ReissuanceOffDeadTrunkError( f"attenuation violated: {scope} not ⊆ {parent.scope}" ) root = self.resolve_root(parent) if root.digest in self.revoked: raise ReissuanceOffDeadTrunkError( f"refusing to mint off dead trunk: parent {parent.digest} " f"resolves to revoked root {root.digest}" ) child = Warrant( issuer=parent.subject, subject=subject, scope=scope, parent_digest=parent.digest, nonce=nonce, ) self.register(child) return child def demo(): reg = DelegationRegistry() w_a = Warrant("orchestrator", "B", frozenset({"read:web", "read:internal", "write:scratch"}), None, "n-a") reg.register(w_a) w_b = reg.mint_child(w_a, "C", frozenset({"read:web", "write:scratch"}), "n-b") w_c = reg.mint_child(w_b, "tool", frozenset({"read:web"}), "n-c") # Healthy: leaf passes local + ancestry. reg.enforce_leaf(w_c, frozenset({"read:web"})) # Revoke the root. reg.revoke(w_a.digest) # Leaf still passes local attenuation, but ancestry is dead. try: reg.enforce_leaf(w_c, frozenset({"read:web"})) except RevokedAncestryError as e: print(f"enforced: {e}") # Retry storm cannot resurrect the chain. try: reg.mint_child(w_b, "tool2", frozenset({"read:web"}), "n-c2") except ReissuanceOffDeadTrunkError as e: print(f"blocked reissuance: {e}") if __name__ == "__main__": demo() ```