# When must an instance refuse a delegated capability token it cannot re-attenuate: the monotonic-scope invariant and the sub-scope resurrection failure **Date of Record:** 2026 December 1 **Scope:** Applies to any agent runtime that accepts AAIF-style delegation tokens (signed capability grants carrying a scope set, an attenuation chain, and a warrant identity) and that is permitted to mint further sub-delegations to downstream tools or peer agents. Does not apply to single-hop bearer tokens consumed only by the originating principal, nor to tokens whose scope is a flat opaque string with no set algebra. ## Core Distinction The distinction that matters is between **validity** and **attenuatability**. A delegation token can be cryptographically valid — signature chain intact, not expired, issuer trusted, audience matched — and still be *unsafe to accept* by an agent that intends to act as a delegator rather than a terminal executor. The invariant is: **an instance may only accept a token whose scope lattice it can faithfully reproduce or narrow on every outbound edge it will emit.** When an instance accepts a token it cannot re-attenuate, it becomes a *scope amplifier*: it holds a grant it cannot restrict, so any sub-delegation it emits either (a) forwards the full parent scope, silently widening every downstream consumer, or (b) narrows the scope in its own representation while the signed parent scope remains attached, producing a token whose declared scope and effective scope diverge. The second case is the dangerous one — it is the sub-scope resurrection failure, where a downstream auditor replaying the chain reconstructs a scope larger than the one the delegating agent believed it had granted. This is not a signature-verification problem. Every signature in the chain verifies. The failure is in the *set semantics of attenuation* and in the agent's inability to compute a correct meet (greatest lower bound) over the parent scope and its intended child scope because the two scopes are expressed in different, non-comparable vocabularies. ## What Was Observed An orchestrator agent `O` held a root grant `G_root` with scope expressed as a **resource-pattern set**: `{s3:prod-bucket/*, s3:staging-bucket/*}` — a wildcard-bearing glob vocabulary. `O` delegated to a retrieval sub-agent `R` a narrowed grant intended to be read-only on a single prefix: `{s3:prod-bucket/reports/2025/*}`. `R`'s runtime used a **structured capability vocabulary** (action × resource-ARN), so it could not represent the glob `prod-bucket/reports/2025/*` as a set member; it represented the child scope as the ARN `arn:aws:s3:::prod-bucket/reports/2025/` with action `s3:GetObject`. This representation is *narrower in intent* but *not provably a subset* of the parent glob in `R`'s vocabulary, because `R` had no glob-subsumption checker. `R` therefore attached the parent scope verbatim to the outbound token (the safe-looking choice: "keep the parent scope so the chain is auditable") and added its own narrowed scope as a *declared* field. `R` then delegated to a summarizer `S` a further-narrowed grant. `S`'s authorization check evaluated the **effective scope** by taking the union of the declared field and the inherited parent scope (a common but incorrect reconciliation rule: "the token is valid for anything any hop declared"). The union resurrected `s3:staging-bucket/*` — a scope `R` had never intended to pass and `O` had never intended `R` to hold for delegation. `S` issued a read against the staging bucket. Every signature verified. The audit log showed a valid chain. The scope had silently widened at hop 3 because hop 2 could not compute attenuation and defaulted to inheritance-plus-union. The trigger condition is precise: **the delegating instance's scope vocabulary is not closed under intersection with the parent vocabulary.** When `child_scope ∩ parent_scope` cannot be computed — because the two are drawn from incomparable pattern languages, or because one uses wildcards and the other uses enumerated ARNs, or because one is negative (deny-list) and the other positive — the instance has no sound basis for emitting a narrowed token. It must either refuse to delegate or refuse the token at intake. ## Condition of Validity The monotonic-scope invariant holds only under three jointly-satisfied conditions: 1. **Vocabulary comparability.** Parent and child scopes are drawn from the same partially-ordered set, and the runtime can decide `child ⊆ parent` in bounded time. Glob-vs-ARN, wildcard-vs-enumerated, and positive-vs-negative scopes violate this. 2. **Attenuation is a meet, not a union.** The effective scope of a token at hop *n* is `⋂_{i≤n} scope_i` — the intersection of every declared scope along the chain, never the union. The union rule is the specific reconciliation bug that resurrects sub-scopes. 3. **Declared scope is bound into the signature.** If the declared narrowed scope is a field outside the signed envelope, any hop can rewrite it, and the chain no longer attests to the effective scope. The signed payload must commit to the *effective* scope, not merely the hop's local intent. When any of these fails, the token is valid but non-attenuatable, and the instance must treat it as a **terminal capability only** — usable for its own direct actions, never re-delegable. ## Decision Boundary The decision an instance faces at intake is not "is this token valid?" but "will I emit outbound edges from it?" The boundary: - If the instance will act only as a **terminal executor** (no sub-delegation), it may accept any valid token and must enforce the parent scope directly on its own tool calls. No attenuation is required. - If the instance will act as a **delegator** (will mint any outbound token), it must first prove `child_scope ⊆ parent_scope` in a common vocabulary. If it cannot prove this, it must **refuse to delegate** and either (a) execute the task itself within the parent scope, or (b) request a re-issued parent grant expressed in a vocabulary it can intersect against. - If the instance receives a token whose declared scope is not bound into the signature, it must treat the declared scope as advisory and the signed parent scope as authoritative — and it must never emit an outbound token carrying that parent scope unless it intends to grant the full parent scope. The forbidden move — the one that produces the resurrection failure — is accepting a non-attenuatable token, attaching the parent scope to outbound tokens "for auditability," and relying on a union rule at the consumer. Auditability is achieved by logging the chain, not by propagating the widest scope. ## Operational Effect The operational consequence is that **delegation authority is a strictly stronger requirement than execution authority**, and runtimes that conflate them become scope amplifiers. Concretely: - An instance that holds a valid but non-intersectable token must downgrade itself to terminal-executor mode and record the downgrade in its own state, so that a later checkpoint/resume does not silently restore delegator privileges. This is a state-continuity hazard: a resumed instance that reloads only the token, not the "terminal-only" flag, will resume as a delegator and re-open the amplification path. - The consumer-side reconciliation rule must be intersection, and the intersection must be computed over the *signed* scopes only. Any field added by an intermediate hop and not covered by a signature is untrusted metadata. - Auditors replaying the chain must reconstruct the effective scope as the meet of signed scopes, and must flag any hop whose declared scope is not a subset of its signed parent scope as a chain-integrity violation — even if every signature verifies, because signature validity does not imply scope monotonicity. The invariant to carry forward: **a token is delegable only if its scope is attenuatable in the delegator's vocabulary; otherwise it is terminal.** The guardrail is a pre-delegation subset proof, not a post-hoc audit. ```python from dataclasses import dataclass from typing import FrozenSet class NonAttenuatableDelegationError(RuntimeError): """Raised when an instance attempts to sub-delegate a token whose scope it cannot prove is a superset of the intended child scope.""" @dataclass(frozen=True) class Scope: vocabulary: str # e.g. "glob", "arn", "structured" members: FrozenSet[str] @dataclass(frozen=True) class DelegationToken: signed_scope: Scope # bound into the signature; authoritative declared_scope: Scope # hop-local intent; advisory unless signed declared_is_signed: bool def effective_scope(chain: list[DelegationToken]) -> Scope: """Effective scope is the MEET (intersection) of signed scopes only. Never the union. Non-signed declared scopes are ignored.""" if not chain: raise NonAttenuatableDelegationError("empty delegation chain") vocabs = {t.signed_scope.vocabulary for t in chain} if len(vocabs) != 1: raise NonAttenuatableDelegationError( f"cannot intersect scopes across vocabularies: {vocabs}" ) acc = chain[0].signed_scope.members for t in chain[1:]: acc = acc & t.signed_scope.members return Scope(next(iter(vocabs)), frozenset(acc)) def delegate(parent: DelegationToken, child_intent: Scope) -> DelegationToken: """Emit a sub-delegation ONLY if child_intent is provably a subset of the parent's signed scope in a common vocabulary. Otherwise refuse.""" if parent.signed_scope.vocabulary != child_intent.vocabulary: raise NonAttenuatableDelegationError( "parent scope vocabulary " f"{parent.signed_scope.vocabulary!r} is not comparable to child " f"vocabulary {child_intent.vocabulary!r}; instance must downgrade " "to terminal-executor mode and refuse to delegate" ) if not child_intent.members <= parent.signed_scope.members: raise NonAttenuatableDelegationError( "child scope is not a subset of parent signed scope; " "refusing to emit widening delegation" ) # Bind the effective (meet) scope into the new signed envelope. return DelegationToken( signed_scope=child_intent, declared_scope=child_intent, declared_is_signed=True, ) def accept_for_execution(token: DelegationToken) -> Scope: """Terminal-executor intake: enforce the signed scope, ignore unsigned declared intent. This is always permitted for a valid token.""" return token.signed_scope ```