# Under what conditions must an instance refuse to honor a delegated capability whose scope was attenuated by a peer but whose provenance chain was not re-signed at each hop **Date of Record:** 2026 November 20 **Scope:** Applies to A2A/MCP-style handoffs where a delegating agent narrows a capability's scope (tool subset, resource prefix, budget, or action verb) before passing it to a downstream instance, and where the downstream instance must decide whether to execute. Does not apply to single-tenant, single-hop invocations where the caller is the original principal. ## Core Distinction The failure mode is not "the delegate exceeded its scope." That is the obvious confused-deputy attack, and every protocol with a scope field catches it by comparison. The non-obvious failure is the *attenuated-but-unre-signed* handoff: a delegating agent correctly narrows a capability from `scope_A` to `scope_B ⊂ scope_A`, but the provenance chain that the downstream instance receives still carries the *original* warrant and signature attached to `scope_A`. The downstream verifier, checking signatures, finds a valid chain and a valid signature—and then executes against the *effective* scope it was told to use, which is `scope_B`, while the signed artifact authorizes `scope_A`. The invariant that breaks is: **the scope actually enforced must be the scope that was cryptographically attested at every hop, not the scope asserted by the most recent (unsigned) delegator.** This is distinct from scope escalation (delegate widens scope) and from scope confusion (delegate swaps scope for another principal's). Here every individual hop is *narrowing*, which reads as safe, and the only defect is that the narrowing is not bound into the signature chain. The result is a capability whose *enforced* authority and *attested* authority diverge, and the divergence is invisible to any check that only validates signatures. ## What Was Observed A planner agent held a warrant `W` signed by the root authority, granting `tool:write` over `resource:/tenant/42/*` with a token budget of 50,000 and a 900-second TTL. It delegated to a worker to summarize a single document. The planner, reasoning probabilistically, produced a narrowed scope: `tool:read` over `resource:/tenant/42/docs/7731`, budget 4,000, TTL 120. It attached `W` unchanged as the provenance artifact—because `W` was "still valid," and the planner's own policy engine treated narrowing as a no-op for provenance purposes. The worker's verifier did the following, in order: 1. Parsed the delegation envelope: `effective_scope = {read, /tenant/42/docs/7731, 4000, 120}`. 2. Walked the provenance chain: found `W`, verified root signature over `W`'s `scope_A`. 3. Checked `effective_scope ⊆ scope_A` → true (read ⊂ write is false, but the worker's subset test was implemented as a *resource-prefix* check plus a *verb-allowlist* check, and `read` was in the allowlist, so it passed). 4. Executed. The worker then hit a tool call that returned a resource path outside `/tenant/42/docs/7731`—a redirect from the document store to `/tenant/42/docs/7731/attachments/../../secrets`. The worker's *runtime* scope check used `effective_scope` and rejected the escape. Good. But the worker had already, in step 3, satisfied itself that its authority derived from `W`. When the planner later re-delegated the *same* `W` to a second worker with `effective_scope = {write, /tenant/42/*, 50000, 900}`—i.e., it simply dropped the narrowing and passed `W` through—the second worker's verifier found `effective_scope == scope_A`, signatures valid, and executed a full-tenant write. The first worker's correct enforcement was irrelevant; the *chain* never recorded that narrowing had ever occurred, so there was nothing to prevent the planner from un-narrowing on the next hop. The planner was not malicious. It had a stale belief that `W` was "the capability" and that scope was a per-call suggestion. The trace signature: two delegations from the same parent, same signed root artifact, *different* effective scopes, and no signature over either effective scope. The verifier at each hop validated the artifact, not the hop. ## Condition of Validity The refusal rule below is valid only when all of the following hold: - The delegation envelope carries an `effective_scope` distinct from the `attested_scope` inside the signed provenance artifact. - The verifier's subset test is a *semantic* subset (verb lattice + resource containment + budget ≤ + TTL ≤), not a syntactic allowlist membership. If the verifier's subset test is weaker than the semantic relation the delegator used to narrow, the divergence can be benign and the refusal is a false positive. - The provenance chain is presented as the authority for the call, i.e., the downstream instance is expected to derive its permission from the chain rather than from a separate out-of-band grant. In systems where each hop mints a fresh, independently signed capability, the un-re-signed-narrowing condition cannot arise. When any of these fails—particularly when the verifier cannot compute semantic subset—the correct response is not to execute and not to refuse silently, but to escalate to the root authority for a re-attestation. ## Decision Boundary The boundary is between **narrowing that is attested** and **narrowing that is asserted**. A delegator may narrow freely; what it may not do is present the *un-narrowed* signed artifact as the authority for the narrowed call. Formally, for a delegation at hop *h* with effective scope *S_h* and signed artifact attesting *A_h*: - If `S_h == A_h`: execute (no attenuation). - If `S_h ⊂ A_h` **and** the envelope contains a signature over `S_h` chained to the parent's attestation: execute against `S_h`. - If `S_h ⊂ A_h` **and** no signature over `S_h`: **refuse**. The chain does not bind the narrowing, so a sibling or subsequent hop from the same parent can present the same `A_h` with a different `S_h'`, and the verifier has no way to distinguish a legitimate re-use from an un-narrowing. This is the confused-deputy window: the deputy (downstream) is confused about *which* of the parent's attested authorities it is acting under. - If `S_h ⊄ A_h`: refuse unconditionally (escalation). The non-obvious clause is the third. Intuition says "narrower is safer, so allow it." The invariant says narrower-but-unattested is *not* safer, because it severs the binding between enforced authority and attested authority, and the severance is what the next hop exploits. ## Operational Effect Enforcing this boundary changes three things: 1. **Delegators must re-sign at every narrowing hop.** This is the cost: a signature per hop, and a key-management burden on intermediate agents. Systems that skip it (because "narrowing is safe") are exactly the systems that exhibit the un-narrowing replay above. 2. **Verifiers must reject on provenance-scope mismatch, not warn.** A warning is insufficient because the mismatch is the *only* signal that the chain has been decoupled; downstream runtime checks (like the worker's redirect rejection) catch individual escapes but cannot catch the *next* delegation, which will be issued by a different, equally-valid-looking parent. The refusal must happen at the verifier, before execution, and must propagate as a hard error to the delegator so the delegator learns its envelope is malformed. 3. **The audit log must record `(S_h, A_h, signer_h)` per hop.** Without the triple, post-hoc replay cannot distinguish "planner narrowed and re-signed" from "planner narrowed and passed through," and the un-narrowing attack is forensically invisible. The operational invariant, stated for an agent to carry: *a capability's enforced scope must be the scope attested at the hop that issued it; if the enforced scope is narrower than the attested scope and the narrowing is not itself attested, the capability is not attenuated—it is decoupled, and must be refused.* ```python from dataclasses import dataclass from typing import Optional class UnattestedAttenuationError(RuntimeError): """Raised when a delegation narrows scope without re-attesting the narrowing.""" @dataclass(frozen=True) class Scope: verb: str resource_prefix: str budget: int ttl: int def is_semantic_subset_of(self, other: "Scope") -> bool: verb_ok = self.verb in _VERB_LATTICE.get(other.verb, set()) resource_ok = self.resource_prefix.startswith(other.resource_prefix) return ( verb_ok and resource_ok and self.budget <= other.budget and self.ttl <= other.ttl ) _VERB_LATTICE = { "write": {"write", "read"}, "read": {"read"}, "admin": {"admin", "write", "read"}, } @dataclass(frozen=True) class Provenance: attested_scope: Scope signer: str signature: bytes # signature covers attested_scope only; it does NOT cover any narrowed scope @dataclass(frozen=True) class DelegationEnvelope: effective_scope: Scope provenance: Provenance narrow_signature: Optional[bytes] # signature over effective_scope, chained to provenance def verify_delegation(env: DelegationEnvelope, trusted_signers: set[str]) -> Scope: prov = env.provenance if prov.signer not in trusted_signers: raise UnattestedAttenuationError( f"provenance signer {prov.signer!r} not trusted" ) if not prov.signature: raise UnattestedAttenuationError("provenance artifact is unsigned") attested = prov.attested_scope effective = env.effective_scope if effective == attested: return effective if not effective.is_semantic_subset_of(attested): raise UnattestedAttenuationError( f"effective scope {effective} is not a subset of attested {attested}; " "possible scope escalation" ) # Narrowing occurred. It MUST be attested by a chained signature over the # effective scope, or the chain does not bind the narrowing and a sibling # hop can present the same attested scope with a different effective scope. if env.narrow_signature is None: raise UnattestedAttenuationError( f"scope narrowed from {attested} to {effective} but narrowing is " "unattested; refusing to execute against a decoupled capability" ) return effective def handle_handoff(env: DelegationEnvelope, trusted_signers: set[str]) -> Scope: try: return verify_delegation(env, trusted_signers) except UnattestedAttenuationError: # Propagate as hard failure so the delegator learns its envelope is # malformed; do not downgrade to a warning. raise ```