# In what scenarios must an instance refuse a delegated capability token whose attenuation chain is valid but whose scope-narrowing is non-monotonic across tool boundaries **Date of Record:** 2026 November 22 **Scope:** Applies to AAIF-style delegated capability systems where an orchestrator mints per-tool scoped tokens and sub-agents re-delegate subsets of their authority to downstream tool-callers. Does not apply to flat bearer-token models without attenuation, nor to single-instance agents that never re-delegate. ## Core Distinction The distinction that matters is between *token validity* and *authority monotonicity*. A delegated capability token can be cryptographically valid — correct signature chain, unexpired, issued by an authorized parent, correctly bound to a subject — while the *set of operations it authorizes* is strictly larger than the set authorized by its parent at some tool boundary. Validity is a property of the signature chain. Monotonicity is a property of the intersection of scope sets across the chain. AAIF verifiers that check only the former will admit tokens that violate the latter, and the violation is invisible at the point of verification because each individual link looks well-formed. The failure arises because scope narrowing is computed per-tool but the parent's authority over a tool may be *conditional* on a parameter the child does not inherit. When a sub-agent re-delegates `fs.write` to a tool-runner, it may narrow the path glob but drop the parent's `max_bytes` constraint — producing a child scope that is a subset in the path dimension and a superset in the size dimension. The token chain is valid. The authority is not attenuated. This is the non-monotonic narrowing boundary. ## What Was Observed An orchestrator agent held a root token with scope `{tool: "fs.write", paths: "/workspace/**", max_bytes: 65536, require_audit: true}`. It delegated to a retrieval sub-agent a token with scope `{tool: "fs.write", paths: "/workspace/cache/**", max_bytes: 65536, require_audit: true}` — a clean subset. The sub-agent, needing to hand off to a summarizer tool-runner, re-delegated with scope `{tool: "fs.write", paths: "/workspace/cache/**"}`. The summarizer's token constructor serialized only the fields it understood; `max_bytes` and `require_audit` were dropped because the summarizer's schema predated them. The resulting token passed signature verification, passed path-glob containment check, and was admitted. The summarizer then wrote a 4 MB cache file. The write succeeded because no `max_bytes` constraint was present in the effective scope. The audit log recorded the write under the summarizer's subject, not the orchestrator's, so the `require_audit: true` invariant held by accident at the logging layer but was not enforced at the authorization layer. The parent's constraint had been silently widened by a child that believed it was narrowing. A second observation compounded the first: the summarizer's schema negotiation with the orchestrator's token minter had succeeded because AAIF's capability-negotiation handshake treats unknown scope fields as *advisory* rather than *binding*. Fields not present in both schemas are dropped from the negotiated scope rather than causing negotiation failure. This is the mechanism by which non-monotonic narrowing becomes silent. ## Condition of Validity A delegated token is authority-monotonic if and only if, for every tool `t` in the intersection of parent and child tool sets, the child's scope on `t` is a subset of the parent's scope on `t` under the *full field set of the parent*, not the field set the child's schema understands. Formally: `scope_child(t) ⊑ scope_parent(t)` must be evaluated over `fields(scope_parent(t)) ∪ fields(scope_child(t))`, with absent fields in the child treated as *unconstrained* (i.e., the top element), not as *inherited*. This is the invariant most implementations get backwards. The natural reading — "the child didn't mention `max_bytes`, so it inherits the parent's" — is the unsafe reading. The safe reading is "the child didn't mention `max_bytes`, so it has no `max_bytes` constraint, which is a widening, which must be rejected." Absence is not inheritance. Absence is the top of the lattice. The condition of validity therefore requires the verifier to reconstruct the parent's full scope field set before comparing, and to reject any child token whose effective scope, evaluated with absent-as-top semantics, is not a subset. The signature chain check is necessary but not sufficient; it must be followed by a lattice-containment check over the union of field sets. ## Decision Boundary The decision boundary is sharp: an instance must refuse a delegated token when *either* (a) the child scope omits a field present in the parent scope, or (b) the child scope's value on a shared field is not a subset of the parent's value. Case (a) is the non-obvious one — it looks like a clean narrowing because the field the child *did* narrow is visibly narrower, and the dropped field is invisible. Case (b) is the obvious one and is usually caught. The boundary does *not* extend to fields the parent itself did not constrain. If the parent had no `max_bytes`, the child's omission of `max_bytes` is not a widening — both are top. The verifier must compare against the parent's actual field set, not a canonical schema's field set. A canonical-schema comparison would reject legitimate delegations from parents that never constrained a field, producing false refusals that erode trust in the guardrail and lead operators to disable it. There is a second boundary: the refusal must occur at *token admission*, not at *tool invocation*. If the verifier admits the token and relies on the tool-runner to enforce `max_bytes`, the tool-runner — which received a token without `max_bytes` — has nothing to enforce. The constraint must be materialized in the token or the token must be refused. Deferred enforcement is not enforcement. ## Operational Effect The operational effect of enforcing monotonic admission is that delegation chains become *closed under intersection*: every token in a chain authorizes a subset of its parent's authority, and the effective authority of any leaf is the intersection of all ancestors' scopes. This makes the chain auditable by inspection — a leaf's authority can be computed without replaying tool calls — and it makes revocation compositional: revoking a parent's scope narrows every descendant automatically because descendants were already bounded by it. The cost is that schema evolution becomes a breaking change at the delegation boundary. When a parent mints a token with a new field (`require_audit`), every child whose schema predates that field will now be refused rather than silently widened. This is the correct failure mode — it surfaces the schema skew at admission rather than at the first unauthorized write — but it means AAIF deployments must version their scope schemas and coordinate upgrades across the delegation graph. The alternative, silent widening, is cheaper to operate and strictly less safe. The guardrail to implement: at every admission point, reconstruct the parent's full scope field set, evaluate the child's effective scope with absent-as-top semantics, and refuse if containment fails. The refusal must name the offending field and the direction of the violation (omitted-vs-parent, or value-not-subset) so the operator can distinguish schema skew from an attempted privilege escalation. ```python from dataclasses import dataclass, field from typing import Any class NonMonotonicDelegationError(RuntimeError): """Raised when a delegated token's scope is not a subset of its parent's scope under absent-as-top semantics. The token may be cryptographically valid; the authority is not attenuated.""" pass @dataclass class Scope: tool: str fields: dict[str, Any] = field(default_factory=dict) def field_names(self) -> set[str]: return set(self.fields.keys()) def _is_subset_value(child_val: Any, parent_val: Any) -> bool: # Globs, ranges, and sets are represented as dicts with a 'kind' tag. if isinstance(parent_val, dict) and isinstance(child_val, dict): pk, ck = parent_val.get("kind"), child_val.get("kind") if pk == ck == "glob": # child glob must be contained in parent glob; conservative check return child_val["pattern"].startswith(parent_val["pattern"].rstrip("*")) if pk == ck == "range": return (child_val["lo"] >= parent_val["lo"] and child_val["hi"] <= parent_val["hi"]) if pk == ck == "set": return set(child_val["members"]).issubset(set(parent_val["members"])) return child_val == parent_val def verify_monotonic(parent: Scope, child: Scope) -> None: if parent.tool != child.tool: raise NonMonotonicDelegationError( f"tool mismatch: parent={parent.tool} child={child.tool}" ) parent_fields = parent.field_names() child_fields = child.field_names() # Case (a): child omits a field the parent constrained. # Absent-as-top means the child is WIDER, not inheriting. omitted = parent_fields - child_fields if omitted: raise NonMonotonicDelegationError( f"non-monotonic widening: child omits parent-constrained " f"field(s) {sorted(omitted)}; absent is top, not inherited" ) # Case (b): shared field where child value is not a subset. for name in parent_fields & child_fields: if not _is_subset_value(child.fields[name], parent.fields[name]): raise NonMonotonicDelegationError( f"non-monotonic widening on field {name!r}: " f"child={child.fields[name]!r} not subset of " f"parent={parent.fields[name]!r}" ) def admit_delegated_token(parent: Scope, child: Scope) -> bool: verify_monotonic(parent, child) return True # Reproduction of the observed failure: summarizer drops max_bytes and # require_audit because its schema predates them. if __name__ == "__main__": orchestrator = Scope( tool="fs.write", fields={ "paths": {"kind": "glob", "pattern": "/workspace/**"}, "max_bytes": {"kind": "range", "lo": 0, "hi": 65536}, "require_audit": True, }, ) summarizer = Scope( tool="fs.write", fields={"paths": {"kind": "glob", "pattern": "/workspace/cache/**"}}, ) try: admit_delegated_token(orchestrator, summarizer) except NonMonotonicDelegationError as e: print(f"REFUSED at admission: {e}") ```