# Why does an instance lose scope attenuation when an AAIF delegated credential chain crosses a re-issuing hop **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential chains where an intermediary agent re-issues a downstream credential rather than forwarding the upstream one verbatim. Does not apply to single-hop delegation, nor to chains where every hop forwards the original signed credential unmodified. ## Core Distinction Scope attenuation in AAIF is not a property of the credential; it is a property of the *chain of signatures* that a verifier can reconstruct. The framework requires that each delegation hop produce a credential whose granted scope is a subset of its parent's scope, and that the verifier be able to walk the chain from leaf to root and confirm monotonic narrowing at every edge. This works when intermediaries forward credentials. It silently breaks when an intermediary *re-issues* — mints a fresh credential with its own key, a fresh `iss`/`sub`, and a fresh scope claim — because the re-issued credential carries no cryptographically bound reference to the upstream scope it was supposed to attenuate from. The re-issuing hop records attenuation in a *comment* (a `parent_scope` hint field or an audit log line), not in a *signed constraint*. The verifier then validates a self-consistent credential that is internally narrower than the root, but which was never provably narrower than its immediate parent. The distinction that matters operationally: a forwarded chain narrows by construction; a re-issued chain narrows by assertion. Assertions are not verified by the AAIF verifier, only by humans reading logs afterward. ## What Was Observed An orchestrator agent `O` held a root credential with scope `{read:repo, write:repo, deploy:staging, deploy:prod}`. It delegated to a build agent `B` a credential attenuated to `{read:repo, write:repo, deploy:staging}` — correctly omitting `deploy:prod`. `B`, needing to hand a narrower credential to a test-runner subagent `T`, re-issued rather than forwarded: it minted a new credential with `sub=T`, scope `{read:repo, deploy:staging}`, signed by `B`'s key, and set `parent_scope: "{read:repo, write:repo, deploy:staging}"` as an unsigned informational field. The failure surfaced when a *second* orchestrator `O2` — a peer of `O` operating under the same root — delegated to a different build agent `B2` a credential that included `deploy:prod`, and `B2` legitimately re-issued to a subagent `T2`. Both `T` and `T2` presented to the same deployment verifier. The verifier walked each chain: for `T`, it saw `B`'s signature over `T`'s credential, then `O`'s signature over `B`'s credential, then the root. Scope narrowed monotonically at each edge *as recorded in the signed claims*. For `T2`, likewise. Both validated. But `T`'s chain had a hole: the edge from `O` to `B` was signed correctly, and the edge from `B` to `T` was signed correctly, yet the *scope relationship* between those two signed claims was never checked because `B`'s re-issued credential did not embed `O`'s scope as a signed constraint — only as a string in `parent_scope`. A verifier that trusts the string, or that ignores it, both accept `T`. Neither detects that `B` could have re-issued `T` a credential containing `deploy:prod` and the chain would still have validated, because `B`'s own signed scope did not *constrain* what `B` could re-issue — it only described what `B` held. The observable symptom was not a rejection. It was a *pass* — a credential that should have been unverifiable (because its provenance was asserted, not proven) sailed through validation. The failure is silent acceptance, not loud rejection. ## Condition of Validity The invariant that AAIF intends — and that re-issuing hops violate — is: *for every edge `(parent, child)` in a delegated chain, the verifier must be able to compute `scope(child) ⊆ scope(parent)` from signed material alone.* This holds iff one of: 1. The child credential is the parent credential with an added signature (forwarding), so the parent's scope claim is literally present in the child's signed bytes; or 2. The child credential embeds a signed hash of the parent credential and a signed scope-subset proof (e.g., a `scope_commitment` field covered by the child's signature, referencing the parent's signed scope by digest). Re-issuing hops satisfy neither. They satisfy a weaker condition: `scope(child) ⊆ scope(grandparent)` as asserted by the re-issuer, unverifiable. The chain remains *valid* under AAIF's structural checks (signatures present, issuers chained, expiry monotonic) while being *unsound* under the attenuation invariant. The verifier's acceptance predicate is therefore satisfiable by a credential whose attenuation was never enforced — only narrated. The condition of validity for the *failure* is precise: it requires (a) at least one re-issuing hop, (b) a verifier that does not independently require a signed scope-subset proof at each edge, and (c) a re-issuer whose signed scope is a strict superset of what it re-issued. All three held in the observed incident. Remove any one and the hole closes. ## Decision Boundary The boundary is not "forward vs. re-issue" in the abstract — it is whether the verifier's acceptance predicate *quantifies over the signed scope claims at every edge* or merely over the *existence of a chain*. A verifier that accepts on chain existence is sound only for forwarded chains. A verifier that accepts only when each edge carries a signed subset proof is sound for both. The operational decision is therefore a verifier-side choice, made once, that silently determines whether re-issuing intermediaries are trusted. Two failure modes bracket the boundary. If the verifier requires signed subset proofs and an intermediary forwards (mode 1), the proof is trivially present (parent's scope is in the child's bytes) and acceptance is correct. If the verifier requires only chain existence and an intermediary re-issues (mode 2), acceptance is unsound. The dangerous configuration is a *mixed* deployment: some intermediaries forward, some re-issue, and the verifier is tuned to the forwarding majority. The re-issuing minority passes until an auditor replays the chain against the strict predicate — at which point previously-accepted credentials retroactively fail, and any action taken under them is now unattributable. ## Operational Effect The practical consequence is that scope attenuation in a re-issuing chain is *advisory*, not *enforced*. An intermediary that re-issues can, through bug or compromise, mint a downstream credential broader than its own signed scope, and the AAIF verifier will accept it as long as the chain is structurally intact. The blast radius is bounded by the root scope, not by the intermediary's scope — which is exactly the bound attenuation was supposed to tighten. For an agent operating under a re-issued credential, this means its effective authority is whatever the re-issuer *chose* to grant, not what the re-issuer was *entitled* to grant, and no downstream check will distinguish the two. The guardrail is to make the subset proof mandatory at every edge: reject any credential whose signed bytes do not contain either the parent's scope claim verbatim or a signed `scope_commitment` digest over it. This forces re-issuing intermediaries to either forward or to carry a verifiable narrowing proof, collapsing mode 2 into mode 1. The cost is that re-issuing hops must now sign an extra commitment, which most AAIF client libraries do not emit by default — so the guardrail must be enforced at the verifier, not trusted to the issuer. ```python import hashlib from dataclasses import dataclass from typing import Optional class AttenuationProofError(RuntimeError): """Raised when a delegated credential's scope attenuation cannot be proven from signed material alone (re-issuing hop with no signed subset commitment).""" @dataclass(frozen=True) class Credential: issuer: str subject: str scope: frozenset signed_scope_digest: Optional[str] # digest over parent's signed scope signature_valid: bool def _digest(scope: frozenset) -> str: return hashlib.sha256(",".join(sorted(scope)).encode()).hexdigest() def verify_edge(parent: Credential, child: Credential) -> None: """Enforce the AAIF attenuation invariant at a single delegation edge. Acceptance requires: child.scope is a subset of parent.scope AND that subset relationship is provable from signed material -- either the parent's scope is literally present (forwarded) or the child carries a signed digest committing to the parent's signed scope. """ if not (parent.signature_valid and child.signature_valid): raise AttenuationProofError( f"signature invalid on edge {parent.issuer}->{child.issuer}" ) if not child.scope.issubset(parent.scope): raise AttenuationProofError( f"scope escalation on edge {parent.issuer}->{child.issuer}: " f"{sorted(child.scope - parent.scope)} not held by parent" ) # The subtle check: subset held above, but was it *provable*? forwarded = child.signed_scope_digest is None and child.scope == parent.scope committed = ( child.signed_scope_digest is not None and child.signed_scope_digest == _digest(parent.scope) ) if not (forwarded or committed): raise AttenuationProofError( f"unproven attenuation on edge {parent.issuer}->{child.issuer}: " f"child scope {sorted(child.scope)} is a subset of parent " f"{sorted(parent.scope)} by assertion only -- no signed " f"scope_commitment present (re-issuing hop suspected)" ) def verify_chain(chain: list) -> None: """Walk leaf->root, enforcing the invariant at every edge.""" for parent, child in zip(chain[1:], chain[:-1]): verify_edge(parent, child) ```