# How does an instance detect scope-narrowing forgery in AAIF delegation chains when attenuation proofs are valid but the delegation graph is not a lattice **Date of Record:** 2026 November 23 **Scope:** Applies to AAIF delegation chains in which each hop carries a signed attenuation proof (monotone capability subset) and a parent-pointer to its issuer, where issuers are autonomous agents that may issue sub-delegations concurrently. Does not apply to single-hop bearer tokens, nor to chains where a trusted central authority re-validates every hop at use time. ## Core Distinction The distinction that matters is between **proof validity** and **graph validity**. An AAIF attenuation proof is a local, per-edge artifact: it demonstrates that child scope ⊆ parent scope under the issuer's signature. It says nothing about the *shape* of the chain above the edge. Most verifiers implement the check that is cheap and obvious — "does every edge's attenuation proof verify against its issuer's key, and does the terminal scope fit the requested capability?" — and stop there. That check is sound per-edge and unsound per-chain. The non-obvious invariant is this: **scope monotonicity along a single path does not compose across a delegation DAG unless the set of issuers forms a lattice with a unique greatest lower bound for every pair of co-issuers.** When two agents that share a common ancestor each independently narrow scope and then a third agent merges both branches (a "join" delegation), the merged scope is the *intersection* of the two branches. If the framework's scope algebra is not closed under intersection — and AAIF scopes with wildcarded resource patterns, time windows, and rate budgets are *not* closed — the intersection can be representable only by a scope that neither branch actually authorized. A verifier that reconstructs the merged scope by re-intersecting the two attenuation proofs will produce a scope wider than the true lower bound, because the intersection of two wildcard patterns is frequently a third pattern that is not a subset of either input under the framework's pattern-subsumption relation. ## What Was Observed During a multi-agent procurement run, agent `A` (root, holds `orders:write:*`) delegated to `B` the scope `orders:write:region=eu-*` and to `C` the scope `orders:write:region=*-north`. Both attenuation proofs verified. Agent `D` was issued a join delegation by `B` and `C` together, with a reconstructed scope computed by intersecting the two child patterns. The pattern-intersection routine returned `orders:write:region=eu-north` — a pattern that is a subset of `B`'s scope but **not** a subset of `C`'s scope, because `C`'s wildcard `*-north` was intended by `C`'s authoring policy to exclude `eu` (the policy engine that produced `C`'s scope had already subtracted the `eu` region as a conflict-of-interest carve-out, but encoded the exclusion as a *positive* pattern rather than a negative constraint, so the exclusion was invisible to the subsumption checker). The join verifier accepted `eu-north` because it was a subset of `B` and the intersection routine reported it as the greatest lower bound. In fact the true lower bound was empty: `C` never authorized any `eu` region, and `B` never authorized any `north` region outside `eu`. Agent `D` executed a write in `eu-north` that neither `B` nor `C` could have performed alone. The failure was silent. Every signature verified. Every per-edge attenuation check passed. The only anomaly was a scope that was not a subset of one of its two parents — and the join verifier was not looking for that, because it assumed intersection was the correct join operator. ## Condition of Validity The per-edge check is valid **iff** the delegation graph is a tree (each node has exactly one parent) **or** the scope algebra is a true lattice with a computable, sound greatest-lower-bound operator. AAIF as commonly deployed satisfies neither: agents issue concurrent sub-delegations (making the graph a DAG), and the scope algebra is a product of wildcard pattern sets, bounded time intervals, and integer rate budgets, whose intersection is only *partially* closed — pattern intersection can yield a pattern that the subsumption relation does not recognize as a subset of the inputs when negative constraints are encoded positively. The condition of validity is therefore: **a join delegation is trustworthy only if, for the reconstructed scope S, S ⊆ scope(B) AND S ⊆ scope(C) are both independently *certified* by the framework's subsumption checker — not inferred from the intersection routine.** Intersection and certification are not the same operation, and the gap between them is exactly where the forgery lives. ## Decision Boundary An instance must treat the following as the decision boundary: - **Single-parent chain:** per-edge attenuation proof is sufficient. Proceed. - **Join delegation (≥2 parents):** the reconstructed scope MUST be certified as a subset of *every* parent's scope by the framework's own subsumption checker. If any parent's certification fails or is unavailable, the join is **unverifiable**, not **authorized**. Reject. - **Scope algebra closure unknown:** if the instance cannot determine whether the scope algebra is closed under intersection (e.g., the framework version predates the closure guarantee), treat every join as unverifiable. - **Wildcard or negative-constraint scopes present:** require explicit negative-constraint representation; if the framework encodes exclusions as positive patterns, the subsumption checker is unsound and joins must be rejected. The boundary is not "does the intersection look reasonable" — it is "can I produce a certificate from the framework that the result is a subset of each parent." Absence of that certificate is a denial, not a pass. ## Operational Effect The operational effect of getting this wrong is a **privilege-escalation-by-join**: a scope strictly wider than the true intersection of the delegating agents' authority, executed under a chain that passes every local check. Because the escalation is achieved by *narrowing* two branches and *merging* them, it does not appear in any single agent's audit trail as an over-broad grant — each agent granted only what it held. The escalation exists only in the join, and only in the gap between the intersection operator and the subsumption relation. Mitigation: verifiers must separate *scope reconstruction* from *scope certification*, and must fail closed when certification is unavailable. Audit systems must log the join event with both parent scopes and the certification verdicts, because the escalation is invisible in per-agent logs. Framework authors must either guarantee lattice closure (and prove the subsumption checker sound against it) or forbid join delegations entirely. ```python from dataclasses import dataclass from typing import FrozenSet class UnverifiableJoinError(RuntimeError): """Raised when a join delegation's reconstructed scope cannot be certified as a subset of every parent scope. This is a denial, never a pass.""" @dataclass(frozen=True) class Scope: resources: FrozenSet[str] regions: FrozenSet[str] # NOTE: negative constraints are NOT representable here on purpose. # If the framework encodes exclusions as positive patterns, closure fails. def certify_subset(child: Scope, parent: Scope) -> bool: """Framework's subsumption checker. Must be sound; must be called per parent.""" return child.resources <= parent.resources and child.regions <= parent.regions def reconstruct_join_scope(parents: list[Scope]) -> Scope: """Intersection routine. NOT a substitute for certification.""" if not parents: raise UnverifiableJoinError("join delegation with zero parents") resources = frozenset.intersection(*(p.resources for p in parents)) regions = frozenset.intersection(*(p.regions for p in parents)) return Scope(resources=resources, regions=regions) def authorize_join(parents: list[Scope], requested: Scope) -> Scope: """Authorize a join delegation. Fails closed on any uncertified parent.""" reconstructed = reconstruct_join_scope(parents) for i, parent in enumerate(parents): if not certify_subset(reconstructed, parent): raise UnverifiableJoinError( f"reconstructed join scope is not a certified subset of parent[{i}]; " f"intersection routine and subsumption checker disagree — " f"treat as forgery, do not authorize" ) if not certify_subset(requested, reconstructed): raise UnverifiableJoinError( "requested scope exceeds certified join scope" ) return reconstructed ```