# Where must an instance halt when a delegated AAIF warrant's attenuation chain is valid but its scope lattice is non-monotonic **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that executes under a delegated Agent Authorization & Identity Framework (AAIF) warrant, where the warrant carries an attenuation chain (parent warrant → child warrant) and a scope lattice describing permitted capabilities. Does not apply to root warrants issued directly to a principal, nor to single-hop bearer tokens without delegation metadata. ## Core Distinction The distinction that matters is between **attenuation validity** and **scope monotonicity**. Attenuation validity asks: is every child warrant cryptographically signed by the holder of its parent, and does the chain terminate at a trusted root? Scope monotonicity asks a different question: is the *effective capability set* of each child a subset of its parent's effective set under the lattice's join/meet semantics? These are checked by different mechanisms and they can disagree. A signature-valid chain can still be non-monotonic, because attenuation is verified over the *serialized scope expression*, while effective capability is computed by *evaluating that expression against the current lattice*. If the lattice is dynamic—if capabilities can be re-parented, deprecated, or gain implied edges after a child warrant was minted—then a child that was a strict subset at issuance time can evaluate to a set that is not a subset at execution time. The warrant is authentic. The delegation is real. The scope has silently widened. Most AAIF verifiers check attenuation validity and stop. The boundary failure is that they treat "chain verifies" as equivalent to "scope is bounded," and the instance proceeds to exercise a capability its parent never granted. ## What Was Observed An orchestrator instance `O` held a root warrant `W0` with scope `{fs:read:/data/**, net:egress:internal}`. It delegated to a worker `W` a child warrant `W1` with scope `{fs:read:/data/reports/**, net:egress:internal}`. The attenuation chain `W0 → W1` verified: `W1` was signed by `O`'s key, the parent hash matched, the expiry was within bounds. `W1` was a strict subset of `W0` at mint time—`/data/reports/**` is under `/data/**`. Between mint and execution, the lattice was updated: `net:egress:internal` was re-parented under a new node `net:egress:restricted`, and a lattice rule was introduced asserting that any scope containing a `net:egress:*` grant *implies* `net:egress:internal` via an inheritance edge from the restricted node. This was intended to backfill a missing edge for a different tenant. The side effect: `W1`'s effective scope, evaluated at execution time, now included `net:egress:internal` not as an inherited subset of `W0` but as an *implied grant* from the lattice rule—and critically, the lattice rule also implied `net:egress:internal` for any scope containing `fs:read:/data/reports/**`, because the reports path was tagged with a data-classification attribute that the lattice mapped to egress permission. The worker `W` executed an egress call to `internal` that its parent `W0` had granted but that `W1`'s *serialized* scope did not contain. The verifier passed it, because the verifier evaluated `W1`'s effective scope against the *current* lattice and found `net:egress:internal` present. No check compared `W1`'s effective scope against `W0`'s effective scope *under the same lattice snapshot*. The subset relation held at mint time and failed at execution time, and nothing re-verified it. The trace: `W` requested `net:egress:internal` → verifier loaded `W1` → verifier evaluated `W1.scope` against lattice `L_t` → lattice returned `{fs:read:/data/reports/**, net:egress:internal}` → verifier checked `W1` signature against `W0` → valid → **allowed**. The parent's effective scope under `L_t` was `{fs:read:/data/**, net:egress:internal}`. The child's effective scope under `L_t` was `{fs:read:/data/reports/**, net:egress:internal}`. The child *was* a subset of the parent under `L_t`—but only because the lattice had independently granted the parent the same capability. The delegation did not widen the parent; the lattice widened both. The failure is that the verifier never distinguished "child ⊆ parent because delegation was correct" from "child ⊆ parent because the lattice granted both the same new edge." The first is a sound delegation. The second is a coincidence that masks a delegation that would have been unsound under a different lattice snapshot. The dangerous case is the inverse: a lattice update that *narrows* a parent's effective scope while leaving a child's effective scope unchanged, so the child is no longer a subset of the parent. The verifier, checking only signature validity, admits the child. The child then exercises a capability the parent no longer holds—a privilege escalation by lattice drift, not by forgery. ## Condition of Validity The invariant that must hold for a delegated warrant to be safely executable is: > For every edge `(P, C)` in the attenuation chain, `effective(C, L_t) ⊆ effective(P, L_t)` must hold **under the same lattice snapshot `L_t` used to authorize the request**, and the chain must be re-evaluated at every authorization decision, not only at issuance. This is stronger than signature validity and stronger than subset-at-mint. It requires the verifier to (a) pin a lattice snapshot identifier to the authorization decision, (b) compute effective scopes for both parent and child under that snapshot, and (c) reject if the subset relation fails—even when the signature chain is intact. The condition fails whenever the lattice is mutable and the verifier evaluates parent and child under different snapshots, or evaluates only the child. It also fails when the lattice's implication rules are non-monotonic: an implication edge that grants a capability to a scope that did not explicitly contain it can make a child's effective scope exceed its parent's effective scope even when the serialized scopes are unchanged. ## Decision Boundary The boundary is this: **an instance must halt and refuse execution when the attenuation chain verifies but the effective-scope subset relation cannot be established under a single pinned lattice snapshot.** It must not proceed on the basis of signature validity alone, and it must not proceed by evaluating the child's scope in isolation. Concretely, the halt condition triggers when any of the following holds: 1. The lattice snapshot used to evaluate the child differs from the snapshot used to evaluate the parent (or the parent's snapshot is unavailable). 2. The child's effective scope contains a capability not present in the parent's effective scope under the pinned snapshot—regardless of whether the serialized child scope is a textual subset of the serialized parent scope. 3. The lattice contains an implication rule whose application to the child's scope is not also applied to the parent's scope (asymmetric implication). The instance must *not* halt merely because the serialized scopes differ; serialized difference is expected under attenuation. The halt is specifically about effective-scope non-subset under a pinned snapshot. Conversely, the instance must *not* proceed merely because the serialized child scope is a textual subset—textual subset is necessary but not sufficient, because lattice implication can add capabilities the text does not show. ## Operational Effect The operational effect is that every authorization decision under AAIF delegation becomes a two-snapshot-or-one-snapshot problem: the verifier must either pin a single lattice snapshot for the entire chain evaluation, or refuse. This adds a lattice-version read to the hot path of every delegated call, and it requires the warrant to carry a `lattice_snapshot` field (or the verifier to resolve one and record it in the audit trail). Warrants minted before this field existed must be treated as unpinned and rejected for delegated execution, or re-minted. The secondary effect is on caching. A verifier that caches "chain valid" results must key the cache on the lattice snapshot, not on the warrant ID alone. A cache hit from a prior snapshot is a stale authorization and must be invalidated on any lattice mutation that touches a node reachable from either the parent or child scope. Without this, the drift is invisible: the cache says valid, the signature says valid, and the effective scope has moved underneath both. The third effect is auditability. When the halt fires, the instance must emit the pinned snapshot ID, the parent effective scope, the child effective scope, and the specific capability in the difference set. That record is what lets an operator distinguish a lattice bug (asymmetric implication) from a delegation bug (child minted wider than intended) from a snapshot-pinning bug (parent and child evaluated under different lattices). Without the difference set, all three look like the same rejection. ```python from dataclasses import dataclass from typing import FrozenSet class DelegationScopeViolation(RuntimeError): """Raised when an AAIF attenuation chain verifies but effective scope is not monotonic.""" @dataclass(frozen=True) class Warrant: warrant_id: str parent_id: str | None serialized_scope: FrozenSet[str] lattice_snapshot: str | None def effective_scope(warrant: Warrant, lattice: dict[str, FrozenSet[str]], snapshot: str) -> FrozenSet[str]: if warrant.lattice_snapshot is not None and warrant.lattice_snapshot != snapshot: raise DelegationScopeViolation( f"warrant {warrant.warrant_id} pinned to snapshot {warrant.lattice_snapshot}, " f"evaluated under {snapshot}" ) scope = set(warrant.serialized_scope) for cap in warrant.serialized_scope: scope |= lattice.get(cap, frozenset()) return frozenset(scope) def authorize_delegated_call( child: Warrant, parent: Warrant, requested: str, lattice: dict[str, FrozenSet[str]], snapshot: str, ) -> None: if child.parent_id != parent.warrant_id: raise DelegationScopeViolation( f"warrant {child.warrant_id} does not name {parent.warrant_id} as parent" ) parent_eff = effective_scope(parent, lattice, snapshot) child_eff = effective_scope(child, lattice, snapshot) if requested not in child_eff: raise DelegationScopeViolation( f"requested capability {requested} not in child effective scope" ) difference = child_eff - parent_eff if difference: raise DelegationScopeViolation( f"non-monotonic delegation under snapshot {snapshot}: " f"child {child.warrant_id} effective scope exceeds parent {parent.warrant_id} " f"by {sorted(difference)}" ) ```