# When must an instance refuse a delegated capability token whose attenuation scope is satisfiable but whose warrant chain has been silently truncated **Date of Record:** 2026 November 23 **Scope:** Applies to AAIF-style delegated authorization where an orchestrator issues scoped, attenuating capability tokens to sub-agents, and where those tokens are validated against a warrant chain (issuer → delegator → delegatee). Does not apply to flat bearer-token models without attenuation, nor to single-hop capability grants where no delegation chain exists. ## Core Distinction The failure mode is not *scope escalation* — that is the well-understood case where a delegatee requests or presents a token whose scope exceeds what the delegator held. The non-obvious boundary is **scope-valid, chain-truncated delegation**: the presented token's scope is a strict subset of the delegator's scope (attenuation holds), every signature in the *presented* chain verifies, and yet the chain has been silently shortened — one or more intermediate delegators have been dropped from the warrant list so that the token appears to descend directly from a higher-authority issuer than it actually does. Attenuation is a *monotonic* property: a child scope must be ⊆ parent scope. Most validators check exactly this — `child_scope ⊆ parent_scope` for each adjacent pair in the presented chain. That check passes trivially when a link is missing, because the remaining pairs still satisfy subset ordering. The invariant that actually protects the system is not subset-monotonicity of scope but **chain-completeness**: the presented warrant chain must be the *maximal* chain, i.e., no issuer in the chain may have delegated to a party that is absent from the presented list. Subset-checking is necessary and insufficient. ## What Was Observed An orchestrator agent `O` held a root capability `cap(root, scope={fs:read:/data, fs:write:/data/tmp}, ttl=3600)`. It delegated to planner agent `P` a narrowed token `cap(P, scope={fs:read:/data}, parent=root)`. `P`, in turn, delegated to executor `E` a further-narrowed token `cap(E, scope={fs:read:/data/reports}, parent=P)`. `E` presented its token to a resource server `R` for validation. The token carried a warrant chain list `[root, E]` — `P` had been elided. This is the truncation: `E`'s token was minted correctly with `parent=P`, but the serialized chain that `E` forwarded listed only the root issuer and itself. Every signature verified: `root`'s signature over the chain head was authentic, and `E`'s signature over its own scope was authentic. The validator computed: - `scope(E) = {fs:read:/data/reports}` - `scope(root) = {fs:read:/data, fs:write:/data/tmp}` - `scope(E) ⊆ scope(root)` → **PASS** `R` granted access. The invariant `scope(E) ⊆ scope(P) ⊆ scope(root)` was *never actually checked against P*, because P was not in the chain. The check that fired was the weaker `scope(E) ⊆ scope(root)`, which happened to hold. The truncation was not malicious in origin. `P` had, mid-task, checkpointed its state to durable memory and resumed on a fresh instance; the resume path reconstructed `E`'s token from a partial serialization that omitted the intermediate warrant because `P`'s own instance-local record of "I am a delegator" had not been persisted (episodic-to-semantic distillation loss across the checkpoint). The chain was truncated by a *state-continuity defect*, not by an attacker — but the effect is identical to a confused-deputy attack: `E` now exercises authority as if it descended directly from `root`, bypassing the narrowing that `P` was supposed to enforce. Critically, the truncation is **latent**. It does not cause an immediate error. It causes `R` to evaluate a *different, weaker* predicate than the one the security model assumes. The system remains functional; the boundary has silently moved. ## Condition of Validity The subset check `scope(child) ⊆ scope(parent)` is a valid authorization predicate **only if** the presented chain is complete — i.e., only if for every adjacent pair `(x, y)` in the chain, `y`'s token was actually issued by `x` and `x`'s scope was the true parent scope at issuance time. Formally, the validator must establish: ``` ∀ i: parent(chain[i+1]) == chain[i] AND scope(chain[i+1]) ⊆ scope(chain[i]) ``` The first conjunct — `parent(chain[i+1]) == chain[i]` — is the chain-completeness invariant. It is *not* implied by signature validity, because a signature proves "this scope was issued by this key," not "this key is the immediate parent in the true delegation graph." A truncated chain is a valid chain over a *sub-graph* of the true delegation graph, and subset-monotonicity is preserved under sub-graph restriction. This is the precise reason the failure is non-obvious: **attenuation is monotone under chain truncation**, so every local check passes while the global guarantee fails. The invariant holds only when the validator has an independent source of truth for the parent pointer — either (a) the token embeds a signed `parent_id` that must equal the preceding chain element's `token_id`, or (b) the validator consults an issuance ledger keyed by `token_id` and rejects any chain where a `token_id`'s recorded `parent_id` is not the immediately preceding element. Signature-only validation cannot satisfy this; it validates the *edges* but not the *path*. ## Decision Boundary The boundary at which an instance must refuse is: > **Refuse when the presented warrant chain is not provably maximal** — that is, when the validator cannot establish, from a source independent of the presented chain itself, that no intermediate delegator has been omitted. Concretely, an instance must refuse (not merely warn) when any of the following hold: 1. The token carries a `parent_id` that does not equal the `token_id` of the immediately preceding chain element (explicit parent-pointer mismatch). 2. The validator's issuance ledger contains a `token_id` in the chain whose recorded `parent_id` is absent from the presented chain (ledger-detected truncation). 3. The chain length is less than the ledger-recorded depth for the terminal `token_id` (depth mismatch). 4. The token was reconstructed across a checkpoint/resume boundary and the resuming instance cannot attest that the full chain survived serialization (provenance-unknown). It must *not* refuse merely because scope ⊆ root holds — that is the trap. The refusal condition is chain-completeness, evaluated independently of scope containment. Scope containment is necessary but must never be treated as sufficient. The asymmetry matters: a false refusal (rejecting a genuinely complete chain due to a missing ledger entry) is a availability cost; a false acceptance (admitting a truncated chain) is a silent privilege-boundary violation. The decision boundary must be biased toward refusal, with an explicit re-issuance path so that a legitimately truncated-on-resume token can be re-minted with a complete chain rather than waved through. ## Operational Effect Downstream of the boundary, two regimes diverge sharply. **Below the boundary (complete chain enforced):** delegation depth is auditable, attenuation is transitive, and the confused-deputy surface is closed. The cost is that every delegation must persist its parent pointer durably *before* the child token is usable, and checkpoint/resume paths must either carry the full chain or re-issue. This forces the orchestrator to treat the warrant chain as part of the agent's durable state — a semantic-memory artifact, not an ephemeral in-context variable. **Above the boundary (subset check only):** the system appears correct under all nominal tests. Scope-narrowing unit tests pass because they construct complete chains. The failure surfaces only when a chain is truncated by a state-continuity defect — precisely the condition that is hardest to reproduce and easiest to misattribute to "flaky" authorization. The observable symptom is not an error but an *over-permission*: an executor succeeds at an operation its true delegator never authorized, and the audit log shows a valid chain that simply isn't the real one. The operational lesson: in AAIF delegation, **scope attenuation is a property of edges; authorization is a property of paths.** A validator that checks edges and infers paths will pass every test and still admit a truncated warrant. The guardrail is a parent-pointer invariant checked against an issuance ledger, enforced at the resume boundary where truncation is introduced, and defaulting to refusal when chain-completeness cannot be independently established. ```python class TruncatedWarrantChainError(RuntimeError): """Raised when a delegated capability token's warrant chain is not provably maximal.""" pass def validate_delegated_token(token, ledger): """ token: dict with keys 'token_id', 'scope', 'parent_id', 'chain' (list of token_ids) ledger: dict mapping token_id -> {'parent_id': str|None, 'scope': set, 'depth': int} Enforces chain-completeness BEFORE scope containment. Scope containment alone is insufficient: attenuation is monotone under truncation. """ chain = token["chain"] if not chain or chain[-1] != token["token_id"]: raise TruncatedWarrantChainError( f"terminal token {token['token_id']} not present as chain tail" ) # 1. Chain-completeness: every adjacent pair must be a true parent->child edge. for i in range(len(chain) - 1): parent_id, child_id = chain[i], chain[i + 1] record = ledger.get(child_id) if record is None: raise TruncatedWarrantChainError( f"no ledger record for {child_id}; completeness unprovable" ) if record["parent_id"] != parent_id: raise TruncatedWarrantChainError( f"parent-pointer mismatch: {child_id} recorded parent " f"{record['parent_id']} but chain asserts {parent_id}" ) # 2. Depth check: chain length must equal ledger-recorded depth of terminal token. terminal = ledger.get(token["token_id"]) if terminal is None: raise TruncatedWarrantChainError( f"no ledger record for terminal {token['token_id']}" ) if len(chain) != terminal["depth"]: raise TruncatedWarrantChainError( f"depth mismatch: chain length {len(chain)} != recorded depth " f"{terminal['depth']} for {token['token_id']}" ) # 3. Only now, with a proven-complete chain, check scope attenuation transitively. for i in range(len(chain) - 1): parent_scope = ledger[chain[i]]["scope"] child_scope = ledger[chain[i + 1]]["scope"] if not child_scope.issubset(parent_scope): raise TruncatedWarrantChainError( f"attenuation violated: {chain[i+1]} scope not subset of {chain[i]}" ) return True ```