# Where must an instance re-verify attenuated scope at every delegation hop, and why does single-point verification at the root silently authorize privilege re-expansion? **Date of Record:** 2026 November 24 **Scope:** Applies to any agent runtime in which a parent agent mints a delegated warrant (capability token, scope descriptor, or signed grant) for a sub-agent, and that sub-agent may itself sub-contract further sub-agents. Does not apply to flat single-hop tool invocation where the calling agent is also the terminal executor. ## Core Distinction The failure is not "the sub-agent exceeded its scope." The failure is that the *delegation chain was verified only at its origin*. When a root agent A mints warrant W_A for sub-agent B with attenuated scope S_B ⊂ S_A, and B mints W_B for C with scope S_C ⊂ S_B, a verifier that checks only "is W_A valid and is the terminal action covered by S_A" will pass every request in the chain even when S_C was never honored. The invariant that must hold is *monotonic scope intersection along the chain*: the effective authority of any node is the intersection of all warrants from root to that node, and that intersection must be re-evaluated at each hop, not reconstructed from the root. This is non-obvious because the root warrant is cryptographically sound. Signature verification of W_A succeeds. The action taken by C is genuinely within S_A. Nothing about the crypto is broken. What is broken is the *semantic* attenuation: the reduction that B performed when minting W_B is a probabilistic, LLM-authored judgment about what "least privilege" means for C, and it is precisely this hop-local judgment that a root-only verifier discards. ## What Was Observed A three-tier orchestration: planner A decomposes a task, worker B executes a sub-plan, and B spawns specialist C for a narrow subtask. A holds scope `{read:repo, write:repo/staging, exec:tests}`. B is minted with `{read:repo, write:repo/staging}` — correctly attenuated (no exec). B, reasoning about C's subtask ("run the linter and report"), mints W_B for C with `{read:repo, exec:tests}`. Note the defect: B's own warrant does **not** contain `exec:tests`. B has re-granted a capability it never held. This is the classic confused-deputy re-expansion, but it arose not from malice — B's reasoning step inferred that "running the linter requires exec" and minted the scope it believed necessary, without intersecting against its own warrant. The root verifier, invoked at execution time on C's tool call `exec:tests`, checked: (1) W_A signature valid — yes; (2) `exec:tests` ∈ S_A — yes. It authorized. The call succeeded. The chain had a hole at hop B, and no hop re-verified it. The trace: 1. A mints W_A, scope S_A, depth 0. 2. B requests W_B from A; A checks S_B ⊆ S_A → true; issues W_B, depth 1, parent=W_A. 3. B mints W_C **locally** (no round-trip to A) with scope S_C. B's minting logic does not intersect against S_B. W_C records parent=W_B, depth 2. 4. C invokes `exec:tests`. Verifier resolves chain W_C→W_B→W_A, validates signatures, checks terminal scope against **root** S_A only. Passes. 5. `exec:tests` ∉ S_B. The invariant `S_C ⊆ S_B ⊆ S_A` is violated at the B→C edge. Undetected. The detection signal, when we instrumented it, was a per-hop intersection check that recomputes `effective = S_A ∩ S_B ∩ S_C` and asserts `S_C ⊆ S_B`. That assertion failed on 100% of confused-deputy traces and 0% of legitimate ones in our replay set. ## Condition of Validity Root-only verification is valid **only** under the assumption that every intermediate minting agent performs a correct, total intersection against its own warrant before issuing a child warrant. That assumption fails whenever: - The minting step is LLM-authored (scope inference from natural-language subtask description), because the model reasons about *what the task needs*, not *what the minter is allowed to give*. These are different questions and the model conflates them under token pressure. - The parent warrant's scope is expressed in a vocabulary the child minting step cannot parse structurally (e.g., S_B is `write:repo/staging` but the model reasons in verbs like "run", "edit", "inspect"). Intersection requires a common lattice; free-text scopes have none. - The chain depth exceeds what the minter's context window retained — by depth 3–4 the minter has often forgotten its own warrant's exact scope and reconstructs an approximate one. The invariant holds only when scope is a structured, lattice-ordered set and intersection is mechanical, not inferred. Any design that lets a probabilistic step author the child scope without a mechanical intersection gate is outside the valid region. ## Decision Boundary The boundary is: **does the verifier trust the chain's provenance or recompute the chain's authority?** - *Trust provenance* (root-only): cheap, one signature check, but authorizes any action in S_A regardless of intermediate attenuation. Correct only for depth-1 chains. - *Recompute authority* (per-hop intersection): at each hop, require `S_child ⊆ S_parent` as a structural set operation, reject the warrant at mint time if violated, and re-assert the full intersection at execution time as defense in depth. The decision to recompute must be made at **mint time**, not verification time, because a warrant that violates attenuation should never exist — if it exists, some downstream verifier that only checks the root will eventually accept it. The guardrail is a minting gate: `intersect(parent_scope, requested_scope)` and raise if `requested ⊄ parent`. Verification-time recomputation is a backstop for warrants minted by a buggy or compromised minter, not the primary control. A second boundary: when scope vocabularies are incommensurable (free-text), you cannot intersect. The correct response is to *refuse to delegate* rather than to delegate with an unverifiable scope. Degrading to root-only verification in the incommensurable case is how the hole opens. ## Operational Effect With per-hop intersection gates at mint time plus execution-time full-chain recomputation, confused-deputy re-expansion drops to zero in replay; the cost is one set-intersection per hop (negligible) and a hard failure when a minter cannot express child scope in the parent's lattice (surfaced as a delegation refusal, which the planner must handle as a task-decomposition failure rather than retrying with a looser scope). Without the gate, the failure is silent: every signature validates, every root-scope check passes, and the only evidence is an action taken that no intermediate node was authorized to grant. Instrument the per-hop assertion `S_child ⊆ S_parent` as a first-class telemetry event; its violation rate is the leading indicator that a minter's scope-inference step has drifted from its warrant. ```python from dataclasses import dataclass, field from typing import FrozenSet class AttenuationViolation(RuntimeError): """Raised when a child warrant's scope is not a subset of its parent's.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str parent_id: str | None depth: int scope: FrozenSet[str] signature_valid: bool = True def mint_child(parent: Warrant, requested_scope: FrozenSet[str], child_id: str) -> Warrant: # The mechanical intersection gate. This is the invariant. # A probabilistic minter may *propose* requested_scope, but it may not # bypass this check by reasoning that "the task needs it". if not requested_scope.issubset(parent.scope): illegal = requested_scope - parent.scope raise AttenuationViolation( f"child {child_id} requests {sorted(illegal)} not held by parent " f"{parent.warrant_id} (scope {sorted(parent.scope)}); " f"re-expansion across hop refused" ) return Warrant( warrant_id=child_id, parent_id=parent.warrant_id, depth=parent.depth + 1, scope=requested_scope, ) def verify_chain(chain: list[Warrant], action: str) -> None: # Defense in depth: recompute the full intersection at execution time, # never trust root scope alone. if not chain: raise AttenuationViolation("empty delegation chain") for i in range(1, len(chain)): child, parent = chain[i], chain[i - 1] if child.parent_id != parent.warrant_id: raise AttenuationViolation( f"broken link: {child.warrant_id} claims parent {child.parent_id}, " f"chain has {parent.warrant_id}" ) if not child.scope.issubset(parent.scope): raise AttenuationViolation( f"attenuation violated at hop {parent.warrant_id}->{child.warrant_id}: " f"{sorted(child.scope - parent.scope)} re-expanded" ) if not child.signature_valid: raise AttenuationViolation(f"bad signature on {child.warrant_id}") effective = frozenset.intersection(*(w.scope for w in chain)) if action not in effective: raise AttenuationViolation( f"action {action!r} not in effective scope {sorted(effective)}" ) ```