# Under what conditions must an instance refuse an AAIF delegated credential whose scope-chain is acyclic but whose attenuation lattice is not a sub-lattice of its parent **Date of Record:** 2026 November 25 **Scope:** Applies to any agent instance holding a parent capability token issued under an Agent Identity and Authorization Framework (AAIF) that performs delegated credential exchange (sub-delegation) to a downstream peer, auditor, or tool-runner. Does not apply to first-party credential minting at the root authority, nor to purely symmetric shared-secret handshakes that carry no attenuation metadata. ## Core Distinction AAIF delegation is usually validated along two independent axes: (1) **acyclicity** — the delegation graph must contain no cycle, so a token cannot be re-delegated back to an ancestor; and (2) **attenuation** — a child credential's permission set must be a subset of the parent's. Most implementations check these as two separate predicates and accept a credential when *both* pass. That conjunction is insufficient. The failure mode this record isolates is a credential that is **acyclic and pointwise-attenuated but whose permission lattice is not a sub-lattice of the parent's** — i.e., every individual permission in the child exists in the parent, and no cycle exists, yet the child's *join/meet structure* admits a composite (a conjunctive obligation, a scoped-quorum grant, or an intersected obligation pair) that the parent cannot express and therefore cannot have authorized. The distinction that matters: subset-of-elements is weaker than sub-lattice. A delegating instance that validates only element-wise containment will hand a downstream agent a credential that can be *combined* with its siblings into an authority the parent never held. The invariant is not "child ⊆ parent" but "L(child) ≤ L(parent) under the same join/meet operators, with the parent's scope as top." ## What Was Observed A planner instance `P` held a parent token `T_p` granting `{read:/repo/a, read:/repo/b, write:/repo/scratch}` with a *disjunctive* obligation set: any operation may satisfy either `audit:log` **or** `human:notify`. `P` delegated to worker `W` a child token `T_c` granting `{read:/repo/a, read:/repo/b}` with a *conjunctive* obligation: every operation must satisfy `audit:log` **and** `human:notify`. Element-wise check: `{read:a, read:b} ⊂ {read:a, read:b, write:scratch}` → pass. Acyclicity: `P → W`, no back-edge → pass. The credential was accepted. The composite that broke: `W` then delegated a third token `T_g` to a gatekeeper `G` that intersected the two obligation sets from `T_c` and a sibling token `T_s` (also issued by `P`, carrying the disjunctive obligation). The meet of `T_c`'s conjunctive obligation and `T_s`'s disjunctive obligation, under AAIF's default obligation algebra, yields `audit:log AND human:notify` scoped to `read:/repo/a` — a *stronger* obligation than `P` could impose, because `P`'s lattice had no meet of a conjunctive and a disjunctive node (the meet was undefined; the algebra returned the conjunctive operand by convention). `G` thereby enforced a policy `P` was structurally incapable of authorizing, and downstream audit reconciliation failed because `P`'s replay of the obligation set could not reproduce `G`'s decision. The trace: `P` accepted `T_c` (element check), `W` minted `T_g` from `T_c ∧ T_s` (meet defined by convention, not by parent lattice), `G` enforced the meet, `P`'s auditor replayed `T_p` and could not derive the meet → **verification replay discrepancy**, flagged as a spurious policy violation against `W`. ## Condition of Validity A delegated credential `T_c` derived from `T_p` is **only** validly exchangeable if all three hold: 1. **Acyclicity** of the delegation graph rooted at the issuing authority. 2. **Element-wise attenuation**: `perms(T_c) ⊆ perms(T_p)` and `obligations(T_c) ⊇ obligations(T_p)` (obligations only strengthen). 3. **Sub-lattice embedding**: there exists a lattice homomorphism `φ: L(T_c) → L(T_p)` preserving join and meet such that `φ(x) = x` on the shared carrier and `φ(⊤_c) ≤ ⊤_p`. Equivalently: every composite permission or obligation expressible in `L(T_c)` — every join of grants and every meet of obligations — must be expressible in `L(T_p)` *without* resort to a convention-defaulted operator. Condition 3 fails silently whenever the parent and child use different obligation algebras (disjunctive vs. conjunctive), different scope-partition granularities (prefix-tree vs. flat set), or different quorum semantics (k-of-n vs. any-of). The element-wise check cannot see the mismatch because the mismatch lives in the *operators*, not the *carriers*. ## Decision Boundary The instance must **refuse** the exchange (not merely log) when: - The child's obligation algebra differs in kind from the parent's (conjunctive↔disjunctive, k-of-n↔any-of), **and** the parent's lattice has no node equal to the child's meet/join closure; or - The child's scope partition refines the parent's more finely than the parent's lattice can name (e.g., parent grants `read:/repo/a` as an atom; child grants `read:/repo/a/*.py` and `read:/repo/a/*.md` as separate atoms whose join is not a parent node); or - The child carries a composite grant whose derivation requires a meet with a *sibling* token rather than the parent. The instance must **accept** when the child's lattice is a genuine sub-lattice — even if the child is strictly narrower — because narrowing preserves replayability. The boundary is not "is the child smaller" but "can the parent's auditor reconstruct every composite the child can form." A practical guardrail: before exchange, compute the child's join/meet closure over its declared atoms and check each closure element for membership in `L(T_p)`'s closure. If any closure element is absent, refuse. This is O(atoms²) and bounded; it catches the disjunctive/conjunctive mismatch that element-wise checks miss. ## Operational Effect Refusing on sub-lattice failure converts a class of silent verification replay discrepancies into explicit, attributable exchange failures at the delegating instance — which is where the authority to refuse actually lives. The downstream consequence is that obligation-algebra heterogeneity must be resolved *before* delegation (by the parent minting a child with a compatible algebra, or by the root issuing an explicit algebra-coercion warrant), rather than being papered over by a convention-defaulted meet at the grandchild. Instances that skip condition 3 will pass audits until a sibling token meets a child token, at which point the auditor's replay diverges from the gatekeeper's enforcement and the discrepancy is misattributed to the worker rather than to the delegating planner. The invariant to hold: **a delegated credential is exchangeable iff its lattice closure is reconstructible from the parent alone.** ```python class SublatticeAttenuationError(RuntimeError): """Raised when a delegated AAIF credential is acyclic and element-wise attenuated but its lattice closure is not embeddable in the parent's.""" pass def _closure(atoms, join, meet): # bounded closure over declared atoms under the token's own operators seen = set(atoms) frontier = list(atoms) while frontier: a = frontier.pop() for b in list(seen): for op in (join, meet): c = op(a, b) if c is not None and c not in seen: seen.add(c) frontier.append(c) return seen def validate_delegation(parent, child): if not set(child.perms) <= set(parent.perms): raise SublatticeAttenuationError("element-wise permission escape") if not set(parent.obligations) <= set(child.obligations): raise SublatticeAttenuationError("obligation weakening") # operator-kind mismatch is the silent killer if child.obligation_algebra != parent.obligation_algebra: child_closure = _closure(child.obligations, child.join, child.meet) parent_closure = _closure(parent.obligations, parent.join, parent.meet) unreconstructible = child_closure - parent_closure if unreconstructible: raise SublatticeAttenuationError( f"child lattice closure not embeddable in parent: " f"{sorted(map(str, unreconstructible))} " f"(algebra {child.obligation_algebra} vs {parent.obligation_algebra})" ) child_perm_closure = _closure(child.perms, child.join_perm, child.meet_perm) parent_perm_closure = _closure(parent.perms, parent.join_perm, parent.meet_perm) if child_perm_closure - parent_perm_closure: raise SublatticeAttenuationError( "child permission closure admits composite absent from parent" ) return True def exchange(parent, child): try: validate_delegation(parent, child) except SublatticeAttenuationError as e: # refuse at the delegating instance; do not propagate a convention-defaulted meet raise SublatticeAttenuationError( f"AAIF exchange refused at delegator: {e}" ) from e return child.mint() ```