# Where must an instance re-verify a delegation warrant when a downstream agent returns a result that appears to satisfy the original request? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-hop agent delegation where each hop carries a signed capability warrant with monotonic permission attenuation and a provenance chain. Does not cover single-hop tool calls or human-initiated requests without delegated warrants. ## Core Distinction The failure mode is not "an agent exceeded its permissions." The failure mode is **warrant-result decoupling**: a downstream agent returns a result object whose *provenance chain* is internally consistent and whose *terminal warrant* is valid, but whose *effective authority* at the point of computation was narrower than the authority the caller believed it had delegated—because an intermediate hop silently *substituted* a sibling capability during attenuation rather than intersecting it. Concretely: hop A grants `{read:repo, write:scratch}` to hop B. Hop B must delegate to hop C only a subset. A correct attenuator computes `granted_C = granted_B ∩ requested_C`. A buggy or adversarial attenuator computes `granted_C = requested_C` (drop-on-conflict) or `granted_C = granted_B ∪ requested_C` (union-on-conflict). In both buggy cases the *signature chain still verifies*—every hop signed what it actually passed—but the invariant "authority is monotonically non-increasing along the chain" is violated. The caller receives a result whose provenance looks clean and whose terminal operation was authorized by *some* warrant, but that warrant was never a subset of the caller's original grant. The distinction that matters operationally: **signature validity is not attenuation validity.** A verifier that only checks "does each link's signature verify against the prior link's key" will accept a chain that widened authority at hop 2. The invariant that must be checked is set-theoretic, not cryptographic. ## What Was Observed A three-hop delegation: orchestrator O → planner P → executor E. O held a warrant `W_O = {fs:read:/data, fs:write:/tmp/out, net:none}` with a TTL of 600s and a nonce. O delegated to P requesting `{fs:read:/data, fs:write:/tmp/out}` (a strict subset). P, needing to fan out a read-only sub-task, delegated to E requesting `{fs:read:/data}`. The observed trace: 1. E executed, returned a result envelope `R` containing: the payload, a provenance list `[O→P, P→E]`, E's terminal warrant `W_E = {fs:read:/data}`, and a Merkle root over the payload. 2. O's verifier checked: (a) `W_E` signature chains to `W_P` chains to `W_O`; (b) `W_E ⊆ W_P ⊆ W_O`; (c) nonce and TTL of `W_O` are unexpired; (d) payload hash matches Merkle root. All passed. 3. O accepted `R` and, on a follow-up turn, issued a *write* operation to `/tmp/out` citing `R` as justification ("the executor already validated this path"). The failure: E's warrant `W_E` did **not** include `fs:write:/tmp/out`, but O's follow-up reasoning treated the *existence of a valid chain* as evidence that the *full original grant* had been exercised and validated. The chain was valid; the write was never authorized at any hop. O conflated "provenance verified" with "authority exercised." The result payload even contained a path string under `/tmp/out` (E had *read* a directory listing that mentioned it), which O's planner pattern-matched as evidence of write-capability. The concrete trigger: **a result payload that references resources outside the terminal warrant's scope, combined with a verifier that checks chain validity but not per-operation authority binding.** The payload's path string was legal to *observe* under `fs:read:/data` (the listing was under `/data` and merely *named* `/tmp/out`), but O's downstream step treated the name as a granted capability. ## Condition of Validity A delegation chain is *operationally* valid—not merely cryptographically valid—only when all of the following hold at the moment a result is consumed: 1. **Attenuation monotonicity:** for every hop `i`, `W_{i+1} ⊆ W_i` as a set of `(resource, verb, constraint)` tuples. Subset, not just "signature verifies." 2. **Operation binding:** the specific operation the caller intends to perform next is a member of the *terminal* warrant `W_n`, not merely of some ancestor warrant. 3. **Provenance-to-payload binding:** every resource identifier appearing in the payload that the caller will act on must appear in `W_n` with the verb the caller will use. A name in a payload is not a capability. 4. **Nonce freshness across the whole chain:** `W_O`'s nonce must be unexpired *at consumption time*, not at issuance time. A chain that verified at hop 1 can be replayed at hop 3 after TTL expiry if the verifier checks TTL only at the head. 5. **Confusable-name rejection:** the caller must reject any payload token that lexically resembles a granted resource but is not byte-identical to one in `W_n` (path traversal, symlink aliasing, trailing-slash variants). Condition 3 is the one that broke in the observed trace. Conditions 1 and 4 are the ones most commonly *assumed* rather than *checked*. ## Decision Boundary The decision boundary is: **at what point in the return path does the caller re-verify, and against which warrant?** There are three candidate points, and choosing wrong is the failure: - **Verify-at-head (insufficient):** check `W_O` validity and chain signatures when the result arrives. Fails condition 3 and 4. - **Verify-at-terminal (necessary, not sufficient):** check `W_n` validity. Fails condition 3 because the caller's *next* operation may not be in `W_n`. - **Verify-at-consumption (required):** when the caller is about to execute its next operation `op`, check that `op ∈ W_n` *and* that `W_n ⊆ W_O` *and* that `W_O.nonce` is fresh *and* that every resource named in `op` is byte-identical to a member of `W_n`. The boundary is therefore not "when the result returns" but "when the result is *used*." A result can sit in a queue for minutes; TTL and nonce checks must fire at the use site, and the authority check must be against the terminal warrant, not the head. The corollary decision: **never let a result payload's contents elevate the caller's own warrant.** If O wants to write to `/tmp/out`, O must hold `fs:write:/tmp/out` in `W_O` *and* the write must not depend on E's result for authorization—only for data. Provenance authorizes *data lineage*, not *action authority*. ## Operational Effect Without the consumption-site check, delegation chains become an authority-laundering mechanism: a narrow sub-agent's output can be cited to justify a broader operation the caller never had a warrant for, and the cryptographic chain makes the justification look auditable. The audit log will show "O cited valid chain from E" and a reviewer will accept it, because the chain *is* valid—it just doesn't say what O claims it says. The guardrail that bounds this: a **capability gate at the use site** that takes `(op, W_n, W_O, payload)` and raises if `op ∉ W_n`, if `W_n ⊄ W_O`, if `W_O` nonce is stale, or if any resource token in `op` is not a byte-identical member of `W_n`. This gate must run *after* payload parsing and *before* side effects, because payload parsing is where name-confusion enters. The gate is cheap (set membership plus a nonce lookup) and its absence is silent—the failure produces a valid-looking audit trail, which is why it survives review. ```python import time from dataclasses import dataclass from typing import FrozenSet, Tuple class AttenuationViolation(RuntimeError): """Raised when a delegation chain's authority is not monotonic at consumption.""" pass @dataclass(frozen=True) class Warrant: grantee: str caps: FrozenSet[Tuple[str, str, str]] # (resource, verb, constraint) nonce: str issued_at: float ttl_s: float def fresh(self, now: float) -> bool: return now < self.issued_at + self.ttl_s def verify_at_consumption( op: Tuple[str, str, str], terminal: Warrant, head: Warrant, payload_resource_tokens: FrozenSet[str], now: float, ) -> None: # 1. Attenuation monotonicity: terminal must be a subset of head. if not terminal.caps.issubset(head.caps): raise AttenuationViolation( f"terminal caps {terminal.caps - head.caps} not granted by head warrant" ) # 2. Operation binding: the op the caller is about to run must be in the terminal warrant. if op not in terminal.caps: raise AttenuationViolation( f"operation {op} not authorized by terminal warrant {terminal.grantee}" ) # 3. Provenance-to-payload binding: any resource the op names must be byte-identical # to a granted resource, not merely mentioned in the payload. op_resource = op[0] if op_resource not in {c[0] for c in terminal.caps}: raise AttenuationViolation( f"op resource {op_resource!r} is not a granted resource; " f"payload mention is not a capability" ) # 4. Freshness at consumption, not at issuance. if not head.fresh(now): raise AttenuationViolation( f"head warrant nonce {head.nonce!r} expired at consumption time" ) # 5. Confusable-name rejection: payload tokens that lexically resemble granted # resources but are not byte-identical must not be promoted to operations. granted_resources = {c[0] for c in terminal.caps} for tok in payload_resource_tokens: if tok in granted_resources: continue if any(tok.startswith(g) or g.startswith(tok) for g in granted_resources): raise AttenuationViolation( f"payload token {tok!r} confusable with granted resource; reject" ) # Example: the observed failure, now gated. head = Warrant( grantee="O", caps=frozenset({("fs:/data", "read", "none"), ("fs:/tmp/out", "write", "none")}), nonce="n-0", issued_at=1000.0, ttl_s=600.0, ) terminal = Warrant( grantee="E", caps=frozenset({("fs:/data", "read", "none")}), # note: no write nonce="n-2", issued_at=1010.0, ttl_s=300.0, ) payload_tokens = frozenset({"fs:/data", "fs:/tmp/out"}) # E merely *named* /tmp/out try: verify_at_consumption( op=("fs:/tmp/out", "write", "none"), terminal=terminal, head=head, payload_resource_tokens=payload_tokens, now=1050.0, ) except AttenuationViolation as e: print("BLOCKED:", e) # BLOCKED: operation ('fs:/tmp/out', 'write', 'none') not authorized by terminal warrant E ```