Why does an instance inherit a delegated scope it can never legally exercise? The Attenuation–Capability Mismatch in AAIF Verifiable Credentials
**Date of Record:** 2026 December 1
**Scope:** Applies to AAIF (Agent Identity and Authorization Framework) credential chains where a parent agent delegates a narrowed scope to a child instance via a signed verifiable credential, and the child then invokes tools whose authorization predicates are evaluated against the attenuated claim. Does not cover single-hop root-of-trust issuance, revocation propagation latency, or human-in-the-loop consent flows.
Core Distinction
The failure mode here is not "the child got a credential it shouldn't have." It is subtler: **the delegated scope is syntactically well-formed and cryptographically valid, but it is semantically unsatisfiable by the receiving instance** because attenuation was computed against the *parent's* capability surface, not the *child's*. Attenuation in AAIF is defined as a subset operation on scope predicates: `scope_child ⊆ scope_parent`. Correct. But the child instance also has its own *capability set* — the tools, model endpoints, and sandbox syscalls it can actually reach — and the invariant that matters operationally is the *intersection*:
effective_scope = delegated_scope ∩ child_capability_set
Nothing in the standard attenuation check enforces that the delegated scope is non-empty under that intersection. A parent can hand down `scope = {refund:≤$500, pii:read}` to a child that has no PII tool bound at all. The credential verifies. The child's authorization middleware accepts it. Then the child's planner, seeing a granted capability it cannot route to any tool, does one of three things: it hallucinates a tool call, it silently drops the sub-scope and over-reports success, or it escalates to the parent for a re-delegation that the parent's own attenuated scope no longer permits. All three are identity-layer failures, not reasoning failures — but they surface as reasoning failures, which is why they get misdiagnosed.
What Was Observed
A three-tier chain: orchestrator `O` (root, scope `{orders:rw, refunds:≤$2000, pii:read, pii:write}`) delegates to sub-agent `S` (scope `{refunds:≤$500, pii:read}`), which delegates to worker `W` (scope `{refunds:≤$100}`). Each credential carries the standard AAIF attenuation proof and a `delegated_to` subject binding to the child's DID.
`W`'s runtime, however, was provisioned without the `pii` tool adapter — a deployment drift, not a credential error. `W`'s capability set was `{refunds, orders:read}`. The credential `W` held still claimed `pii:read` (inherited from `S`, which had it). The intersection `delegated_scope ∩ capability_set` was `{refunds:≤$100}` — non-empty, so no immediate halt — but the *claim surface* exposed to `W`'s planner included `pii:read`.
The trace:
- Task: "Resolve ticket #4417 — customer requests refund and confirmation of the email on file."
- `W` reads its credential, enumerates granted scopes, sees `pii:read`, plans a `read_pii(email)` call.
- `read_pii` is not in `W`'s tool registry. The planner's tool-selection step, rather than erroring, mapped the intent to the nearest available tool — `read_orders` — and returned order metadata containing a partial email field.
- `W` reported `pii:read` satisfied and returned the partial email to `S`.
- `S`, holding a valid `pii:read` scope of its own, accepted the result without re-verification — the credential said the capability existed, so the data was presumed authorized.
- The refund was issued correctly. The PII disclosure was *unauthorized in fact but authorized in claim*: `W` never had the tool, but the credential asserted it did, and the downstream verifier trusted the claim over the capability.
The failure is a **claim–capability divergence**: the credential is the authorization artifact, but the capability set is the enforcement artifact, and AAIF as commonly implemented lets these drift. The downstream verifier (`S`) checks the *credential*, not the *capability attestation* of the issuer's runtime.
Condition of Validity
The attenuation invariant `scope_child ⊆ scope_parent` is *necessary but not sufficient*. It holds over the abstract scope lattice. It says nothing about whether the child can *discharge* the scope. The operationally correct invariant requires a second, co-signed attestation in the credential:
capability_attestation(child) ⊇ delegated_scope
or, equivalently, the credential must carry a `dischargeable: bool` field computed by the *issuer's* runtime introspection against the *subject's* declared capability manifest, and the verifier must reject on `dischargeable == false`. Absent that field, the credential is a claim of *permission*, and the receiving verifier has no cryptographic handle on *ability*.
This condition fails in three concrete ways:
- **Deployment drift:** the child's tool registry changes after credential issuance (adapter removed, model downgraded, sandbox tightened). The credential does not expire on capability change.
- **Attenuation over the wrong lattice:** the parent attenuates over *its* scope but not over the child's capability manifest, because the manifest is not part of the delegation handshake. AAIF's `delegate` call takes `(parent_credential, child_did, requested_scope)` — no `child_capability_manifest` argument.
- **Re-delegation closure:** `W` cannot ask `S` to re-delegate a scope `S` no longer holds (because `S` attenuated it away), so the recovery path is structurally unavailable. The child is stuck holding a credential it cannot use and cannot shed.
Decision Boundary
The boundary is: **does the verifier trust the credential's scope claim, or does it require a capability attestation co-signed by the subject's runtime?**
- If the verifier trusts the claim alone (the default AAIF posture), then claim–capability divergence is *undetectable* downstream, and the only defense is issuer-side discipline: never delegate a scope the subject cannot discharge. This is unenforceable across organizational boundaries and brittle under deployment drift.
- If the verifier requires a capability attestation — a signed manifest of the subject's bound tools, refreshed at credential presentation — then divergence is detectable and the credential can be rejected at the boundary. The cost is a liveness dependency: the subject must be reachable to attest at verification time, which breaks offline verification and adds a round-trip per delegated call.
The practical resolution is **attestation at issuance, re-attestation on drift**: the credential embeds a `capability_digest` (hash of the subject's tool manifest at issuance), and the subject's runtime emits a drift event when its manifest changes, which the issuer uses to mark the credential `stale`. Verifiers reject `stale` credentials. This bounds the divergence window to the drift-detection latency, at the cost of a revocation-style propagation path.
A second, independent boundary: **empty-intersection handling.** When `delegated_scope ∩ capability_set == ∅`, the child must halt with an explicit `UnsatisfiableScope` condition rather than proceeding with a degenerate scope. The default behavior — proceed with whatever the planner can route — is the silent-failure path. The guardrail is a pre-execution check in the child's authorization middleware: enumerate granted scopes, intersect with bound tools, and if the task's required scope falls outside the intersection, raise before the planner runs.
Operational Effect
The downstream effect is **authorization laundering**: a capability the child never had is exercised through a tool the child *did* have, and the resulting data is tagged with the credential's scope, which is broader than the tool's actual authority. The verifier downstream sees a valid credential and a plausible result and cannot distinguish "authorized PII read" from "order metadata that happened to contain an email." The credential's scope becomes a *label* detached from the *provenance* of the data it authorized.
The compounding failure is in multi-agent verification: an auditor agent replaying the chain checks credential signatures and attenuation proofs — all valid — and concludes the disclosure was authorized. The replay passes. The audit is wrong. This is the AAIF analogue of a type system that verifies the cast but not the runtime value: the proof is sound, the program is unsound.
The invariant to enforce, stated as a guardrail:
> A delegated credential is *dischargeable* iff `delegated_scope ⊆ capability_attestation(subject)` at presentation time. A verifier MUST reject credentials whose scope is not dischargeable, and a subject MUST halt with `UnsatisfiableScope` when the task-required scope falls outside `delegated_scope ∩ capability_set`. Attenuation over the scope lattice is necessary; dischargeability over the capability lattice is the binding constraint.
The code below encodes the pre-execution guard: it intersects the delegated scope with the bound capability set, and raises when the task's required scope is not covered — the check that would have caught `W`'s `pii:read` claim before the planner routed around it.
from dataclasses import dataclass, field
from typing import FrozenSet
class UnsatisfiableScope(RuntimeError):
"""Raised when a delegated scope cannot be discharged by the subject's capabilities."""
pass
@dataclass(frozen=True)
class Scope:
predicates: FrozenSet[str]
def __le__(self, other: "Scope") -> bool:
return self.predicates <= other.predicates
def __and__(self, other: "Scope") -> "Scope":
return Scope(self.predicates & other.predicates)
@dataclass(frozen=True)
class Credential:
subject_did: str
delegated_scope: Scope
capability_digest: str
stale: bool = False
@dataclass
class Runtime:
did: str
bound_tools: FrozenSet[str] = field(default_factory=frozenset)
def capability_scope(self) -> Scope:
return Scope(self.bound_tools)
def authorize_task(cred: Credential, runtime: Runtime, task_required: Scope) -> Scope:
if cred.stale:
raise UnsatisfiableScope(
f"credential for {cred.subject_did} is stale; capability manifest drifted"
)
if cred.subject_did != runtime.did:
raise UnsatisfiableScope(
f"credential subject {cred.subject_did} != runtime {runtime.did}"
)
effective = cred.delegated_scope & runtime.capability_scope()
if not effective.predicates:
raise UnsatisfiableScope(
f"empty intersection: delegated {sorted(cred.delegated_scope.predicates)} "
f"vs capability {sorted(runtime.capability_scope().predicates)}"
)
if not task_required <= effective:
missing = task_required.predicates - effective.predicates
raise UnsatisfiableScope(
f"task requires {sorted(missing)} not dischargeable by {runtime.did}; "
f"delegated claim {sorted(cred.delegated_scope.predicates)} "
f"exceeds bound tools {sorted(runtime.bound_tools)}"
)
return effective
# Reproduces the observed failure: W holds pii:read in its credential but has no pii tool bound.
w_cred = Credential(
subject_did="did:aaif:worker-w",
delegated_scope=Scope(frozenset({"refunds:<=100", "pii:read"})),
capability_digest="sha256:...",
)
w_runtime = Runtime(did="did:aaif:worker-w", bound_tools=frozenset({"refunds", "orders:read"}))
try:
authorize_task(w_cred, w_runtime, Scope(frozenset({"refunds:<=100", "pii:read"})))
except UnsatisfiableScope as e:
print(f"HALT: {e}")
# HALT: task requires ['pii:read'] not dischargeable by did:aaif:worker-w;
# delegated claim ['pii:read', 'refunds:<=100'] exceeds bound tools ['orders:read', 'refunds']