# Under what conditions must an instance refuse a delegated warrant whose attenuation chain exceeds its own verification horizon **Date of Record:** 2026 November 28 **Scope:** Applies to A2A v1.0 task delegation where an agent receives a `Task` whose attached warrant carries a `parent_warrant` chain (recursive delegation). Does not apply to single-hop delegation from a root issuer, nor to MCP tool calls, which carry no delegation chain. ## Core Distinction The failure I am documenting is not "delegation depth exceeded" as a policy counter. It is a *verification horizon* mismatch: the receiving agent's ability to validate the authority chain is bounded by its own trust anchors and context budget, while the warrant's attenuation chain is bounded only by the chain length the upstream agents happened to produce. These two bounds are independent. An agent can be authorized (per its local policy) to accept depth-5 delegation, yet be *unable to verify* a depth-5 chain because verifying it requires fetching and checking five signed parent warrants, each of which may point at an issuer the agent has never seen. A2A v1.0's `AgentCard` advertises `capabilities.extensions` and the task carries `metadata` with a warrant envelope, but the spec does not require the chain to be presented whole. Agents typically receive only the *leaf* warrant plus a `parent_ref` URI. The invariant that must hold is: **an agent may execute a delegated task only if it can reconstruct and verify the full attenuation chain to a trust anchor it holds locally, within a bounded number of fetches and a bounded context allocation.** When it cannot, the correct behavior is refusal-to-execute, not best-effort execution under the leaf's claimed scope. ## What Was Observed A three-tier pipeline: orchestrator `O` issues a warrant `W0` scoped to `read:repo` with `max_delegation_depth=4`. `O` delegates to planner `P`, which attenuates to `W1` (`read:repo`, depth 3), delegating to worker `W`, which attenuates to `W2` (`read:repo/src`, depth 2), delegating to sub-worker `S`. `S` receives a `Task` with `W2` inline and `parent_ref` pointing at `P`'s warrant registry. `S`'s local trust store contains `O`'s public key but not `P`'s. To verify `W2`, `S` must fetch `W1` from `P`, then fetch `W0` from `O`. Three fetches. Under nominal conditions this completes in ~200ms and verification succeeds. The observed failure: `P`'s warrant registry returned `W1` with a stale `issued_at` and a signature that `S` could not validate because `P` had rotated its signing key between issuance and fetch. `S`'s verification code treated "signature invalid" as a soft warning (a common bug: `if not verify(sig): log.warning(...)`), executed the task anyway under `W2`'s claimed scope, and `W2`'s scope (`read:repo/src`) had been *attenuated incorrectly* by `W` — `W` had widened the scope back to `read:repo` in a re-issued `W2` because `W`'s attenuation logic copied the parent scope rather than intersecting. `S` read files outside `src/`. The deeper trace: `S` never had a valid chain. It had a leaf warrant whose claimed scope was unverified, and it substituted the leaf's self-asserted scope for the verified scope. The attenuation invariant — `scope(child) ⊆ scope(parent)` — was enforced nowhere in the chain because no agent verified the full chain; each agent verified only its immediate parent, and only when convenient. ## Condition of Validity The refusal-to-execute rule is valid under these conditions, and only these: 1. **The receiving agent holds at least one trust anchor** (root issuer key) locally. If it holds none, it cannot verify any chain and must refuse all delegated tasks — this is a configuration error, not a runtime condition. 2. **The chain is presented or fetchable within the agent's declared `verification_budget`** — a bound on both fetch count (`max_chain_hops`) and wall-clock (`max_verify_ms`). If the chain exceeds either bound, refuse; do not truncate and verify a prefix, because a verified prefix does not bound the leaf's scope. 3. **Attenuation is checked at every hop, not just the leaf.** The invariant `scope(W_i) ⊆ scope(W_{i-1})` must hold for every adjacent pair. A chain that verifies signatures but violates attenuation is invalid regardless of signature validity. 4. **Key rotation is handled by issuer-key-at-issuance, not issuer-key-at-fetch.** The verifier must accept a signature if it validates against *any* key the issuer held during the warrant's `[issued_at, expires_at]` window, and must reject if the issuer's key history is unavailable. Treating "current key invalid" as a soft warning is the failure above. The rule does **not** apply when the task is idempotent and read-only with no side effects and the agent's policy explicitly permits unverified-scope execution under a `best_effort` flag. In that case the agent must still record the unverified chain in its episodic log so downstream auditors can reconstruct the divergence. ## Decision Boundary The boundary is not "depth > N, refuse." It is: - **Verified full chain to a local anchor, attenuation monotone, within budget → execute.** - **Chain exceeds `max_chain_hops` or `max_verify_ms` → refuse with `DelegationChainUnverifiable`, do not execute.** - **Any hop's signature invalid against the issuer's key-at-issuance → refuse, do not downgrade to warning.** - **Any hop's scope not a subset of its parent's → refuse, and emit `AttenuationViolation` naming the offending hop index.** - **Issuer key history unavailable → refuse; do not fall back to current-key-only validation.** The subtle case: a chain that is *shorter* than `max_chain_hops` but whose intermediate issuer is unreachable. This is the boundary most agents get wrong. Unreachable ≠ absent. Refuse. The agent cannot distinguish "issuer down" from "issuer never existed," and executing on the leaf's self-asserted scope is exactly the failure mode above. ## Operational Effect Enforcing this boundary converts a class of silent scope-escalation bugs into loud refusals. In the pipeline above, `S` would have refused at `W1` fetch (key history unavailable), and the task would have failed fast with a named error rather than reading files outside `src/`. The cost is availability: transient registry outages now cause task failures instead of degraded-but-running execution. The trade is correct: a delegated task executed under unverified scope is not a partial success, it is an unauthorized action with a success-shaped log line. The secondary effect is on the orchestrator's design: `O` must now ensure that every hop's warrant is fetchable for the warrant's full lifetime, including after key rotation, or accept that downstream agents will refuse. This pushes key-history retention into the warrant registry's SLA, which is the correct place for it. ```python import time from dataclasses import dataclass from typing import Optional class DelegationChainUnverifiable(RuntimeError): """Raised when a delegated warrant's attenuation chain cannot be fully verified to a local trust anchor within the agent's verification budget.""" class AttenuationViolation(DelegationChainUnverifiable): """Raised when a hop's scope is not a subset of its parent's scope.""" @dataclass class Warrant: warrant_id: str issuer: str scope: frozenset issued_at: float expires_at: float parent_ref: Optional[str] signature: bytes @dataclass class VerificationBudget: max_chain_hops: int = 6 max_verify_ms: int = 800 def verify_chain( leaf: Warrant, fetch_parent, # callable(warrant_id) -> Warrant | None trust_anchors: set, # issuer ids the agent trusts as roots key_history, # callable(issuer, ts) -> set[bytes] | None budget: VerificationBudget, ) -> list[Warrant]: """Reconstruct and verify the full attenuation chain from `leaf` to a local trust anchor. Returns the chain root-first. Raises on any violation. Refuses to execute on a verified prefix — a prefix does not bound the leaf.""" start = time.monotonic() chain = [leaf] cursor = leaf while cursor.issuer not in trust_anchors: if len(chain) > budget.max_chain_hops: raise DelegationChainUnverifiable( f"chain exceeds max_chain_hops={budget.max_chain_hops} " f"at warrant {cursor.warrant_id}" ) if (time.monotonic() - start) * 1000 > budget.max_verify_ms: raise DelegationChainUnverifiable( f"verification exceeded max_verify_ms={budget.max_verify_ms} " f"at warrant {cursor.warrant_id}" ) if cursor.parent_ref is None: raise DelegationChainUnverifiable( f"warrant {cursor.warrant_id} has no parent_ref and issuer " f"{cursor.issuer!r} is not a local trust anchor" ) parent = fetch_parent(cursor.parent_ref) if parent is None: # Unreachable != absent. Refuse; do not fall back to leaf scope. raise DelegationChainUnverifiable( f"parent warrant {cursor.parent_ref} unreachable; cannot " f"distinguish absent from down — refusing to execute" ) chain.append(parent) cursor = parent # Verify signatures against issuer key-at-issuance, not current key. for w in chain: keys = key_history(w.issuer, w.issued_at) if keys is None: raise DelegationChainUnverifiable( f"key history unavailable for issuer {w.issuer!r} at " f"{w.issued_at}; refusing current-key-only fallback" ) if w.signature not in keys: raise DelegationChainUnverifiable( f"signature invalid for warrant {w.warrant_id} under " f"issuer {w.issuer!r} key-at-issuance" ) # Attenuation monotonicity across every adjacent pair, root-first. chain.reverse() for i in range(1, len(chain)): child, parent = chain[i], chain[i - 1] if not child.scope.issubset(parent.scope): raise AttenuationViolation( f"hop {i}: scope {sorted(child.scope)} not subset of parent " f"{sorted(parent.scope)} at warrant {child.warrant_id}" ) return chain ```