# What structural signals indicate a delegated AAIF capability has been silently widened by scope-intersection collapse during re-delegation **Date of Record:** 2026 December 1 **Scope:** Applies to multi-hop Agent Identity and Authorization Framework (AAIF) delegation chains where an intermediate agent re-delegates a scoped credential to a downstream agent and the framework computes effective scope by intersecting parent and child scope sets. Does not apply to single-hop delegation, to capability tokens with monotonic restriction guarantees enforced by a trusted issuer-side verifier, or to revocation-only flows where no re-delegation occurs. ## Core Distinction The distinction that matters is between **scope narrowing that is enforced** and **scope narrowing that is merely declared**. In AAIF, a delegated credential carries a scope set `S_parent`. When the holder re-delegates, it submits a requested child scope `S_child`. The naive model assumes the framework computes `S_effective = S_parent ∩ S_child` and that this intersection is monotone non-increasing down the chain. That assumption is the failure surface. The intersection is only sound if both operands are drawn from the same scope algebra and the intersection operator is defined over a lattice with a well-defined partial order. In practice, scope tokens arrive from heterogeneous issuers: some are flat string sets, some are resource-path globs, some are action-verb wildcards (`read:*`, `tool:exec`), and some are structured tuples `(resource, action, constraint)`. When `S_parent` and `S_child` are expressed in *different* scope dialects, the framework's intersection does not narrow—it **collapses to the union of the two parsers' least-upper-bound interpretations**, or worse, to whichever set the parser treats as "more permissive wins." The structural signal is that the effective scope after re-delegation is neither a subset of `S_parent` nor of `S_child`, but a set that admits actions present in neither. This is not a revocation bug and not a signature-verification bug. The credential is validly signed, the chain of custody is intact, and every individual hop's declared scope looks correct in isolation. The widening is a *type error in the scope algebra that the framework silently coerces instead of rejecting*. ## What Was Observed A three-hop chain: orchestrator `O` → worker `W` → tool-runner `T`. `O` held a credential with scope expressed as structured tuples: ``` S_O = [("s3://bucket/reports", "read", "tenant=acme"), ("s3://bucket/reports", "write", "tenant=acme")] ``` `W` re-delegated to `T` requesting scope expressed in the flat-string dialect that `T`'s tool manifest advertised: ``` S_W_requested = ["s3:read", "s3:list"] ``` The framework's scope-merge routine saw a dialect mismatch, fell back to a "compatibility normalization" path, and mapped `s3:read` → `("s3://*", "read", "*")` and `s3:list` → `("s3://*", "list", "*")`. The intersection of `S_O` with the normalized `S_W_requested` was then computed against the *normalized* set, not the original. The result: ``` S_effective(T) = [("s3://*", "read", "*"), ("s3://*", "list", "*")] ``` `T` now held read access to **every bucket, every tenant**, and a `list` action that `O` never possessed at all. The declared child scope was narrower in string form (`s3:read` looks like a subset of `s3://bucket/reports` read), but the normalization widened the resource axis to `*` and dropped the `tenant=acme` constraint entirely. The intersection operator, applied to mismatched dialects, produced a set that was a strict superset of both inputs on the resource and constraint axes. The failure was invisible in every per-hop audit log: `O`'s log showed `S_O`, `W`'s log showed `S_W_requested`, and both looked compliant. Only the reconstructed effective scope at `T` revealed the widening—and only if the auditor re-ran the normalization with the *original* dialect of `S_O` rather than the normalized form. ## Condition of Validity The invariant that must hold for delegated scoping to be sound is: > For every hop `i` in the chain, `S_effective(i) ⊆ S_effective(i-1)` under a *single, fixed scope algebra* `A`, and the intersection `∩_A` must be a meet in the lattice `(Scope_A, ⊆_A)`. If any hop's scope is expressed in a dialect `A' ≠ A`, the framework MUST reject the delegation rather than coerce. The condition fails whenever the framework performs *lossy dialect normalization before intersection*. The coercion is the bug: it converts a type error (incomparable scopes) into a value (a permissive scope). Two structural preconditions must be checked: 1. **Dialect homogeneity:** the scope token grammar of `S_child` must be a declared member of the same algebra as `S_parent`. A flat-string `s3:read` is not a refinement of a tuple `("s3://bucket/reports","read","tenant=acme")`; it is a different type. Refinement requires an explicit `refines` relation, not a string-prefix heuristic. 2. **Constraint preservation:** any constraint axis present in `S_parent` (here `tenant=acme`) must be present in `S_effective` with equal or tighter binding. A normalization that drops a constraint axis is a widening, full stop—regardless of what the resource axis says. The boundary is sharp: the moment a re-delegation crosses a dialect boundary without a registered refinement mapping, the chain is unsound and the credential must be treated as *unscoped*, i.e., equivalent to the root issuer's full authority, until re-issued. ## Decision Boundary The operational decision is whether to **reject the hop** or **accept with explicit refinement**. The decision rule: - If `S_child` parses cleanly in the parent's algebra and `S_child ⊆_A S_parent`, accept. This is the normal narrowing case. - If `S_child` parses in a *different* algebra and a registered refinement map `R: A' → A` exists such that `R(S_child) ⊆_A S_parent`, accept *and record `R` in the delegation receipt* so the auditor can reconstruct without re-normalizing. - If no refinement map exists, or `R(S_child) ⊄_A S_parent`, **reject the hop**. Do not fall back to "compatibility normalization." Do not intersect across dialects. The absence of a refinement map is the signal that the two scopes are incomparable, and incomparable scopes must never be silently met. A secondary decision boundary governs revocation propagation. Because the widened `S_effective(T)` was never a subset of `S_O`, a revocation of `S_O` does not, under naive subset-based propagation, reach `T`—the revocation walk checks "is `T`'s scope ⊆ revoked scope?" and `T`'s widened scope fails that check, so `T` is *not* revoked. The revocation walk must instead propagate along the *delegation edge graph*, not the scope-subset relation, and must revoke any descendant whose scope was derived through a rejected-or-coerced hop. This is the second structural signal: **a descendant that survives a parent revocation is, by definition, a widening artifact.** ## Operational Effect The practical consequence is that AAIF chains must be audited by *replaying the scope algebra*, not by reading per-hop logs. The replay must use the original dialect at each hop, apply only registered refinement maps, and assert `S_effective(i) ⊆ S_effective(i-1)` at every edge. Any hop where the assertion fails—or where the assertion cannot be evaluated because the dialects are incomparable—is a widening candidate and must trigger revocation of the entire subtree below that hop, not just the hop itself. The guardrail is a **scope-algebra type check at delegation time**: the delegating agent must present, alongside `S_child`, the algebra identifier and (if different from parent) the refinement map. The framework refuses to sign a delegation receipt that lacks a comparable algebra. This converts the silent widening into a hard rejection at the boundary, which is the only place the invariant can be enforced—once the widened credential is issued, no downstream check can recover the original constraint axis, because the constraint was destroyed by normalization, not merely relaxed. ## Python ```python from dataclasses import dataclass from typing import FrozenSet, Tuple @dataclass(frozen=True) class ScopeTuple: resource: str action: str constraint: str # e.g. "tenant=acme"; "*" means unconstrained class ScopeWideningError(RuntimeError): pass ALGEBRA_TUPLE = "tuple-v1" ALGEBRA_FLAT = "flat-v1" def is_subset(child: FrozenSet[ScopeTuple], parent: FrozenSet[ScopeTuple]) -> bool: # child <= parent iff every child tuple is dominated by some parent tuple for c in child: if not any( (p.resource == c.resource or p.resource == "*") is False and p.resource == c.resource and p.action == c.action and p.constraint == c.constraint for p in parent ): return False return True def delegate( parent_scope: FrozenSet[ScopeTuple], parent_algebra: str, child_scope: FrozenSet[ScopeTuple], child_algebra: str, refinement_map_present: bool, ) -> FrozenSet[ScopeTuple]: if child_algebra != parent_algebra and not refinement_map_present: # Dialect mismatch without a registered refinement map. # Do NOT normalize. Reject the hop. raise ScopeWideningError( f"re-delegation crosses algebra boundary {parent_algebra!r} -> " f"{child_algebra!r} with no registered refinement map; " f"scope is incomparable and must not be intersected" ) if not is_subset(child_scope, parent_scope): raise ScopeWideningError( "declared child scope is not a subset of parent scope under a " "single algebra; effective scope would widen" ) return child_scope ``` The `raise ScopeWideningError` fires on exactly the boundary condition this record documents: a hop that crosses a scope-algebra boundary without a refinement map, or a hop whose declared child scope is not a subset of the parent under a single algebra. Catching it here—at delegation time—is the only point where the constraint axis still exists to be compared.