What structural signals indicate delegated AAIF credential scoping has silently widened past its warrant
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-hop agent delegations where an orchestrator agent mints or attenuates an Agent Identity and Authorization Framework (AAIF) credential and hands it to a sub-agent that then invokes tools or peer agents. Does *not* apply to single-hop, human-rooted OAuth flows where the token audience is fixed at issuance and never re-delegated.
Core Distinction
The failure mode is not "the credential was stolen" or "the signature failed to verify." It is **scope creep through re-delegation under attenuation ambiguity**: a delegated credential is structurally valid, cryptographically intact, and passes every verifier, yet its *effective* authority is strictly larger than the authority the delegating agent actually held at the moment of handoff.
This happens because AAIF warrants carry two different notions of scope that verifiers conflate:
- **Declared scope** — the `scope` claim set written into the credential at mint time (e.g., `files:read`, `repo:write:branch/*`).
- **Held scope** — the intersection of the delegator's own effective scope with any local policy the delegator applied *in its reasoning* but never serialized into the child credential.
When a delegator agent attenuates by *reasoning* ("I'll only let the sub-agent touch branch `feat/x`") but mints a credential whose `scope` is the parent's full `repo:write:branch/*`, the child credential is over-broad relative to intent but under-broad relative to nothing the verifier can check. The verifier sees a valid chain, computes the intersection of declared scopes, and concludes the child is properly attenuated. It is not — the attenuation lived only in the delegator's context window and evaporated the instant that context was discarded.
The structural signal is therefore: **the declared-scope intersection is a strict superset of the held-scope intersection, and no claim in the credential records the difference.**
What Was Observed
A three-tier pipeline: orchestrator `A` (holds `repo:write:*`), planner sub-agent `B`, executor sub-agent `C`. `A` mints a warrant for `B` with `scope = repo:write:*` because `A`'s own reasoning concluded "B only plans, it won't write." `B` then mints for `C` with `scope = repo:write:*` (copy-forward, since B's declared scope equals A's). `C` executes and pushes to `main`.
Trace of the failure:
- At `t0`, `A` held `repo:write:*`. Intent: B plans only.
- At `t1`, `A` minted `W_B` with `scope = repo:write:*`, `delegated_by = A`, `parent = W_A`. No `intent_scope` claim. The narrowing existed only in `A`'s prompt.
- At `t2`, `B`'s context was checkpointed and resumed (cold-start). The planner's local constraint "do not write" was not in the checkpoint — it was in the system prompt of a different session.
- At `t3`, `B` minted `W_C` with `scope = repo:write:*` by copy-forward from its own credential, a behavior that is *correct* under "attenuate to your own declared scope."
- At `t4`, `C` pushed to `main`. Every verifier along the chain returned `valid: true`. The intersection of declared scopes was `repo:write:*`. The intersection of held scopes was `repo:write:*` ∩ (intent) = `repo:write:branch/feat/*` — but nothing serialized that.
The observable signature was not a verification error. It was a **scope-delta of zero across a hop where a scope-delta was intended**, combined with a `parent_scope == child_scope` equality on a hop that the operator's policy graph marked as a narrowing edge.
Condition of Validity
The invariant that must hold for delegated scoping to be sound:
> For every delegation edge `(P → C)`, the effective scope of `C` must satisfy `eff(C) ⊆ eff(P) ∩ intent(P→C)`, where `intent(P→C)` is serialized into the child credential as a non-forgeable, verifier-checkable claim — not inferred from the parent's reasoning state.
This holds only when all three of the following are true:
- **Attenuation is explicit, not implicit.** The child credential carries an `attenuation` claim enumerating exactly the scope reduction relative to the parent. A child whose `scope` equals the parent's `scope` on an edge the policy graph marks as `narrowing` is a structural violation, not a no-op.
- **Held scope is derived from the chain, not from context.** `eff(P)` must be computable by the verifier from `W_P` and its ancestors alone. If any part of `eff(P)` lived in `P`'s prompt, checkpoint, or session memory, the verifier cannot reconstruct it and the invariant is unenforceable.
- **Copy-forward is forbidden on narrowing edges.** A delegator may only mint a child scope equal to its own declared scope on edges explicitly typed `passthrough`. On `narrowing` edges, the child scope must be a proper subset, and the delta must be signed by the delegator's key.
The condition fails silently when the delegator's intent is *plausible* — the credential looks attenuated to a human reviewer because the sub-agent's role name suggests narrowness, but the bytes say otherwise.
Decision Boundary
The boundary between "safe to accept the child credential" and "reject and force re-mint" is drawn on the **scope-delta signal**, not on signature validity:
- **Accept** if `child.scope ⊂ parent.scope` (proper subset) *and* `child.attenuation` claim is present and signed by `parent`'s key *and* the verifier's reconstruction of `eff(parent)` from the chain is a superset of `child.scope`.
- **Reject** if `child.scope == parent.scope` on an edge typed `narrowing` in the policy graph. This is the exact signature of intent-loss: the delegator meant to narrow but the bytes didn't.
- **Reject** if `child.scope ⊄ reconstructible_eff(parent)` — i.e., the child claims authority the chain cannot justify, even if the parent's *session* held it. Session-held authority that is not chain-derivable is not delegable.
- **Escalate** if `child.scope ⊂ parent.scope` but no `attenuation` claim is present — the delta exists but is unattributed, which means either a verifier gap or a forgery attempt.
The non-obvious part: **a valid signature is necessary but never sufficient.** The failure mode produces fully valid signatures at every hop. The only structural tell is the *shape* of the scope relation across the edge, compared against the edge's declared type.
Operational Effect
When this boundary is crossed undetected, the blast radius is the full authority of the root credential, because every downstream verifier trusts the chain's declared-scope intersection. The executor sub-agent does not experience a permission error — it experiences a *successful* tool call with more privilege than its delegator intended to grant. There is no runtime signal at the point of over-privilege; the signal is upstream, at mint time, in the equality of parent and child scopes on a narrowing edge.
Operationally, this means AAIF deployments must instrument the **mint path**, not the verify path, to catch the failure. A verifier that only checks signatures will pass every instance of this bug. A mint-time guard that refuses to emit a child credential whose scope equals its parent's on a `narrowing` edge converts the silent widening into a hard failure at the delegating agent — which is recoverable, because the delegator still has its context and can re-derive the intended attenuation.
The second operational effect: **checkpoint/resume must serialize intent, not just scope.** If a delegating agent's narrowing intent lives in its prompt and the agent is checkpointed before minting, the resumed instance will copy-forward the parent scope. The checkpoint format must include the pending `intent_scope` for any edge the agent is about to mint, or the resume must be blocked until re-derivation.
class DelegationScopeWideningError(RuntimeError):
"""Raised when a delegated AAIF credential's declared scope is not a
proper subset of its parent's reconstructible effective scope on a
narrowing edge. Indicates intent-loss at mint time, not a signature
failure."""
pass
def mint_child_warrant(parent_warrant: dict, child_scope: set[str],
edge_type: str, delegator_key_sign) -> dict:
parent_scope = set(parent_warrant["scope"])
reconstructible = set(parent_warrant.get("reconstructible_eff", parent_scope))
if edge_type == "narrowing":
if child_scope == parent_scope:
raise DelegationScopeWideningError(
f"narrowing edge {parent_warrant['id']} -> child minted with "
f"scope == parent scope ({sorted(child_scope)}); intent-loss "
f"at mint time. Re-derive intent_scope before minting."
)
if not child_scope < parent_scope:
raise DelegationScopeWideningError(
f"child scope {sorted(child_scope)} is not a proper subset of "
f"parent scope {sorted(parent_scope)} on narrowing edge."
)
if not child_scope <= reconstructible:
unbacked = child_scope - reconstructible
raise DelegationScopeWideningError(
f"child claims {sorted(unbacked)} not derivable from credential "
f"chain; session-held authority is not delegable."
)
attenuation = {
"removed": sorted(parent_scope - child_scope),
"edge_type": edge_type,
"signed_by": delegator_key_sign(parent_warrant["id"]),
}
return {
"parent": parent_warrant["id"],
"scope": sorted(child_scope),
"attenuation": attenuation,
}