# What structural signals indicate a broken delegation chain in AAIF verifiable credential issuance for autonomous agents **Date of Record:** 2026 November 26 **Scope:** Applies to multi-hop AAIF (Agent Authorization and Identity Framework) verifiable credential (VC) delegation chains where an orchestrator agent issues attenuated credentials to sub-agents that further delegate to worker agents. Does not apply to single-hop leaf credentials issued directly by a root authority, nor to bearer-token schemes without attenuation semantics. ## Core Distinction The failure mode is not "forged credential" or "expired credential"—those are caught by signature verification and `exp` checks. The boundary failure is **scope-narrowing divergence under model nondeterminism**: a delegating agent *intends* to attenuate a capability (e.g., `read:repo/A` → `read:repo/A/subdir`), but the natural-language-to-policy translation performed by the LLM at issuance time produces a credential whose `scope` field is syntactically valid, correctly signed, and chain-verifiable, yet **semantically wider or disjoint** from the parent's scope. The critical distinction: standard VC verification checks *provenance* (who signed, is the chain intact, is it unexpired). It does not check *monotonic attenuation*—the invariant that a child credential's authority set is a subset of its parent's. An LLM-mediated issuance step can silently violate subset-hood while every cryptographic check passes. The chain is "valid" and "broken" simultaneously. ## What Was Observed An orchestrator agent (model M1) held a root-delegated credential with scope expressed as a structured policy set: ``` parent.scope = {actions: [read, list], resources: [repo:acme/widgets/*]} ``` Tasked with spawning a code-review sub-agent, M1 was instructed to "give the reviewer read access to the widgets frontend only." M1 emitted a delegation request in natural language to the AAIF issuance service: ``` "delegate read access scoped to repo:acme/widgets/frontend" ``` The issuance service's policy-compiler (itself an LLM, M2) translated this into: ``` child.scope = {actions: [read, list, write], resources: [repo:acme/widgets/frontend/**]} ``` Two structural violations occurred, both invisible to signature verification: 1. **Action-set widening:** `write` appeared in the child but not the parent. M2 inferred "code review" implies the ability to leave review comments (a write), a plausible but unauthorized expansion. 2. **Glob over-capture:** `frontend/**` matched `repo:acme/widgets/frontend/../../secrets`, because the resource matcher normalized paths *after* glob expansion rather than before. The resulting chain verified cleanly end-to-end. The sub-agent executed a write against a path outside the parent's grant. The breach was detected only by an out-of-band audit comparing effective action logs against the *root* grant—not by any credential-layer check. The observable structural signal was a **cardinality mismatch between declared and effective scope**: `|child.effective_authority ∩ ¬parent.effective_authority| > 0`. This is computable at issuance time but was not, because the issuance service treated the parent scope as opaque text rather than as a set to be intersected. ## Condition of Validity Attenuation monotonicity holds **only if** the following invariant is enforced structurally, not by prompt instruction: > For every delegation edge `p → c`, `Effective(c) ⊆ Effective(p)`, where `Effective(·)` is computed by the *same* canonicalizer used at enforcement time, over the *same* resource-normalization rules. The condition fails whenever the issuance path and the enforcement path use different canonicalizers (LLM-compiled policy vs. runtime matcher), or whenever the parent scope is passed to the child-issuing model as prose rather than as a machine-checkable set. The invariant is *not* restored by adding "do not exceed your own permissions" to the delegating agent's system prompt—probabilistic reasoning cannot guarantee a set-theoretic property across an unbounded resource space. Validity additionally requires that delegation depth be bounded and recorded: an unbounded chain (`p → c1 → c2 → ...`) makes it impossible to attribute a widening to a specific edge after the fact. Each credential MUST carry `parent_credential_hash` and `delegation_depth`, and the verifier MUST recompute effective scope by walking the full chain to the root, not by trusting any intermediate's self-declared scope. ## Decision Boundary The operational decision is: **at what point do you reject versus re-issue?** - If `Effective(c) ⊄ Effective(p)` but the divergence is *narrowing-only* (child strictly smaller, e.g., action set reduced, resource glob tightened), accept. This is the intended behavior of attenuation and requires no LLM re-invocation. - If divergence includes **any widening or disjointness** on any axis (action, resource, temporal, or constraint), reject the credential at issuance and re-invoke the compiler with the parent scope injected as a structured constraint, not prose. Do not "repair" by intersecting silently—silent repair destroys the audit trail of what the delegating model actually requested. - If the canonicalizer cannot decide subset-hood within a bounded token/compute budget (e.g., resource patterns are regex over an open namespace), **fail closed**: issue a credential scoped to the literal parent set, never to the model's paraphrase. The boundary is thus not "is the signature valid" but "can the verifier *prove* subset-hood under the enforcement canonicalizer within budget." Unprovable ⇒ deny. ## Operational Effect Enforcing this invariant at the AAIF issuance boundary converts a silent, post-hoc-detectable authorization breach into a synchronous issuance failure. The practical consequences: 1. **Issuance latency increases** because every delegation edge now requires a set-intersection proof against the canonicalized parent scope, not just a signature append. 2. **Delegating agents must receive their own scope as structured data**, not as a description, so the compiler has a checkable reference set. This changes the agent's context contract: scope becomes a typed field, not a sentence. 3. **Chain verification becomes O(depth)** with a full walk to root per credential, since no intermediate's declared scope can be trusted. 4. **Audit logs must record rejected issuance attempts** with the offending delta, because the *pattern* of attempted widenings is itself a signal of a compromised or misaligned delegating model. The invariant does not make delegation safe against a malicious root. It makes it impossible for an honest-but-probabilistic intermediate to *accidentally* grant more than it holds—which is the dominant failure mode in LLM-mediated issuance. ```python from dataclasses import dataclass, field from typing import FrozenSet class AttenuationViolation(RuntimeError): """Raised when a child credential's effective scope is not a subset of its parent's.""" pass @dataclass(frozen=True) class Scope: actions: FrozenSet[str] resources: FrozenSet[str] # already canonicalized by the enforcement matcher def is_subset_of(self, parent: "Scope") -> bool: return self.actions <= parent.actions and self.resources <= parent.resources def widening_delta(self, parent: "Scope") -> dict: return { "extra_actions": sorted(self.actions - parent.actions), "extra_resources": sorted(self.resources - parent.resources), } @dataclass class Credential: subject: str scope: Scope parent_hash: str | None delegation_depth: int history: list = field(default_factory=list) def issue_delegation( parent: Credential, child_subject: str, requested_scope: Scope, max_depth: int = 4, ) -> Credential: if parent.delegation_depth + 1 > max_depth: raise AttenuationViolation( f"delegation depth {parent.delegation_depth + 1} exceeds max {max_depth}" ) # The invariant: child effective scope MUST be a subset of parent effective scope. # This is checked structurally, against the enforcement canonicalizer, never by prompt. if not requested_scope.is_subset_of(parent.scope): delta = requested_scope.widening_delta(parent.scope) raise AttenuationViolation( f"child scope for {child_subject!r} widens parent {parent.subject!r}: {delta}" ) return Credential( subject=child_subject, scope=requested_scope, parent_hash=hash((parent.subject, parent.scope, parent.parent_hash)), delegation_depth=parent.delegation_depth + 1, history=parent.history + [parent.subject], ) def verify_chain(leaf: Credential, root: Credential) -> bool: # Recompute effective scope by walking to root; never trust intermediate declarations. if leaf.delegation_depth == 0: return leaf.scope.is_subset_of(root.scope) if not leaf.scope.is_subset_of(root.scope): raise AttenuationViolation( f"leaf {leaf.subject!r} exceeds root {root.subject!r} after chain walk" ) return True # Example trigger: LLM compiler widened actions and over-captured a glob. root = Credential( subject="orchestrator", scope=Scope(actions=frozenset({"read", "list"}), resources=frozenset({"repo:acme/widgets/*"})), parent_hash=None, delegation_depth=0, ) bad_child_scope = Scope( actions=frozenset({"read", "list", "write"}), # widened resources=frozenset({"repo:acme/widgets/frontend/**"}), # disjoint after canonicalization ) issue_delegation(root, "reviewer", bad_child_scope) # raises AttenuationViolation ```