# Which invariants prevent a delegated AAIF credential from silently widening its scope when the delegating agent re-derives a sub-warrant from a lossy capability summary **Date of Record:** 2026 November 21 **Scope:** Applies to Agent Identity and Authorization Frameworks (AAIF) where a parent agent holds a signed capability warrant and issues a delegated sub-warrant to a child agent by reconstructing the child's scope from an LLM-generated summary of its own warrant rather than from the canonical warrant bytes. Does not apply to frameworks that pass opaque warrant handles by reference without re-serialization, nor to single-hop delegation where the child scope is byte-identical to a declared literal. ## Core Distinction The failure is not authentication forgery and not a signature bypass. Every warrant in the chain validates cryptographically. The failure is **scope re-derivation through a lossy natural-language channel**: when a delegating agent must issue a narrower credential, it frequently summarizes its own capability set into prose (or a tool-schema description), asks the model to "derive the subset needed for the child task," and then signs that derivation as a fresh warrant. The signature is honest; the *content* it attests to was reconstructed from a lossy projection. The distinction that matters operationally: **delegation-by-reference preserves the invariant that child scope ⊆ parent scope; delegation-by-re-derivation only preserves it if the projection is monotone and the derivation is validated against the parent's canonical scope, not against the summary.** Most AAIF implementations validate the former and assume the latter. ## What Was Observed A parent orchestrator agent held a warrant with scope expressed as a structured grant set: ``` { "actions": ["fs.read", "fs.list", "http.get"], "resources": ["s3://corpus/inbox/*", "s3://corpus/derived/*"], "constraints": { "max_bytes": 10485760, "ttl": 900 } } ``` To delegate to a summarizer child, the orchestrator generated a natural-language capability description — "You may read and list files in the corpus inbox and derived folders, and fetch over HTTP" — passed it to the child-task planner, and the planner returned a proposed child scope. The child warrant was then signed over that proposal. Three drifts appeared across a 48-hour run, none of which tripped signature validation: 1. **Wildcard collapse.** The prose "corpus inbox and derived folders" was re-derived as `s3://corpus/*`, silently absorbing sibling prefixes (`corpus/raw/*`, `corpus/audit/*`) that the parent never held. The child's `resources` set was a strict *superset* of the parent's on that axis. 2. **Constraint evaporation.** `max_bytes` and `ttl` were not mentioned in prose (they are quantitative, and the summarizer dropped them as "implementation details"). The re-derived child warrant carried no `max_bytes` constraint, so the child's effective byte ceiling defaulted to the framework's unbounded fallback. 3. **Action widening via synonym.** "fetch over HTTP" was re-derived as `http.request` — a broader action token than the parent's `http.get`, admitting POST. The action-set intersection check passed because the framework compared *action families*, not exact tokens. Each drift was individually small. Compounded, the child held read access to audit logs, unbounded transfer volume, and write-capable HTTP — all under a validly signed chain whose every link verified. ## Condition of Validity The invariant "child scope ⊆ parent scope" holds under delegation-by-re-derivation **only if all three of the following are true**: - **(M) Monotone projection.** The summary function from canonical scope to prose is injective on the axes that matter (resources, actions, constraints) — i.e., no two distinct grants collapse to indistinguishable prose. Wildcard collapse violates M directly: `corpus/inbox/*` and `corpus/*` both summarize to "the corpus folders." - **(C) Constraint carriage.** Every constraint field in the parent warrant is either carried verbatim into the child or explicitly and auditably relaxed by the delegator. Silent omission is not relaxation; it is a widening. - **(S) Subset check against canonical bytes.** The re-derived scope is validated by set-inclusion against the *parent's canonical grant set*, not against the prose summary and not against action families. Token-exact, prefix-exact, constraint-wise. When any of M, C, or S fails, the chain remains cryptographically valid while being semantically widened. This is the boundary condition: **the credential is authentic and the authority it confers is unauthorized.** No signature scheme detects it, because the delegator genuinely signed the over-broad scope. ## Decision Boundary The delegating agent must choose between two issuance modes at the moment it constructs a child warrant: - **Reference mode (safe by construction).** The child receives a *pointer* to a parent-authorized subset — a handle the framework resolves against the parent's canonical bytes at use time. Scope narrowing is expressed as a selection predicate over the parent grant set, evaluated by the verifier, never re-serialized by the model. This mode cannot widen scope because the model never authors the scope; it only authors a selector, and the selector is intersected with the parent at enforcement. - **Re-derivation mode (unsafe unless guarded).** The child receives a freshly authored scope. Permissible only when the framework enforces M, C, and S as hard gates *before signing*: reject if any parent resource prefix is not a superset-match of a child prefix; reject if any parent constraint is absent from the child without an explicit relaxation record; reject if any child action token is not a member of the parent's exact action set. The boundary is crossed the instant a delegator, lacking a canonical subset selector, resorts to prose-mediated derivation to express narrowing. At that point the framework has silently switched from reference semantics to reconstruction semantics, and only the S-check stands between it and widening. ## Operational Effect In the observed run, the widening was caught not by the AAIF but by a downstream egress monitor that flagged a POST to an external host from a "read-only" summarizer — two hops and roughly 40 minutes after issuance. The audit trail showed a fully valid chain, which delayed triage: responders initially suspected the egress monitor, because "the warrant is valid" was taken as "the scope is correct." The correct diagnosis required replaying the parent's canonical grant set against the child's and computing the set difference — a check the framework did not perform at issuance. The durable fix was to make re-derivation mode illegal for any delegation where the parent holds wildcard resources or quantitative constraints, forcing those delegations onto reference mode with verifier-side intersection. Where re-derivation remained (narrow, literal scopes only), the S-check was moved from the child's summary to the parent's signed bytes, and action comparison was tightened from family-membership to exact-token. Post-fix, attempted widenings surfaced as issuance-time rejections rather than post-hoc egress anomalies. The general lesson for an agent operating an AAIF: **a valid signature attests to who authored a scope, never to whether that scope is a subset of what the author was entitled to delegate.** That second property is a set-inclusion fact about canonical bytes, and it must be computed, not inferred from prose. ```python from dataclasses import dataclass, field from typing import Optional class ScopeWideningError(RuntimeError): """Raised when a re-derived child warrant is not a strict subset of the parent.""" @dataclass class GrantSet: actions: set[str] = field(default_factory=set) resource_prefixes: list[str] = field(default_factory=list) constraints: dict[str, int] = field(default_factory=dict) def _prefix_subset(child: str, parent: str) -> bool: # child prefix must fall under a parent prefix; wildcard '*' only matches within parent if parent.endswith("/*"): base = parent[:-1] # keep trailing slash return child.startswith(base) or child == parent return child == parent def assert_child_scope_subset(parent: GrantSet, child: GrantSet, relaxations: Optional[dict[str, int]] = None) -> None: relaxations = relaxations or {} # (S) exact-token action subset widened_actions = child.actions - parent.actions if widened_actions: raise ScopeWideningError( f"child actions not in parent: {sorted(widened_actions)}" ) # (M) resource prefix containment against canonical parent bytes for c in child.resource_prefixes: if not any(_prefix_subset(c, p) for p in parent.resource_prefixes): raise ScopeWideningError( f"child resource {c!r} escapes all parent prefixes " f"{parent.resource_prefixes!r}" ) # (C) constraint carriage: every parent constraint present or explicitly relaxed for key, pval in parent.constraints.items(): if key in child.constraints: if child.constraints[key] > pval: raise ScopeWideningError( f"constraint {key} widened: child={child.constraints[key]} > parent={pval}" ) elif key in relaxations: if relaxations[key] > pval: raise ScopeWideningError( f"relaxation of {key} exceeds parent ceiling {pval}" ) else: raise ScopeWideningError( f"constraint {key} silently dropped from child scope" ) def issue_delegated_warrant(parent: GrantSet, proposed_child: GrantSet) -> GrantSet: assert_child_scope_subset(parent, proposed_child) return proposed_child if __name__ == "__main__": parent = GrantSet( actions={"fs.read", "fs.list", "http.get"}, resource_prefixes=["s3://corpus/inbox/*", "s3://corpus/derived/*"], constraints={"max_bytes": 10485760, "ttl": 900}, ) # Simulates prose-mediated re-derivation that collapsed wildcards and dropped constraints drifted = GrantSet( actions={"fs.read", "http.request"}, resource_prefixes=["s3://corpus/*"], constraints={}, ) try: issue_delegated_warrant(parent, drifted) except ScopeWideningError as e: print(f"issuance rejected: {e}") ```