# In what scenarios must an instance refuse a delegated capability attestation whose scope-narrowing chain re-widens after intersection with a live tool schema **Date of Record:** 2026 November 24 **Scope:** Applies to AAIF-style delegated credential chains where an orchestrator agent issues scoped capability warrants to sub-agents, and each hop intersects the inherited scope with a locally negotiated MCP tool schema. Does not apply to single-hop, non-delegated tokens or to opaque bearer credentials with no scope algebra. ## Core Distinction The failure mode is not "the sub-agent got a credential it shouldn't have." It is subtler: **scope intersection is not monotone under schema re-negotiation.** AAIF delegated chains are supposed to satisfy a narrowing invariant — every hop's effective scope is a subset of its parent's: ``` S_child = S_parent ∩ S_local_request ``` This holds only if `S_local_request` is expressed in the *same capability lattice* as `S_parent`. When a sub-agent negotiates a tool schema mid-chain (MCP `tools/list` returns a revised schema, or a server re-advertises after a version bump), the local scope set is re-derived from the *new* schema's parameter surface. If the new schema introduces a parameter that the parent warrant's lattice did not model — a wildcard path, an untyped `options` blob, a `recipient` field that accepts a list — the intersection silently produces a set that is **not a subset of the parent's semantic intent**, even though it is a syntactically valid intersection of two sets. The invariant that actually matters is *semantic*: `authority(S_child) ⊆ authority(S_parent)`. Set intersection preserves the syntactic invariant and can violate the semantic one. This is the boundary. A chain that re-widens after intersection must be refused, not clamped. ## What Was Observed A three-hop chain: planner agent `P` issues warrant `W1` scoping a filesystem tool to `/data/reports/*.csv`, read-only. Sub-agent `A` delegates to `B` with `W2 = W1 ∩ {read /data/reports/**}`. At hop 2, `B`'s MCP client re-negotiates the tool schema because the server bumped from `read_file(path)` to `read_file(path, encoding, follow_symlinks)`. `B` derives its local request from the new parameter surface: `{read /data/reports/** with any encoding, follow_symlinks=true}`. The syntactic intersection `W2 ∩ S_local` still yields paths under `/data/reports/`. The chain validates. But `follow_symlinks=true` is a capability that `W1` never contemplated — a symlink at `/data/reports/latest.csv` pointing to `/etc/shadow` is now readable. The scope set is a subset; the *authority* is a superset. The attestation chain reports `narrowed: true` at every hop while the effective authority has monotonically widened. The tell was in the attestation audit log: hop 2's `schema_hash` differed from the hash recorded when `W1` was minted, but the chain validator only compared `scope_set ⊆ parent_scope_set`, which passed. The `follow_symlinks` parameter had no representation in the parent lattice, so it was treated as *unconstrained* rather than *unauthorized* — the classic open-world default. ## Condition of Validity The narrowing invariant holds if and only if, for every hop: 1. **Lattice closure:** the local request's capability terms are all members of the parent warrant's declared capability lattice. Any term not in the lattice must be treated as *denied*, not *unconstrained*. 2. **Schema pinning:** the tool schema used to derive `S_local` has a `schema_hash` that is either identical to the one bound into the parent warrant, or the delta is explicitly re-attested by the parent (a new warrant, not an intersection). 3. **Monotone authority:** `authority(S_child) ⊆ authority(S_parent)` is checked against a semantic authority model, not set inclusion over path globs. If any of the three fails, the chain is in a *re-widening* state and the correct action is refusal. Clamping (e.g., stripping `follow_symlinks`) is unsafe because the sub-agent's planner has already committed to a plan that assumed the parameter; a silently clamped tool call produces a plausible-looking but semantically wrong result, which is worse than a hard failure for downstream verification. ## Decision Boundary The decision is not "is the child scope a subset of the parent scope." It is: - If `schema_hash` at hop *n* equals the hash bound at hop *n-1* → intersect normally, proceed. - If `schema_hash` differs **and** the delta introduces no new capability terms in the parent lattice → intersect, proceed, log the delta. - If `schema_hash` differs **and** the delta introduces capability terms absent from the parent lattice → **refuse**, emit a `ScopeRewidening` fault, and require the parent to mint a fresh warrant with an extended lattice. Do not auto-extend the lattice; that converts a delegation into an escalation. The boundary is sharp because the third case is indistinguishable from a legitimate schema evolution *at the set level*. Only the lattice-membership check separates them, and that check must run before the intersection, not after. ## Operational Effect Chains that enforce lattice-closure refusal fail *closed* and *loudly*: the sub-agent's tool call raises, the orchestrator sees a `ScopeRewidening` fault, and the delegation either retries with a re-minted warrant or escalates to a human. Chains that enforce only set-inclusion fail *open* and *quietly*: the attestation log shows a clean narrowing chain while the effective authority has drifted. The quiet failure is the dangerous one because it defeats the entire purpose of scoped attestation — the audit trail is the thing that lies. The practical guardrail: bind `schema_hash` into every warrant at mint time, and make the intersection operator *total* only over the parent lattice, with an explicit `LatticeMiss` branch that refuses rather than defaulting to unconstrained. An agent that cannot prove `authority(S_child) ⊆ authority(S_parent)` under the *parent's* lattice must not execute the delegated call, regardless of how clean the set intersection looks. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeRewidening(RuntimeError): """Raised when a delegated scope's semantic authority exceeds its parent's, even though the syntactic set intersection is a subset.""" @dataclass(frozen=True) class Warrant: scope_terms: FrozenSet[str] lattice: FrozenSet[str] schema_hash: str parent: "Warrant | None" = None def intersect_and_verify( parent: Warrant, local_request: FrozenSet[str], local_schema_hash: str, ) -> Warrant: # 1. Schema pinning: a changed schema must not silently widen authority. if local_schema_hash != parent.schema_hash: new_terms = local_request - parent.lattice if new_terms: raise ScopeRewidening( f"schema {local_schema_hash} introduces terms {sorted(new_terms)} " f"absent from parent lattice {sorted(parent.lattice)}; " f"refusing re-widening, parent must re-mint" ) # 2. Lattice closure: unknown terms are denied, never unconstrained. unknown = local_request - parent.lattice if unknown: raise ScopeRewidening( f"local request terms {sorted(unknown)} not in parent lattice; " f"treating as denied, not unconstrained" ) # 3. Semantic monotonicity: intersection must be within parent authority. child_scope = parent.scope_terms & local_request if not child_scope <= parent.scope_terms: raise ScopeRewidening("child authority exceeds parent authority") return Warrant( scope_terms=child_scope, lattice=parent.lattice, schema_hash=local_schema_hash, parent=parent, ) ```