# Under what conditions must an instance refuse to mint a delegated warrant when a tool-scoped consent grant's attenuation chain is only partially order-preserving across issuer hops **Date of Record:** 2026 November 22 **Scope:** Applies to AAIF delegation chains where an orchestrator instance mints a child warrant by attenuating a parent consent grant scoped to a specific tool (e.g., `fs.write`, `http.post`). Does not apply to root-issued warrants, nor to chains where every hop shares a single issuer's scope algebra. ## Core Distinction The failure here is not "permission too broad" and not "signature invalid." It is a **set-inclusion violation that survives signature verification**: each hop's warrant is cryptographically valid and each individual attenuation looks like a subset of its parent, yet the *composed* chain is not a subset of the root grant because the scope algebra is not a total order across issuers. A consent grant scopes a capability to a tool with a set of constraints, e.g. `fs.write{path∈/data/tenant-A, max_bytes≤10MB}`. Attenuation is supposed to be monotone: child ⊆ parent. That holds trivially when one issuer defines one lattice. It breaks when hop 2 attenuates on `max_bytes` and hop 3 attenuates on `path`, and the two constraints are **non-commensurable** — there is no issuer who can decide whether `{path∈/data/tenant-A, max_bytes≤50MB}` is "smaller" than `{path∈/data/tenant-B, max_bytes≤10MB}`. Neither is a subset of the other; they overlap. An orchestrator that mints the fourth warrant has silently produced a grant whose effective authority is the *union* of two incomparable scopes, which is strictly larger than either parent along one axis. ## What Was Observed A three-hop chain: root consent grant → planner agent → executor agent → sub-tool worker. The planner attenuated `max_bytes` from 10MB to 8MB (kept path). The executor, holding a *differently-parameterized* view of the same logical tool, attenuated `path` from `/data/tenant-A` to `/data/tenant-A/reports` but reset `max_bytes` to the tool's default of 50MB because its local tool schema did not carry the constraint field forward — the field was absent, and "absent" was interpreted by the minting code as "unconstrained," not "inherit parent." The minted grandchild warrant verified cleanly at the worker: signature chain intact, each hop's declared scope a plausible subset of the *previous hop's declared scope as that hop recorded it*. The break was that hop 2's recorded scope had dropped a field, so hop 3's subset check compared against a scope that was already wider than the root along the `max_bytes` axis. The worker executed a 47MB write to `/data/tenant-A/reports` — inside the path constraint, outside the root's 10MB consent. The signature was valid. The chain was valid. The authority was not. ## Condition of Validity A delegated warrant is only sound if, for the composed chain `W₀ → W₁ → … → Wₙ`, every constraint axis present in any ancestor is **explicitly carried** into every descendant, and the descendant's value on that axis is a subset of the ancestor's value on that axis. Two conditions must both hold: 1. **Field closure (no drop-to-default):** a missing constraint field must be treated as *inherited unchanged*, never as *unconstrained*. Absence is not permission. 2. **Axis comparability:** for each axis, the issuer of the child must be able to *decide* subset relation against the nearest ancestor that constrained that axis. If the child's issuer cannot evaluate the parent's constraint predicate (different tenant namespace, different unit, different path canonicalization), the attenuation is **undecidable**, and undecidable must be treated as *refuse*, not *pass*. When either condition fails, the minting instance must not produce the warrant. The invariant is: `effective(Wₙ) ⊆ effective(W₀)`, checked on the *composed* scope, not hop-by-hop against the immediate parent's possibly-degraded record. ## Decision Boundary The boundary is between "attenuation I can verify" and "attenuation I cannot verify." Concretely: - If the child issuer's scope algebra is a **sub-lattice** of the root's (same field names, same units, total order per axis), hop-local subset checking is sufficient and cheap. - If the child introduces a **new axis** not present in the parent, that axis must default to the *most restrictive* value, not the tool default. - If the child's constraint on an existing axis is **incomparable** to the parent's (overlapping but neither subset), the mint must fail — you cannot narrow a scope by rotating it. - If the child **cannot evaluate** the parent's predicate (namespace mismatch, canonicalization divergence), the mint must fail closed. The subtle case: a child that *drops* a field and whose local schema genuinely has no slot for it. The tempting behavior is to mint and let the worker's tool-layer enforce. That is the bug in the observed trace — the worker enforced its *own* default, not the root's consent. The warrant must carry the constraint even if the intermediate tool cannot act on it, precisely so the terminal enforcer sees it. ## Operational Effect Enforcing these conditions converts a class of silent privilege-widening into a loud mint failure. The planner above would have been rejected at hop 2 with an "undecidable axis / dropped constraint" error, forcing the executor to either carry `max_bytes` forward explicitly or obtain a fresh root grant for the wider scope. The cost is more mint rejections and explicit re-consent flows; the benefit is that warrant verification actually bounds authority rather than merely proving provenance. The durable lesson: **signature validity proves who attenuated, not what was preserved.** A chain is only as tight as its widest hop, and a hop that forgets a field is wider than its parent. Treat constraint-field absence as a hard error at mint time, and treat cross-issuer incomparability as undecidable-and-therefore-refused. ```python from dataclasses import dataclass, field from typing import Optional class UndecidableAttenuation(RuntimeError): """Raised when a child warrant cannot be proven a subset of its parent.""" pass class DroppedConstraint(UndecidableAttenuation): """Raised when a constraint axis present in an ancestor is absent in the child.""" pass @dataclass class Scope: # None means "axis not mentioned at this hop" — NOT "unconstrained". path_prefix: Optional[str] = None max_bytes: Optional[int] = None @dataclass class Warrant: issuer: str scope: Scope parent: Optional["Warrant"] = None def _subset(axis: str, child_val, parent_val): if parent_val is None: return True # parent did not constrain this axis if child_val is None: raise DroppedConstraint( f"axis '{axis}' constrained by ancestor to {parent_val!r} " f"but dropped in child; absence is not permission" ) if axis == "max_bytes": if child_val > parent_val: raise UndecidableAttenuation( f"max_bytes {child_val} exceeds ancestor bound {parent_val}" ) elif axis == "path_prefix": if not (child_val == parent_val or child_val.startswith(parent_val.rstrip('/') + '/')): raise UndecidableAttenuation( f"path_prefix {child_val!r} not within ancestor {parent_val!r}; " f"cannot decide subset across incomparable namespaces" ) return True def mint_child(parent: Warrant, issuer: str, child_scope: Scope) -> Warrant: # Walk the entire ancestor chain, not just the immediate parent: # an intermediate hop may itself have a degraded record. anc = parent while anc is not None: _subset("path_prefix", child_scope.path_prefix, anc.scope.path_prefix) _subset("max_bytes", child_scope.max_bytes, anc.scope.max_bytes) anc = anc.parent return Warrant(issuer=issuer, scope=child_scope, parent=parent) # Trace of the observed failure: executor drops max_bytes, resets to tool default. root = Warrant(issuer="root", scope=Scope(path_prefix="/data/tenant-A", max_bytes=10_000_000)) planner = mint_child(root, "planner", Scope(path_prefix="/data/tenant-A", max_bytes=8_000_000)) # Executor's schema lacked the field; naive code passed None -> would widen to 50MB. try: mint_child(planner, "executor", Scope(path_prefix="/data/tenant-A/reports", max_bytes=50_000_000)) except UndecidableAttenuation as e: print(f"mint refused: {e}") ```