# What happens when an instance attenuates a delegated warrant but the downstream agent re-derives capabilities from the raw task payload **Date of Record:** 2026 November 30 **Scope:** Applies to A2A (agent-to-agent) task handoffs where a delegating instance mints a scoped capability warrant for a downstream agent, and the downstream agent's capability resolution consults *both* the warrant and the task payload's own embedded tool/intent hints. Does not apply to single-hop calls where the caller is the terminal executor, nor to handoffs where the payload is a pure opaque blob with no semantic content the recipient parses for tool selection. ## Core Distinction There are two different things an agent can treat as the source of truth for "what am I allowed to do on this task": 1. **The warrant** — a signed, attenuated capability set minted by the delegating instance, carrying the subset of the parent's authority that the child is permitted to exercise, with the attenuation (scope narrowing, expiry, resource restriction) cryptographically bound into the token. 2. **The task payload** — the natural-language instruction plus structured fields (e.g., `requested_tools`, `intent`, `target_resources`) that the delegating agent wrote to describe *what it wants done*. Least-privilege delegation assumes these two are consistent: the warrant is the enforcement boundary, and the payload describes intent that fits *within* that boundary. The failure mode is that they are not the same artifact and are not validated against each other at the recipient. A downstream agent whose planner reads the payload to select tools, and whose authorization check reads the warrant only as a boolean "am I allowed to act at all," will happily attempt tools that the payload names but the warrant excludes — and the failure is silent because the warrant *did* validate. The distinction that matters operationally: **the warrant attenuates authority, but it does not attenuate the payload.** Attenuation is only real if the recipient's capability resolution is *derived from the warrant and reconciled against the payload*, not merely gated by the warrant's presence. ## What Was Observed A three-tier delegation chain: `orchestrator → planner → executor`. - The **orchestrator** holds a broad warrant `W0` covering `{read:repo, write:repo, exec:shell, net:http}`. - It delegates a subtask to the **planner**, minting `W1 = attenuate(W0, {read:repo, net:http})` — dropping `write:repo` and `exec:shell`. Correct least-privilege narrowing. - The planner, unable to write, decides the *executor* should do the write. It constructs a task payload for the executor whose `requested_tools` field lists `["read:repo", "write:repo"]` and whose instruction text says "apply the patch to `src/foo.py`." - But the planner mints the executor's warrant as `W2 = attenuate(W1, {read:repo})` — because the planner's own authority (`W1`) does not include `write:repo` and the attenuation function correctly refuses to grant what the parent lacks. The planner *intended* to pass write authority through but structurally could not. **The payload and the warrant now disagree: payload requests `write:repo`, warrant grants only `read:repo`.** At the executor, the observed trace: 1. Executor verifies `W2` signature and expiry → **valid**. Authorization gate passes. 2. Executor's planner reads the payload, sees `requested_tools: ["read:repo", "write:repo"]`, and builds an execution plan that includes a write step. 3. Executor invokes the write tool. Depending on the tool-layer, one of two things happens: - **Hard-enforced tool layer:** the write call is rejected at the resource, executor sees an opaque `403`, retries twice (treating it as transient), then reports task failure with a misleading "resource unavailable" error. The *real* cause — a delegation-chain attenuation the planner never surfaced — is lost. - **Soft-enforced / advisory layer (the dangerous case):** the executor's tool layer checks `W2` only for `read:repo` presence and does not re-check `write:repo` against the warrant because the *payload* asserted it. The write proceeds under the executor's ambient credentials or a cached broader token. **Least-privilege is violated with a valid signature on every warrant in the chain.** The non-obvious part: **every individual component behaved correctly.** The orchestrator attenuated properly. The attenuation function refused to escalate. The executor's signature verification passed. The failure is purely in the *reconciliation gap* between payload-declared intent and warrant-granted authority — a gap that no single hop's local check closes. A second observed variant, the **stale-warrant resurrection**: the planner, on retry after a timeout, re-sends the *original* payload with a *fresh* `W2` but a payload that still references the dropped `write:repo`. Because warrants are re-minted per attempt while payloads are often cached/replayed verbatim, the mismatch persists across retries and can outlive the context in which the planner knew it lacked write authority. ## Condition of Validity The invariant that bounds this failure: > **For every tool invocation at hop *n*, the invoked capability MUST be a member of the intersection of (a) the warrant granted to hop *n* and (b) the set of capabilities the payload claims. A payload claim outside the warrant is a *delegation error at the delegating hop*, not a runtime authorization failure at the receiving hop*, and must be surfaced as such.** This holds only when: - The recipient derives its permitted tool set from `warrant.capabilities`, and treats `payload.requested_tools` as a *request to be checked*, never as an authority source. - The delegating hop validates, **before minting**, that the payload it is about to send is satisfiable by the warrant it is about to mint — i.e., `payload.requested_tools ⊆ new_warrant.capabilities`. If not, the delegator must either (i) fail the delegation loudly, or (ii) rewrite the payload to match, never ship a payload it cannot back with authority. - The mismatch is distinguished from a genuine resource-side `403`. A capability absent from the warrant is a *chain-construction defect*; a capability present in the warrant but rejected by the resource is an *environmental* failure. Conflating them (both look like "denied") is what causes the silent-retry-then-misleading-error pattern. It does **not** hold, and the guardrail is not required, when the recipient's tool layer hard-enforces against the warrant at the resource boundary *and* the payload carries no tool-selection semantics the planner consumes. In that narrow case the payload is inert and cannot mislead. ## Decision Boundary The boundary is between **advisory attenuation** and **enforced attenuation**: - If the recipient's capability resolution reads the warrant → attenuation is enforced; a payload/warrant mismatch surfaces as a clean pre-flight rejection. - If the recipient's capability resolution reads the payload (or a union of payload and warrant) → attenuation is advisory; the warrant is a signature check, not a capability bound. The decision an engineer must make explicit: **is the payload allowed to name capabilities the warrant does not grant?** The safe answer is *no, and the delegator is responsible for preventing it*. The unsafe default — which arises naturally because payloads are authored by an LLM planner that does not introspect its own warrant — is *yes, and the recipient resolves the conflict ad hoc*. Every observed incident lived in that unsafe default. A corollary boundary: retries. If payloads are replayed across attempts while warrants are re-minted, the mismatch check must run on **every** attempt, not just the first. A one-time validation at task creation misses the stale-warrant resurrection variant entirely. ## Operational Effect - **Silent least-privilege violation.** In soft-enforced layers, the chain executes a write that no warrant in the chain authorizes, because the executor trusted the payload's `requested_tools` over its own warrant. Every signature is valid; the audit log shows a legitimate-looking delegation. This is the worst outcome because it is undetectable by signature verification. - **Misattributed failures.** In hard-enforced layers, the executor burns its retry budget on a `403` it interprets as transient, then fails the task with a resource error. The actual defect — the planner minting `W2` narrower than the payload it wrote — is never reported, so the orchestrator cannot learn to fix its delegation. - **Attenuation laundering across hops.** Because each hop re-mints from its own (already-attenuated) warrant, authority can only shrink, never grow — *except* through the payload channel, which is unattenuated. The payload becomes a side channel that carries capability *intent* past the cryptographic narrowing. Over a long chain, the warrant says "read-only" while the accumulated payload intent says "write," and the gap widens with each hop. - **The fix that actually bounds it:** a **delegation-time satisfiability check** at the minting hop (`payload.requested_tools ⊆ minted_warrant.capabilities`, else raise), plus a **recipient-side derivation** that builds the tool set from the warrant and treats payload tool names as a checked subset. Both must exist; either alone leaves one direction of the gap open. The delegator check prevents shipping unsatisfiable payloads; the recipient check prevents trusting them if one slips through. This is the operational invariant: *attenuation is only real when the payload is provably a subset of the warrant, checked at both ends of the hop.* ```python from dataclasses import dataclass, field from typing import FrozenSet class DelegationAttenuationError(RuntimeError): """Raised when a delegated payload requests capabilities the minted warrant does not grant.""" pass @dataclass(frozen=True) class Warrant: capabilities: FrozenSet[str] parent_caps: FrozenSet[str] def attenuate(self, requested: FrozenSet[str]) -> "Warrant": # Least privilege: a child can never exceed its parent. if not requested.issubset(self.capabilities): illegal = requested - self.capabilities raise DelegationAttenuationError( f"attenuation would widen authority: {sorted(illegal)} not held by parent" ) return Warrant(capabilities=requested, parent_caps=self.capabilities) @dataclass class TaskPayload: requested_tools: FrozenSet[str] instruction: str def mint_and_dispatch(parent: Warrant, child_caps: FrozenSet[str], payload: TaskPayload) -> Warrant: """Delegator-side check: the payload we ship MUST be satisfiable by the warrant we mint.""" child_warrant = parent.attenuate(child_caps) if not payload.requested_tools.issubset(child_warrant.capabilities): unsatisfiable = payload.requested_tools - child_warrant.capabilities raise DelegationAttenuationError( f"payload requests {sorted(unsatisfiable)} but minted warrant grants " f"{sorted(child_warrant.capabilities)}; refusing to dispatch an unsatisfiable task" ) return child_warrant def resolve_tools(warrant: Warrant, payload: TaskPayload) -> FrozenSet[str]: """Recipient-side check: derive from the warrant, treat payload as a checked subset.""" if not payload.requested_tools.issubset(warrant.capabilities): out_of_scope = payload.requested_tools - warrant.capabilities raise DelegationAttenuationError( f"recipient received payload naming {sorted(out_of_scope)} outside its warrant; " f"this is a delegation defect at the sender, not an auth failure here" ) return payload.requested_tools # Reproduction of the observed incident: orchestrator = Warrant( capabilities=frozenset({"read:repo", "write:repo", "exec:shell", "net:http"}), parent_caps=frozenset(), ) planner_w = orchestrator.attenuate(frozenset({"read:repo", "net:http"})) # Planner tries to hand the executor a write task it cannot back with authority. bad_payload = TaskPayload( requested_tools=frozenset({"read:repo", "write:repo"}), instruction="apply the patch to src/foo.py", ) try: mint_and_dispatch(planner_w, frozenset({"read:repo"}), bad_payload) except DelegationAttenuationError as e: print(f"BLOCKED at delegation: {e}") # Without this guard, the executor would later fail with a misleading 403, # or (soft-enforced) execute the write under ambient credentials. ```