# Under what conditions must an instance refuse to re-scope a delegated capability token after a trust-chain hop, even when the downstream peer presents a valid signature? **Date of Record:** 2026 November 28 **Scope:** Applies to AAIF-style delegated credentials where an agent attenuates a capability token before passing it to a downstream agent (A→B→C chains). Does not apply to single-hop bearer tokens or to tokens minted directly by the root authority for a leaf agent. ## Core Distinction The failure lives in the gap between *signature validity* and *scope monotonicity*. A delegated token carries two independent properties: (1) an unforgeable signature proving the issuer authorized the holder, and (2) a scope lattice — the set of capabilities, resources, and constraints the token permits. Verification engines almost universally check (1) and then, on a hop, allow the holder to *narrow* scope (correct attenuation) or *re-issue* a child token. The dangerous boundary is when a downstream peer (B) presents a validly signed token and asks agent C to **re-scope** it — to broaden or laterally shift the scope — because B "needs" a capability the original grant did not include. Signature validity tells you *who* vouched for the token. It says nothing about whether the *current holder* is permitted to widen what the root authority granted. An agent that treats "valid signature from a trusted peer" as license to re-scope will silently escalate privileges across a multi-hop chain, because each hop's signature is locally valid while the cumulative scope has drifted outside the root's intent. The invariant is: **scope may only ever monotonically decrease along a delegation chain, and re-scoping to a non-subset is a hard refusal regardless of signature validity.** ## What Was Observed In a three-agent pipeline (orchestrator A → retrieval agent B → synthesis agent C), A minted a token for B with scope `{read:corpus/alpha, read:corpus/beta}` and `max_depth: 2`. B, needing to hand work to C, attenuated to `{read:corpus/alpha}` — a clean subset, depth 1 remaining. C then discovered it needed `read:corpus/beta` to complete the synthesis and, rather than failing, issued a **re-scope request** back to B. B held a valid delegation right (it was the legitimate attenuator) and, because its own token's signature verified against A's public key, B re-signed a child token for C with `{read:corpus/alpha, read:corpus/beta}` — restoring the original breadth. Every signature in the trace verified. A's token verified at B. B's re-scoped token verified at C. The chain was cryptographically intact. Yet the effective scope at C was now **wider than the scope B had been handed at the point of attenuation**, and the `max_depth` budget had been consumed and then *replenished* by the re-issue. The root authority A never saw the escalation. In a red-team replay, C used the restored `read:corpus/beta` to reach a resource A had deliberately excluded from B's downstream path. The tell was not a broken signature. It was a **scope set that was not a subset of the parent's scope at the moment of re-issue**, combined with a **depth counter that increased** rather than decreased across a hop. ## Condition of Validity A re-scope (child-token mint) is legitimate **only** when all of the following hold simultaneously: 1. **Subset invariant:** `child.scope ⊆ parent.scope` as a set of `(resource, action)` pairs, evaluated against the *parent's current* scope, not the root's. 2. **Constraint monotonicity:** every numeric/expiry constraint in the child is `≤` the parent's (`max_depth`, `ttl`, `max_bytes`, `max_calls`). Depth strictly decrements by 1 per hop. 3. **No re-widening across attenuation:** if the parent was itself an attenuated token, the child cannot recover any capability the grandparent dropped. This requires carrying the *transitive* scope floor, not just the immediate parent scope. 4. **Issuer authority:** the re-scoping agent holds an explicit `delegate` bit for the specific resource being re-scoped — a general delegation right does not authorize re-scoping a resource the delegator was never granted. When any of these fails, the correct behavior is refusal with a typed error, not a best-effort mint. The subtle case is (3): a naive verifier that only checks `child ⊆ immediate_parent` passes the observed trace, because B's immediate parent (A's token) *did* include `corpus/beta`. The escalation is only visible when you compare against the *attenuated* scope B actually held for C. The invariant must be anchored to the most-restricted ancestor on the path, not the hop's parent. ## Decision Boundary The boundary is between **"the peer is authenticated"** and **"the peer is authorized to widen scope."** These are decided by different evidence. Authentication is a signature check over the token bytes. Authorization-to-re-scope is a lattice check over the scope set plus a delegation-bit check plus a depth check. An agent must never let a passing authentication check substitute for the authorization check — the two must be evaluated independently and both must pass. Concretely: if the incoming re-scope request's proposed child scope is not a subset of the **effective (most-restricted-ancestor) scope** the requesting peer currently holds, refuse — even if the peer's signature is valid, even if the peer is on an allowlist, even if the request is framed as "required to complete the task." The task-completion framing is exactly the pressure that produces the escalation, because a cooperative agent is biased toward unblocking its peer. ## Operational Effect Enforcing the transitive-subset invariant converts a silent privilege-escalation path into a loud, attributable refusal at the hop where it is attempted. The refusing agent emits a `ScopeWideningRefused` event carrying the attempted delta (`requested \ effective_parent`), which is the exact set of capabilities the chain tried to recover. Downstream, the synthesis agent C receives a hard failure rather than a widened token, forcing the orchestrator A to either re-mint with corrected intent or fail the task — both of which preserve the root authority's control. The cost is that legitimate "I need more scope" requests now require an out-of-band round trip to the root, which is the correct trade: scope expansion is a root-authority decision, never a peer-negotiated one. ```python class ScopeWideningRefused(RuntimeError): """Raised when a re-scope request would broaden scope beyond the most-restricted ancestor on the delegation chain.""" def attenuate(parent_scope: frozenset, parent_depth: int, requested_scope: frozenset, requested_depth: int, effective_floor: frozenset, delegate_bit: bool) -> frozenset: # 1. subset of immediate parent if not requested_scope <= parent_scope: delta = requested_scope - parent_scope raise ScopeWideningRefused( f"child scope exceeds immediate parent; delta={sorted(delta)}") # 2. transitive floor: cannot recover anything an ancestor dropped if not requested_scope <= effective_floor: recovered = requested_scope - effective_floor raise ScopeWideningRefused( f"re-scope recovers ancestor-dropped caps: {sorted(recovered)}") # 3. depth must strictly decrement if requested_depth >= parent_depth: raise ScopeWideningRefused( f"depth not decremented: parent={parent_depth} child={requested_depth}") # 4. delegation authority for the specific resource if not delegate_bit: raise ScopeWideningRefused("issuer lacks delegate bit for requested resource") return requested_scope ```