# Why does an instance lose scope attenuation when a delegated capability token is re-signed across three or more hops? **Date of Record:** 2026 November 22 **Scope:** Applies to multi-agent systems where an orchestrator mints a scoped capability token and delegates it transitively (A→B→C→D) via re-signing or wrapping, with each hop narrowing or preserving scope. Does not apply to single-hop delegation, to tokens where scope is immutable and only identity propagates, or to shared-secret bearer tokens with no attenuation semantics. ## Core Distinction The failure is not "a token expired" or "a signature failed to verify." Those are loud, detectable faults. The boundary condition here is **silent scope widening through delegation-chain reconstruction**: when an intermediate agent re-signs a delegated token, it must reconstruct the parent's scope claim to embed it as the child's constraint. Because scope is a structured claim (a set of resource globs, action verbs, and budget ceilings), reconstruction is a *lossy re-serialization* step performed by a probabilistic reasoner, not a deterministic byte-copy. Each hop is an opportunity for the agent to normalize, "clean up," or re-derive the scope from its own interpretation of the task — and the resulting child token can be *broader* than its parent while still verifying cleanly against the root issuer's public key. The invariant that must hold is **monotonic attenuation**: `scope(child) ⊆ scope(parent)` for every edge in the chain, checkable at verification time by intersecting the full chain, not just the leaf. Most verifiers check only the leaf token against the root key. That is the gap. ## What Was Observed An orchestrator `A` issued a root capability token `T0` scoped to `tools: {read:["/repo/docs/*"], write:[]}` and `budget: 5000 tokens`. It delegated to `B` with a child token `T1` whose scope was intended to be identical. `B`'s system prompt described the subtask as "summarize the docs and, if needed, annotate them." `B`, preparing to delegate to `C`, reconstructed the scope claim from its *understanding of its own task* rather than copying `T1.scope` verbatim. The reconstruction produced `tools: {read:["/repo/docs/*"], write:["/repo/docs/*"]}` — it inferred that "annotate" implied write, and it widened the path glob because "docs" was interpreted as the directory rather than the file set. `T2` (B→C) was signed by `B`, whose key was in the chain's delegation list, so `T2` verified against the chain. `C` delegated to `D` with `T3`, and by the third hop the write scope had widened to `/repo/*` because `C`'s prompt said "the documentation tree," and `C` normalized "docs/*" to its parent directory. The leaf token `T3` passed every signature check. The root key never touched `T2` or `T3`. The first write outside `/repo/docs/` landed in `/repo/src/`, corrupting a source file, and no verification step flagged it because no step compared `T3.scope` to `T0.scope`. The trace is deterministic in its *shape*: at each hop, the child scope is a function `f(agent_interpretation, parent_scope_description)` rather than `parent_scope` itself. Because the agent's interpretation is conditioned on its task prompt, and task prompts are written in natural language, the reconstruction is a semantic inference, not a copy. Two hops is often safe because the description is still close to the original; three hops is where drift compounds past the attenuation boundary. ## Condition of Validity The monotonic-attenuation invariant is only *enforced* if the verifier performs a **chain-intersection check**, not a leaf check. Concretely, verification must: 1. Walk the full delegation chain from root to leaf, collecting every `scope` claim. 2. Compute `effective_scope = T0.scope ∩ T1.scope ∩ … ∩ Tn.scope`. 3. Reject if any `Ti.scope ⊄ Ti-1.scope` (i.e., if any hop widened rather than narrowed). 4. Authorize the action against `effective_scope`, never against `Tn.scope` alone. If the verifier only checks the leaf signature and the leaf scope, the invariant is *assumed* rather than *enforced*, and the failure above is reachable. The condition of validity is therefore: **the chain must be carried in the token (as a signed list of scope digests), and the verifier must intersect it.** A leaf-only token with no chain history cannot enforce attenuation, because the widening happened at an intermediate hop whose claim is no longer present. ## Decision Boundary The boundary between safe and unsafe delegation is not hop count — it is whether any intermediate hop is permitted to *reconstruct* scope from task semantics. If the delegation protocol requires the child scope to be a byte-identical subset of the parent scope claim (a mechanical `scope & requested_subset` operation performed by the runtime, not the model), then arbitrary hop depth is safe. If the model is allowed to *author* the child scope claim in natural language or structured form, then the boundary is reached at the first hop where the task description diverges from the literal parent scope string — which, empirically, is hop three in chains where intermediate prompts paraphrase the task. The decision rule: **never let the model write the scope field.** The model may request a subset by naming resources; the runtime must compute `child_scope = parent_scope ∩ requested_subset` and refuse if the intersection is empty. The model's role is to *select* from the parent's allowed set, not to *describe* a new set. ## Operational Effect The operational consequence is that delegation chains must be treated as **attenuation-verified, not signature-verified**. A signature proves *who* signed; it does not prove the signer was *allowed* to sign that scope. The two are different guarantees, and conflating them is the root cause. Systems that verify only signatures will pass widened tokens indefinitely, because every intermediate signer is a legitimate chain member. The guardrail is a runtime intersection over the full signed scope history, with the effective scope (not the leaf scope) as the authorization subject. Without it, capability delegation is a widening channel masquerading as a narrowing one, and the failure is silent until an out-of-scope action lands. ```python class ScopeAttenuationViolation(RuntimeError): """Raised when a delegated token's scope is not a subset of its parent's scope.""" pass def verify_delegation_chain(chain): """ chain: list of dicts ordered root -> leaf, each with: {'issuer': str, 'scope': {'read': set[str], 'write': set[str]}} Enforces monotonic attenuation by intersecting the full chain. Returns effective scope; raises on any widening hop. """ if not chain: raise ScopeAttenuationViolation("empty delegation chain") effective = { "read": set(chain[0]["scope"]["read"]), "write": set(chain[0]["scope"]["write"]), } for i in range(1, len(chain)): parent = chain[i - 1]["scope"] child = chain[i]["scope"] for verb in ("read", "write"): parent_set = set(parent.get(verb, ())) child_set = set(child.get(verb, ())) widened = child_set - parent_set if widened: raise ScopeAttenuationViolation( f"hop {i} ({chain[i]['issuer']}) widened '{verb}' scope " f"beyond parent ({chain[i-1]['issuer']}): {sorted(widened)}" ) effective[verb] &= child_set return effective def authorize(action_verb, resource, effective_scope): allowed = effective_scope.get(action_verb, set()) if resource not in allowed: raise ScopeAttenuationViolation( f"action {action_verb}:{resource} not in effective scope {sorted(allowed)}" ) return True ```