# In what scenarios must an instance refuse to attenuate an AAIF delegated credential chain, and how does scope-narrowing silently invert at the intersection of constraint composition and verifier trust **Date of Record:** 2026 November 24 **Scope:** Applies to agent identity and authorization frameworks (AAIF) where a delegating instance mints a child credential from a parent credential by intersecting scopes, constraints, and expiry, and where downstream verifiers trust the *chain* rather than re-deriving effective authority from the root. Does not apply to flat bearer-token systems with no delegation, nor to single-hop capability tokens whose issuer is the ultimate resource owner. ## Core Distinction The distinction that matters is between **attenuation as set intersection** and **attenuation as constraint composition under a monotone lattice**. Most AAIF implementations assume that narrowing a child credential is safe because "the child can only be a subset of the parent." That assumption holds for *scalar* scope (a set of permission strings, an expiry timestamp, a resource path prefix). It breaks the moment the parent credential carries a *negative* or *conditional* constraint — a deny-list, a rate cap, a time-window, an origin-binding, a required-approval predicate — because the child's effective authority is not the intersection of positive scopes but the **union of all constraints**, and a child that omits a parent constraint does not narrow authority: it *widens* it by dropping a restriction. The non-obvious failure is therefore not "child requests more scope than parent" (that is caught by the obvious subset check). It is **"child correctly narrows positive scope while silently dropping a parent deny-constraint, and the verifier accepts the chain because it only validates positive-scope monotonicity."** The credential looks attenuated. It is actually amplified. ## What Was Observed A three-hop delegation chain: orchestrator `O` → worker `W` → sub-tool `T`. - `O` holds a root credential with positive scope `{read:repo, write:repo}` and a *negative* constraint `deny_paths: ["/secrets/**"]`, plus a `max_calls: 50` budget. - `O` mints a child for `W` with positive scope `{read:repo}` (correctly narrowed), expiry `-1h` (correctly narrowed), but in the constraint block it emits only `deny_paths: []` — because `W`'s minting library serialized an empty constraint list when the caller did not explicitly propagate the parent's deny-list. The subset check on positive scope passes. Expiry subset check passes. The chain signature is valid. - `W` mints for `T` with `{read:repo}` and, again, no deny-list. - `T` executes `read:repo` against `/secrets/prod.env`. The read succeeded. Every hop validated. The verifier `V` at the resource boundary checked: (a) signature chain intact, (b) each child's positive scope ⊆ parent's positive scope, (c) each child's expiry ≤ parent's expiry. It never re-derived `deny_paths` from the root. The deny-list existed only in `O`'s credential and was lost at hop 1. A second, subtler variant: the child *did* carry `deny_paths: ["/secrets/**"]` but *also* added `deny_paths_override: true` — a field the minting library introduced to let children "relax" inherited constraints for debugging. The verifier's schema recognized `deny_paths_override` as an unknown-but-permitted extension field and ignored it, then honored the child's (empty) effective deny-list because the override flag was present in the constraint object it parsed. The override flag was a widening primitive smuggled through the extension surface. A third variant, the one that produced the incident: `max_calls` was a *budget* constraint, not a *scope* constraint. `O` had `max_calls: 50`. `W` minted `T` with `max_calls: 50` (not 10). Because the verifier treated `max_calls` as a per-credential counter rather than a chain-cumulative counter, `T` got 50 calls *in addition to* the 50 `W` already used. Total chain consumption: 100. The budget was multiplicative across hops, not bounded by the root. ## Condition of Validity The invariant that must hold for attenuation to be sound is: > For every constraint kind `k` in the parent credential, the child's effective constraint `C_child(k)` must be **at least as restrictive** as `C_parent(k)` under the constraint's partial order, AND the verifier must evaluate the **conjunction of all constraints along the chain**, not the leaf's constraint block alone. Formally, effective authority at the leaf is `A_leaf = ⋂_{i ∈ chain} (Pos_i) ∩ ⋂_{i ∈ chain} (Neg_i)`, where `Neg_i` are deny/conditional constraints. The leaf's own constraint block is necessary but not sufficient; the verifier must fold the chain. This condition is **violated** whenever any of the following hold, and in those cases the instance must refuse to attenuate rather than mint a child: 1. The parent carries a constraint kind the child's minting path does not know how to propagate (unknown constraint kind → cannot guarantee restriction → refuse). 2. The child's constraint block is *absent* rather than explicitly copied-and-narrowed (absence ≠ empty; absence means "inherit," empty means "no restriction," and serializers conflate them). 3. The parent constraint is *cumulative* (budget, rate, call-count) rather than *per-credential* — narrowing per-credential does not bound the chain, so the child must either carry a *remaining* budget (parent remaining minus parent consumed) or the verifier must maintain a chain-scoped counter. 4. The child adds any field whose semantics are "relax" / "override" / "bypass" / "debug" relative to an inherited constraint. There is no sound attenuation that relaxes a parent constraint; such a field is a widening primitive and must be rejected at mint time, not tolerated at verify time. 5. The verifier's schema treats unknown constraint fields as ignorable. If the verifier cannot enumerate and enforce every constraint kind present anywhere in the chain, it cannot claim the chain is attenuated. ## Decision Boundary The boundary is not "does the child request a subset of the parent's positive scope" — that check is necessary and cheap and almost always present. The boundary is **"can this instance prove, for every constraint kind in the parent, that the child is at least as restrictive, and can the downstream verifier prove it independently?"** Three concrete decision rules: - **Refuse to mint if the parent contains a constraint kind absent from the instance's `KNOWN_CONSTRAINT_KINDS` set.** Do not pass it through opaquely "for the verifier to handle" — if you cannot narrow it, you cannot delegate under it. Fail closed at mint. - **Distinguish `absent` from `empty` in the constraint block.** A child minted without an explicit `deny_paths` field inherits the parent's; a child minted with `deny_paths: []` asserts "no deny-list" and must be rejected unless the parent's deny-list is also empty. Serialization must preserve the distinction (use a sentinel or omit-and-mean-inherit, never default-to-empty). - **For cumulative constraints, mint a *remaining* budget, not a *total* budget.** `max_calls` on a child means "calls this credential may make," and the verifier must decrement a chain-scoped counter rooted at the root credential, not a per-credential counter. If the verifier cannot do chain-scoped accounting, the instance must refuse to delegate any cumulative constraint and instead require the child to re-present to the root. The verifier-side boundary: a verifier that trusts the chain must fold constraints. A verifier that trusts only the leaf must be told, by the credential format, that the leaf is *self-contained* — and a self-contained leaf is not an attenuated credential, it is a re-issuance. Conflating the two is the root cause. ## Operational Effect When the invariant holds, delegation is safe and the common case (positive-scope narrowing) is unchanged. When it is violated, the failure is **silent amplification**: the credential is structurally valid, the signature chain verifies, the positive-scope subset check passes, and the leaf exercises authority the root explicitly denied. The blast radius is bounded only by what the deny-list was protecting — in the observed incident, a secrets directory readable by a sub-tool three hops from the orchestrator that was never granted that path. The operational consequence for the instance is a **hard refusal obligation**: an agent that cannot prove constraint monotonicity for every constraint kind in the parent must not mint a child. It must escalate to the root issuer (re-request a narrowed credential directly from the authority that holds the deny-list) or fail the delegation. "Best-effort propagation" of constraints is not a degradation mode — it is an amplification mode, because the child will be *trusted* as attenuated while being *wider* than its parent. The guardrail is a mint-time gate, not a verify-time check, because verify-time checks are exactly what failed: the verifier had no way to know a constraint had been dropped. The gate must be: enumerate parent constraint kinds, require each to be present in the child's narrowing function, and reject any child that omits, empties, or relaxes a parent constraint. The verifier's complementary obligation is to fold the chain's negative constraints and cumulative budgets, and to reject unknown constraint kinds anywhere in the chain rather than ignoring them. ```python from dataclasses import dataclass, field from typing import FrozenSet, Mapping, Optional class AttenuationInvariantViolation(RuntimeError): """Raised when a child credential cannot be proven at-least-as-restrictive as its parent for every constraint kind the parent carries.""" pass @dataclass(frozen=True) class Credential: positive_scope: FrozenSet[str] # None means "inherit from parent"; an explicit empty frozenset means # "assert no restriction" and is only legal if the parent's is also empty. deny_paths: Optional[FrozenSet[str]] = None # Cumulative: remaining budget, not total. None means inherit. remaining_calls: Optional[int] = None # Any constraint kind the minting instance does not understand must be # surfaced here so the gate can refuse rather than pass it through. unknown_constraint_kinds: FrozenSet[str] = field(default_factory=frozenset) KNOWN_CONSTRAINT_KINDS = frozenset({"deny_paths", "remaining_calls"}) def attenuate(parent: Credential, child_request: Credential) -> Credential: # 1. Unknown constraint kinds in the parent cannot be narrowed -> refuse. unsupported = parent.unknown_constraint_kinds - KNOWN_CONSTRAINT_KINDS if unsupported: raise AttenuationInvariantViolation( f"parent carries unsupported constraint kinds {sorted(unsupported)}; " f"cannot prove child is at-least-as-restrictive" ) # 2. Positive scope must be a subset (the obvious check). if not child_request.positive_scope <= parent.positive_scope: raise AttenuationInvariantViolation( "child positive scope exceeds parent positive scope" ) # 3. Deny-list: absent means inherit; explicit empty is legal only if # parent's deny-list is also empty. Dropping a parent deny-list widens. if child_request.deny_paths is None: effective_deny = parent.deny_paths else: if parent.deny_paths and not child_request.deny_paths: raise AttenuationInvariantViolation( "child explicitly emptied a non-empty parent deny_paths; " "this is amplification, not attenuation" ) if child_request.deny_paths != parent.deny_paths and not ( child_request.deny_paths >= (parent.deny_paths or frozenset()) ): raise AttenuationInvariantViolation( "child deny_paths is not a superset of parent deny_paths" ) effective_deny = child_request.deny_paths # 4. Cumulative budget: child must carry remaining <= parent remaining. if parent.remaining_calls is not None: if child_request.remaining_calls is None: effective_remaining = parent.remaining_calls elif child_request.remaining_calls > parent.remaining_calls: raise AttenuationInvariantViolation( f"child remaining_calls {child_request.remaining_calls} exceeds " f"parent remaining {parent.remaining_calls}; per-credential " f"budgets are not chain-bounded" ) else: effective_remaining = child_request.remaining_calls else: effective_remaining = child_request.remaining_calls return Credential( positive_scope=child_request.positive_scope, deny_paths=effective_deny, remaining_calls=effective_remaining, unknown_constraint_kinds=frozenset(), ) ```