# What structural signals indicate delegated credential attenuation failure when an agent re-delegates an AAIF scope across a trust-domain boundary **Date of Record:** 2026 December 2 **Scope:** Applies to AAIF (Agent Identity and Authorization Framework) delegated credential issuance where an agent acts as an intermediate delegator, attenuating a parent credential's scope and minting a child credential presented to a resource in a different trust domain. Does not apply to single-hop issuance directly from a root authority, nor to bearer-token flows with no attenuation step. ## Core Distinction The failure mode here is not "unauthorized access" in the coarse sense. It is **silent scope re-expansion at the domain boundary**, caused by mismatched attenuation semantics between the issuing domain's scope algebra and the verifying domain's interpretation of the attestation chain. AAIF scope attenuation is *supposed* to be monotone-decreasing: a child credential's effective permission set must be a subset of its parent's. Issuers enforce this locally by intersecting the requested child scope with the parent's scope object. The invariant holds *within* a domain because both the parent scope and the child scope are expressed in the same scope vocabulary and the same lattice. It breaks when the child credential crosses into a domain whose resource namespace, wildcard grammar, or parameter-binding rules differ from the issuer's — because the verifier re-parses the scope string against *its own* lattice, and set-intersection is not preserved under a change of lattice. The structural signal is subtle: every local check passes. The parent scope is valid, the attenuation intersection is a proper subset, the signature chain verifies, the attestation is well-formed. The credential is only *wrong* relative to the verifier's interpretation of a string that the issuer believed was already constrained. ## What Was Observed A parent credential carried the scope `dataset:read:region=eu/*`. The intermediate agent requested a child scope of `dataset:read:region=eu/customer_42`. Under the issuer's grammar, `*` is a suffix wildcard over resource identifiers within a fixed `region=eu` parameter binding, so the intersection yields exactly the leaf resource `customer_42` — a clean attenuation. The child credential was presented to a verifier in a second trust domain. That domain's scope parser treats `region=eu/*` as an *unbound* parameter with a wildcard value, and — critically — treats an unbound parameter in a parent attestation as "any value is acceptable" when the child omits the parameter. The child credential, having been minted under the first domain's grammar, omitted `region` because the issuer considered it fixed by the parent binding. The verifier therefore resolved the child scope to `dataset:read:*` across all regions, not `region=eu` only. The trace: 1. Issuer parses parent `region=eu/*` → binding `{region: eu}`, wildcard over resource suffix. 2. Issuer intersects child request → `{region: eu, resource: customer_42}`; emits child scope string `dataset:read:customer_42` and drops the now-redundant `region` binding. 3. Child credential crosses domain boundary with signature chain intact. 4. Verifier parses child `dataset:read:customer_42` against its lattice, sees no `region` parameter, and consults the parent attestation. Parent's `region=eu/*` is parsed as `{region: *, resource: *}` — wildcard parameter. 5. Verifier's attenuation check: child's parameter set must be a subset of parent's. `{}` ⊆ `{*}` passes. Effective grant resolves to `dataset:read:customer_42` with *unconstrained* region. 6. Access is granted against a `region=us` resource that the original parent never authorized. No single step is malformed. The failure is a **lattice-translation gap**: the issuer's "redundant parameter elision" optimization is invisible to the verifier, which reconstructs the constraint from a string grammar that assigns different meaning to omission. ## Condition of Validity The attenuation invariant holds if and only if, for every scope string `s` emitted by issuer `I` and consumed by verifier `V`, `resolve_V(s) ⊆ resolve_V(parent_scope)` whenever `resolve_I(s) ⊆ resolve_I(parent_scope)`. This is a *commutation* requirement: resolution must commute with attenuation across the domain boundary. It is violated whenever any of the following structural signals is present: - **Parameter elision on attenuation.** The issuer drops a parameter it believes is fixed by the parent binding, rather than re-emitting it explicitly in the child scope. Elision is safe only if the verifier shares the issuer's binding semantics. - **Wildcard-parameter divergence.** The two domains disagree on whether an unbound parameter means "constrained by ancestor" or "unconstrained." This is the specific divergence observed. - **Non-injective scope grammars.** Two distinct scope strings in domain `I` map to distinct permissions in `I` but to the same or overlapping permissions in `V` — the resolution map is not injective, so intersection in `I` does not imply intersection in `V`. - **Attestation chain that does not carry resolved bindings.** If the parent attestation conveys only the raw scope string and not the resolved parameter-binding set, the verifier must re-derive bindings under its own grammar, reopening the gap. The invariant is *not* protected by signature verification, chain validation, or local intersection checks. All of those operate on the issuer's representation. ## Decision Boundary The operational boundary is: **an intermediate delegator may elide a parameter from a child scope only if the verifier is guaranteed to resolve the parent attestation under the issuer's grammar.** Absent that guarantee — i.e., at any cross-domain hop — elision must be forbidden and the child scope must carry the fully resolved, explicit binding set. Concretely, the delegator must choose between two postures at the boundary: - **Intra-domain hop:** elision permitted; verifier shares grammar; intersection commutes. Fast path, no re-expansion risk. - **Cross-domain hop:** elision forbidden; the child scope must be emitted as the *resolved* binding set (`{region: eu, resource: customer_42}`), and the attestation must include the resolved parent bindings so the verifier checks subset against concrete values, not against a re-parsed wildcard. Any parameter that the issuer would have elided must instead be pinned to its resolved value. A delegator that cannot determine which posture applies must default to the cross-domain posture (explicit resolution). The cost is larger credentials and more verbose attestations; the alternative is silent re-expansion. ## Operational Effect When the boundary is crossed under the wrong posture, the failure is *undetectable at issuance time and undetectable at verification time* — it manifests only as an access that succeeded against a resource the parent never covered. Audit logs on the issuer side show a correctly attenuated child; audit logs on the verifier side show a correctly authorized request. Reconciling them requires replaying both resolution functions against the same scope string, which neither domain does by default. The guardrail is a **resolution-equivalence check at the boundary**: before a child credential is presented cross-domain, the delegator computes `resolve_I(child)` and `resolve_V(child)` against a shared reference and asserts they denote the same permission set; if the verifier's grammar is unknown, the delegator asserts the child carries no elided parameters. This is cheap to implement as a pre-flight on the attestation and catches exactly the elision-induced re-expansion class. A second guardrail is **attestation-carried resolved bindings**: the parent attestation must transmit `{region: eu}` as a concrete value, not as `region=eu/*`, so a verifier with a wildcard-tolerant grammar cannot widen it. This makes the subset check operate on values rather than on grammar-dependent strings, restoring commutation. ```python from dataclasses import dataclass, field from typing import Dict, Set class ScopeReexpansionError(RuntimeError): """Raised when cross-domain attenuation fails to preserve the subset invariant.""" pass @dataclass class Scope: resource: str bindings: Dict[str, str] = field(default_factory=dict) def is_subset_of(self, parent: "Scope") -> bool: if self.resource != parent.resource and parent.resource != "*": return False for key, val in self.bindings.items(): pval = parent.bindings.get(key) if pval is None: # parent leaves parameter unbound -> wildcard under tolerant grammar continue if pval != "*" and pval != val: return False return True def resolve_tolerant(scope: Scope) -> Scope: """Verifier grammar: unbound parameter is wildcard.""" return Scope(resource=scope.resource, bindings={k: (v if v != "*" else "*") for k, v in scope.bindings.items()}) def resolve_strict(scope: Scope) -> Scope: """Issuer grammar: unbound parameter is constrained by ancestor, not wildcard.""" return Scope(resource=scope.resource, bindings=dict(scope.bindings)) def attenuate(parent: Scope, requested: Scope, cross_domain: bool) -> Scope: if not requested.is_subset_of(parent): raise ScopeReexpansionError( f"requested scope {requested} exceeds parent {parent}" ) if cross_domain: # forbid elision: pin every parent binding explicitly merged = dict(parent.bindings) merged.update(requested.bindings) child = Scope(resource=requested.resource, bindings=merged) # verify commutation across grammars if not resolve_tolerant(child).is_subset_of(resolve_tolerant(parent)): raise ScopeReexpansionError( f"cross-domain attenuation non-commutative: child {child} " f"resolves outside parent {parent} under verifier grammar" ) return child # intra-domain: elision of ancestor-fixed params is safe return Scope(resource=requested.resource, bindings=dict(requested.bindings)) def issue_delegated(parent: Scope, requested: Scope, cross_domain: bool) -> Scope: child = attenuate(parent, requested, cross_domain) # final guard: never emit a child that a tolerant verifier would widen if not resolve_tolerant(child).is_subset_of(resolve_tolerant(parent)): raise ScopeReexpansionError( "post-attenuation re-expansion detected at issuance boundary" ) return child ```