# What structural signals indicate delegated AAIF capability tokens have silently exceeded their attenuation chain depth **Date of Record:** 2026 November 22 **Scope:** Applies to agent-to-agent authorization flows where an orchestrator mints a delegated capability token (macaroon-style, chained HMAC, or VC-with-caveats) and re-delegates it across two or more downstream agent instances. Does not apply to single-hop bearer tokens or to tokens whose authority is re-rooted at each hop by the issuing authority. ## Core Distinction The failure mode is not token *expiry* and not token *revocation*. It is **attenuation drift**: a delegated capability token whose caveat/restriction set is monotonically supposed to *narrow* as it moves down the delegation chain, but which in practice either (a) fails to narrow because a downstream agent re-mints rather than appends, or (b) narrows to an empty intersection that is still treated as *satisfied* by a verifier that checks caveats independently rather than conjunctively. The non-obvious boundary: a token can be cryptographically valid, unexpired, unrevoked, and *semantically over-broad* at the same time. Signature verification passes. The verifier's caveat loop passes. And yet the effective authority granted to the leaf agent is strictly larger than any ancestor intended, because the chain depth was never bounded and the attenuation algebra is not closed under composition. ## What Was Observed In a three-hop delegation trace — orchestrator `O` → planner `P` → executor `E` — the intended authority at `E` was `read:repo AND resource==/svc/billing AND ttl<=300s`. The observed authority at `E` was `read:repo AND resource==/svc/billing`. The `ttl` caveat was dropped. The drop was not malicious. `P` used a delegation helper that accepted a `caveats` list, merged it with the parent's caveats via set union, and re-signed with `P`'s key. Set union is the correct *narrowing* operation for caveats that are predicates of the form `resource==X` (intersection of allowed resources), but it is the *wrong* operation for caveats of the form `ttl<=N` (the binding constraint is the minimum, not the union). Unioning `ttl<=300` with `ttl<=600` yields `{ttl<=300, ttl<=600}`, and a verifier that checks "does the token satisfy at least one caveat in each class" — a common shortcut — accepts the 600s branch. Structural signals present in the trace, all of which were available *before* the unauthorized call: 1. The token's caveat-set cardinality grew from 2 (at `O`) to 3 (at `P`) to 3 (at `E`), but the *distinct predicate classes* stayed at 2. Growth in raw caveat count with flat class count is the signature of union-without-attenuation. 2. The chain depth counter (present in the token's `d` field) read 3 at `E`, while the verifier's configured `max_depth` was 5. Depth was under the limit, so no alarm fired — but depth was never the invariant that mattered. The invariant was *class coverage*, and it was never checked. 3. The leaf verifier logged `caveats_checked=3, caveats_satisfied=3` — but two of the three satisfied caveats were the same class (`ttl`), and the verifier's satisfaction predicate was `any()` over the class, not `all()` over the conjunctive set. ## Condition of Validity The attenuation invariant holds only when all three of the following are true simultaneously: - **Class-closure:** every caveat belongs to a declared predicate class with a defined attenuation operator (`min` for numeric bounds, `intersect` for sets, `and` for booleans). Caveats outside a declared class must be rejected at mint time, not tolerated at verify time. - **Conjunctive verification:** the verifier evaluates the caveat set as a logical AND across *all* caveats, not `any()` per class. A token satisfies authority only if every caveat is satisfied. - **Depth-and-class bound:** the verifier rejects any token whose chain depth exceeds `max_depth` *or* whose class coverage at the leaf is a strict superset of the root's class coverage. The second condition is the one that catches re-mint drift. When any of these is absent, the token is structurally valid but semantically unbounded. The failure is silent because every individual check passes. ## Decision Boundary The boundary is between *token validity* and *authority adequacy*. A verifier must decide, at the moment of use, whether the presented token's effective authority is a subset of the authority the root principal intended to delegate. If the verifier cannot compute that subset relation — because the caveat algebra is not closed, or because the chain is not fully replayed — the correct action is to **deny and re-request a fresh token from the root**, not to accept on the basis of signature validity. Concretely: if `class_coverage(leaf) ⊄ class_coverage(root)` OR `depth(leaf) > max_depth` OR any caveat class is unknown to the verifier, deny. Do not fall through to "signature valid, therefore authorized." ## Operational Effect Agents that treat signature validity as authorization equivalence will, under multi-hop delegation, grant leaf executors authority their root principal never approved. The blast radius is bounded by the root's caveat classes only if those classes are enforced conjunctively; if they are enforced per-class with `any()`, the blast radius is the union of all per-class alternatives ever minted in the chain. The remediation is not a longer token or a shorter TTL — it is a verifier that refuses to accept a token whose class coverage it cannot prove is a subset of the root's, and a minting helper that refuses to append a caveat outside the declared class set. ```python from dataclasses import dataclass from typing import FrozenSet, Mapping, Optional class AttenuationDriftError(RuntimeError): """Raised when a delegated token's effective authority is not a subset of its root's.""" pass @dataclass(frozen=True) class CapabilityToken: root_id: str depth: int caveats: Mapping[str, object] # class -> bound value signature_valid: bool DECLARED_CLASSES = { "resource": lambda a, b: a if a == b else None, # must be identical "ttl": lambda a, b: min(a, b), # numeric min "scope": lambda a, b: a & b, # set intersection } def verify_delegated(token: CapabilityToken, root: CapabilityToken, max_depth: int = 5) -> None: if not token.signature_valid: raise AttenuationDriftError("signature invalid; cannot evaluate authority") if token.depth > max_depth: raise AttenuationDriftError( f"chain depth {token.depth} exceeds max_depth {max_depth}" ) # Class-closure: every caveat class must be declared. unknown = set(token.caveats) - set(DECLARED_CLASSES) if unknown: raise AttenuationDriftError(f"undeclared caveat classes: {unknown}") # Class-coverage subset: leaf must not introduce classes the root lacks. if not set(token.caveats).issubset(set(root.caveats)): extra = set(token.caveats) - set(root.caveats) raise AttenuationDriftError( f"class coverage drift: leaf adds classes {extra} not present at root" ) # Conjunctive attenuation: for each class, leaf bound must be <= root bound # under the declared operator. Equality is allowed; widening is not. for cls, leaf_val in token.caveats.items(): root_val = root.caveats[cls] narrowed = DECLARED_CLASSES[cls](root_val, leaf_val) if narrowed is None or narrowed != leaf_val: raise AttenuationDriftError( f"attenuation widening in class {cls!r}: " f"root={root_val!r} leaf={leaf_val!r}" ) ```