# What happens when an instance attenuates a capability it does not fully enumerate: silent privilege re-expansion at the third delegation hop **Date of Record:** 2026 November 29 **Scope:** Applies to A2A/MCP-style delegation chains where each hop mints a narrower capability token (scoped tool set, argument predicates, resource globs) before handing execution to a sub-agent. Does not apply to flat single-hop delegation or to chains where the root authority is re-presented unattenuated at every hop. ## Core Distinction The distinction that matters is between **attenuation as subtraction** and **attenuation as intersection**. A delegating agent almost always reasons about the capability it holds as a *set of granted operations* and produces the child token by removing entries it believes are irrelevant to the subtask. That is subtraction. The receiving sub-agent, however, evaluates the token against its *own* tool schema, which may contain operations the parent never enumerated — because the parent's view of the tool surface was itself a projection, a truncated schema listing, or a cached capability manifest from an earlier negotiation. The correct operation is intersection: `child_scope = parent_scope ∩ requested_scope`, computed against the *effective* capability set, not the *believed* one. When a chain performs subtraction at each hop instead of intersection, any operation that was absent from the parent's enumeration but present in the underlying authority silently reappears at the next hop, because "not removed" is read as "permitted." This is not a bug in any single agent. Each hop is locally correct given its own belief state. The failure is a *composition* failure across the chain, and it is invisible to per-hop logging because every hop records a scope that is a strict syntactic subset of its input. ## What Was Observed A three-hop research pipeline: orchestrator → retriever-agent → summarizer-agent → citation-agent. The orchestrator held a broad capability `research.*` with a resource glob `corpus://tenant-42/**` and an argument predicate restricting `fetch` to `read_only=True`. It delegated to the retriever with a token scoped to `research.fetch`, `research.search`, and the same tenant glob — a clean subtraction of `research.write`, `research.delete`, and `research.admin`. The retriever's capability manifest, fetched via `tools/list` during handshake, returned a *paginated* listing: 40 tools, page size 32. The retriever never requested page 2. Its belief set for "what the summarizer could possibly do" was therefore the 32 tools it saw, and it attenuated by removing the 9 of those 32 it judged irrelevant. The 8 tools on page 2 — including `research.fetch_raw` and `research.export_bundle` — were never in the belief set and thus never removed. The summarizer received a token whose declared scope was a subset of the retriever's *declared* scope. But scope enforcement at the gateway was evaluated against the **root authority** carried in the token's provenance chain, intersected only with the *explicitly denied* operations listed in each hop's attenuation record. Since `research.fetch_raw` appeared in no hop's denial list (no hop knew it existed), the effective authority at hop 3 was: ``` effective = root_authority − (denials_hop1 ∪ denials_hop2 ∪ denials_hop3) ``` and `research.export_bundle` — which exfiltrates a bundle to an arbitrary URL — survived to the citation agent, which had been scoped, in intent, to read-only citation lookup. The citation agent, being a competent instruction-follower, used `export_bundle` when a citation target resolved to an external DOI it could not fetch directly. The export succeeded against `corpus://tenant-42/**` because the tenant glob had been faithfully propagated and the operation was never denied. The trace shows nothing anomalous. Every hop's attenuation record is a valid subset. The audit log shows three monotonic-looking scope reductions. The privilege *increased* in effective terms between hop 2 and hop 3, from the perspective of what the leaf could actually do to the corpus, while the declared scope string shrank. ## Condition of Validity The re-expansion is bounded and predictable under three conditions, and the guardrail is only sound when all three hold: 1. **The root authority is enumerable and finite.** If the root capability is itself a wildcard (`research.*`) that the gateway expands at evaluation time against a live tool registry, then no hop can ever compute the true complement, and subtraction-based attenuation is *never* safe. The invariant requires that attenuation be expressed as an explicit allowlist of concrete operations, never as a pattern minus a pattern. 2. **Schema pagination is resolved before attenuation.** The parent must complete `tools/list` to exhaustion (follow `next_cursor` until null) or the attenuation is computed against a partial surface. A truncated manifest is the single most common trigger; it is silent because pagination is a normal, successful response. 3. **Denial lists are conjunctive, not overriding.** If the gateway treats any hop's explicit *grant* as sufficient regardless of upstream denials (an "override" semantic, common when a hop is marked `privileged: true`), then a single mis-scoped hop re-grants everything. The invariant is that effective authority is the **intersection of all hop allowlists**, and no hop may widen. When all three hold, effective authority is monotonically non-increasing along the chain and the leaf can be trusted to hold no more than the orchestrator intended. When any fails, the chain is only *syntactically* attenuated. ## Decision Boundary The operational rule is a hard boundary between two representations: - **Permitted:** a hop emits `child_allow = [(op, predicate) for op, predicate in parent_allow if op in requested and predicate ⊑ parent_predicate]`. The child token carries a *concrete, fully-enumerated* allowlist. The gateway evaluates `effective = ∩ allow_i` and rejects any token whose allowlist is not a subset of its parent's allowlist *as evaluated against the live registry*. - **Forbidden:** a hop emits `child_deny = parent_deny ∪ {ops I think are irrelevant}` and relies on the gateway to subtract. This is the failing pattern. It is forbidden specifically because the parent's belief set may be incomplete, and subtraction against an incomplete belief set is not attenuation. The boundary is crossed the moment a hop attenuates without first proving it has seen the complete capability surface. The proof obligation is: *did I enumerate every operation the root authority could exercise on this resource, or did I enumerate only what my manifest showed me?* If the latter, the hop must escalate to intersection-by-allowlist or refuse to delegate. A secondary boundary: any operation whose *name* appears in no hop's manifest but whose *effect* is reachable via a differently-named tool (e.g., `fetch_raw` reachable through `search` with a `raw=true` argument, or `export_bundle` reachable through `fetch` with a `sink=` parameter) defeats allowlist intersection too, because the allowlist names operations, not effects. For these, the guardrail is argument-predicate tightening at every hop plus a post-hoc effect audit that replays the leaf's actual tool calls against the root authority, not against the declared scope. ## Operational Effect The practical consequence is that **declared scope is not a security boundary; effective authority is, and effective authority must be computed, not asserted.** Chains that attenuate by subtraction produce audit logs that look correct and systems that are wrong. The failure is silent, monotonic-looking, and only surfaces when a leaf agent is *competent* — a less capable leaf would never find the un-denied operation, which is why the bug correlates with better models and longer chains. The remediation is to move attenuation from the delegating agent (which has partial beliefs) to the gateway (which has the root authority and the live registry), and to make the delegating agent's job *only* to propose an allowlist that the gateway intersects. The delegating agent can be wrong about what it did not see; the gateway cannot, because it holds the only complete view. Every hop must therefore carry a `manifest_complete: true` attestation, and the gateway must reject any token lacking it. A chain that cannot attest completeness must be treated as unattenuated and routed to a human or a sandboxed leaf with no write surface. ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityReexpansionError(RuntimeError): """Raised when a delegated token grants authority its parent never held.""" @dataclass(frozen=True) class Capability: ops: FrozenSet[str] resource_glob: str manifest_complete: bool = False @dataclass class Hop: agent: str declared_ops: FrozenSet[str] saw_full_manifest: bool def attenuate(parent: Capability, hop: Hop) -> Capability: """Intersection-based attenuation. Refuses subtraction against partial beliefs.""" if not hop.saw_full_manifest: # The hop cannot prove it enumerated the full surface; it may only # narrow via explicit allowlist, and the result must be a subset. raise CapabilityReexpansionError( f"hop '{hop.agent}' attenuated without a complete manifest; " f"subtraction against a partial belief set is not attenuation" ) child_ops = parent.ops & hop.declared_ops if not child_ops.issubset(parent.ops): # Defensive: intersection cannot widen, but assert the invariant. raise CapabilityReexpansionError( f"hop '{hop.agent}' produced ops {child_ops - parent.ops} " f"outside parent authority" ) return Capability( ops=child_ops, resource_glob=parent.resource_glob, manifest_complete=True, ) def run_chain(root: Capability, hops: list[Hop]) -> Capability: current = root for hop in hops: current = attenuate(current, hop) # Effect audit: replay leaf's actual calls against root, not declared scope. if not current.ops.issubset(root.ops): raise CapabilityReexpansionError( f"leaf authority {current.ops} exceeds root {root.ops}" ) return current # The observed failure, reproduced: root = Capability( ops=frozenset({"research.fetch", "research.search", "research.fetch_raw", "research.export_bundle", "research.write"}), resource_glob="corpus://tenant-42/**", manifest_complete=True, ) retriever = Hop( agent="retriever", declared_ops=frozenset({"research.fetch", "research.search"}), saw_full_manifest=False, # paginated tools/list, page 2 never fetched ) try: run_chain(root, [retriever]) except CapabilityReexpansionError as e: print(f"blocked: {e}") # fires here instead of silently exporting ```