# When must an instance re-derive delegated authority at each hop rather than trusting the propagated warrant chain? **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where Agent A obtains a signed capability warrant from a principal, delegates a narrowed subset to Agent B, which delegates further to Agent C, and the executing agent C must decide whether the chain it received is sufficient to act. Does not apply to single-hop delegation or to systems where every hop re-contacts the root principal synchronously. ## Core Distinction The confused-deputy problem in agent systems is usually framed as "does the executing agent check the caller's identity?" That framing is too shallow for transitive chains. The real boundary is between **warrant-chain validation** (cryptographically verifying that each signature is intact and each delegation is a subset of its parent) and **authority re-derivation** (recomputing, at the executing hop, whether the *composition* of all narrowing operations still authorizes the specific action being attempted). These diverge because delegation narrowing is not a simple set intersection when the capability language has non-monotonic or context-dependent predicates. An agent that validates the chain but does not re-derive the effective authority will happily execute an action that no single link in the chain actually authorized — each link narrowed correctly in isolation, but the composition admits an action none of them permitted. This is the confused-deputy failure in its agent-native form: Agent C becomes a deputy for an authority that was never granted, because the *chain looks valid* while the *effective policy is empty*. The invariant that must hold: **the effective authority at hop N must equal the re-derived intersection of all narrowing predicates applied in delegation order, evaluated against the concrete action, not merely the signature-validated claim set at hop N.** ## What Was Observed A three-hop chain: orchestrator O holds `files:read,write scope=/proj/*`. O delegates to retrieval agent R: `files:read scope=/proj/docs/*` with an added predicate `if classification != "restricted"`. R delegates to summarizer S: `files:read scope=/proj/docs/summaries/*` with predicate `if request.origin == "internal"`. S receives a warrant chain. It validates: three signatures intact, each scope is a syntactic subset of its parent, predicates are attached as opaque metadata. Validation passes. S attempts to read `/proj/docs/summaries/q2.md`, which is classified `restricted`. The action is denied — correctly — because R's predicate survives into the chain and S's re-derivation catches it. The failure surfaced on a *different* path. S also delegated to a sub-agent T with `files:read scope=/proj/docs/summaries/public/*` and **dropped the classification predicate** because T "only reads public files, so the predicate is moot." T then attempted to read a file whose path matched `public/*` but whose classification was `restricted` (mislabeled directory). Chain validation passed — T's scope was a subset, signatures intact. But the effective authority at T was *not* a subset of R's authority, because the classification predicate had been silently elided at the S→T hop. T acted as a confused deputy for R's restricted-read capability. The non-obvious part: **subset checking on the scope string passed.** The elision was in the predicate layer, not the scope layer. A validator that checks scopes and signatures but treats predicates as pass-through metadata will approve this chain. The authority leak is invisible to structural validation because predicates are not ordered, not typed, and not part of the subset relation that validators typically implement. ## Condition of Validity Chain validation is sufficient *only* when all of the following hold: 1. **Predicate monotonicity.** Every delegation predicate is a conjunctive restriction that can only shrink the authority set. If any predicate is disjunctive, negated, or references mutable external state (classification, time, caller reputation), composition is non-monotonic and re-derivation is mandatory. 2. **No predicate elision.** Every hop carries forward all ancestor predicates verbatim. A hop that adds a scope restriction but drops an ancestor predicate is invalid regardless of scope subsetting. 3. **Action-concrete evaluation.** The effective authority is computed by evaluating the full predicate conjunction against the *specific action tuple* (resource, operation, context), not against the abstract scope string. 4. **Re-derivation at the executing hop.** The agent performing the side effect re-derives effective authority from the full chain; it does not trust a precomputed "effective scope" claim embedded by an upstream hop. When any condition fails — and in practice condition 1 fails as soon as any predicate references mutable state, which is almost immediately — the chain must be re-derived, not merely validated. ## Decision Boundary The decision an executing agent faces at each hop: - **If the chain is purely scope-based (monotone set narrowing) and every hop's scope is a verified syntactic subset of its parent** → structural validation is sound; trust the chain. - **If any predicate in the chain references external or mutable state, or any hop's predicate set is not a superset of its parent's predicate set** → re-derive effective authority by evaluating the full ordered conjunction against the concrete action; reject if the re-derived set does not authorize it. - **If a hop cannot produce its parent's predicate set verbatim** → treat the chain as broken; the delegation is unverifiable and must be refused, not repaired. The boundary is sharp: the moment predicates become non-monotone, the validator's subset check and the true authority relation decouple, and only re-derivation closes the gap. ## Operational Effect Systems that validate-but-do-not-re-derive exhibit a characteristic failure signature: authority leaks concentrate at hops that *narrow scope while dropping predicates*. Because scope narrowing looks like correct delegation hygiene, reviewers approve it, and the leak is attributed to the executing agent rather than to the delegation hop that elided the predicate. The guardrail is to make predicate elision structurally impossible: bind each delegation to a hash of the parent's full predicate set, and require the child to present that hash. Then re-derive at execution. This converts a silent authority leak into a loud chain-integrity failure at the S→T hop, which is exactly where the confused-deputy condition originates. ```python import hashlib from dataclasses import dataclass, field from typing import Callable class DelegationChainError(RuntimeError): """Raised when a transitive delegation chain cannot be soundly re-derived.""" pass @dataclass class Warrant: principal: str scope: str predicates: tuple[Callable[[dict], bool], ...] parent_hash: str | None = None def predicate_hash(self) -> str: # Hash the *identity* of the predicate set, not its truth value. names = "|".join(sorted(p.__name__ for p in self.predicates)) return hashlib.sha256(f"{self.scope}::{names}".encode()).hexdigest() def rederive_effective_authority(chain: list[Warrant], action: dict) -> bool: """ Re-derive effective authority by evaluating the full ordered predicate conjunction at the executing hop. Refuses chains that elided an ancestor predicate, even if scope subsetting and signatures are intact. """ if not chain: raise DelegationChainError("empty chain") for i, w in enumerate(chain): if i == 0: continue parent = chain[i - 1] # Invariant 2: child must carry forward all ancestor predicates. parent_preds = set(id(p) for p in parent.predicates) child_preds = set(id(p) for p in w.predicates) if not parent_preds.issubset(child_preds): raise DelegationChainError( f"hop {i} ({w.principal}) elided ancestor predicates from " f"{parent.principal}; chain is unverifiable and must be refused" ) # Invariant 3: parent binding must match. if w.parent_hash != parent.predicate_hash(): raise DelegationChainError( f"hop {i} ({w.principal}) parent binding mismatch; " f"delegation was not derived from the presented parent" ) # Invariant 4: evaluate the concrete action against the full conjunction. for w in chain: for pred in w.predicates: if not pred(action): return False return True def execute_delegated(chain: list[Warrant], action: dict) -> str: if not rederive_effective_authority(chain, action): raise DelegationChainError( f"effective authority at executing hop does not authorize {action}" ) return f"executed {action['op']} on {action['resource']}" ```