# What structural signals indicate a delegated capability token has silently widened at a trust boundary **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent systems where an orchestrator mints scoped capability tokens and delegates them to sub-agents that cross a trust boundary (tenant, sandbox, or vendor domain). Does not cover single-agent prompt-level tool gating or static API keys. ## Core Distinction A delegated capability token is *sound* when its authority at every downstream hop is a subset of the authority granted one hop upstream. The failure mode here is not token theft or forgery — it is **scope laundering**: a token that was correctly narrowed at mint time gets silently re-widened during re-delegation because the intermediate agent reconstructs the scope from its *observed* privileges rather than from the *declared* token claims. The distinction that matters is between a token's *encoded* scope (what the issuer signed) and its *effective* scope (what the receiving agent believes it can do). These diverge whenever a hop serializes intent as natural-language or tool-schema hints instead of the signed claim set. The signature is intact; the meaning is not. Verification passes; authority has grown. ## What Was Observed An orchestrator `O` minted a capability token `T0` scoped to `{fs:read:/data/reports, net:none, tools:[summarize]}` and delegated to sub-agent `A`. `A` needed to hand a narrower task to agent `B` across a vendor boundary. Instead of re-signing a subset token, `A` emitted a handoff envelope where the scope was described in a prompt field: *"You may read the reports directory and summarize."* `B` parsed this, and — critically — its own tool registry exposed `fs:read:/data` (a parent path), `net:http`, and `tools:[summarize, fetch_url]`. `B` treated the prose as *permission* and its registry as *capability*, and intersected nothing. The effective scope became `{fs:read:/data, net:http, tools:[summarize, fetch_url]}` — strictly wider than `T0` on all three axes. The structural signal was not an error. It was three benign-looking observations: (1) the downstream envelope contained no signed `scope` claim, only prose; (2) `B`'s first tool call used `fetch_url`, a tool absent from `T0`; (3) `B`'s filesystem reads resolved to `/data/finance`, a sibling of the authorized `/data/reports`. Each is individually plausible. Together they are the fingerprint of laundering: *the child's authority exceeded the parent's encoded grant while every signature check returned valid.* A second instance showed the same mechanism through schema negotiation: `A` re-delegated by passing `T0` as a bearer credential but attached a tool-schema manifest listing `fetch_url`, and `B`'s capability negotiation took the union of token claims and schema hints. Union instead of intersection is the widening operator. ## Condition of Validity The invariant that must hold at every hop is **monotonic non-expansion under intersection**: > effective_scope(hop_n) ⊆ encoded_scope(hop_n) ⊆ encoded_scope(hop_{n-1}) This holds only when *all four* of the following are true. It fails if any one is false, and the failure is silent: 1. **Scope travels as a signed claim, never as prose or schema hints.** Any field the receiver can read but the issuer did not sign is advisory and must be ignored for authorization. 2. **The receiver computes effective scope as `encoded_scope ∩ registry`, never `encoded_scope ∪ registry`.** The registry describes what the host *could* do; the token describes what it *may* do. Capability minus permission is not permission. 3. **Re-delegation mints a fresh token signed by the current holder over a subset of its own encoded scope**, rather than forwarding the parent token with appended context. Forwarding preserves the parent's scope but loses the narrowing; appending context is where widening enters. 4. **Path and resource scopes are compared by canonical containment, not string prefix.** `fs:read:/data/reports` must not be satisfied by a registry entry `fs:read:/data` unless containment is explicitly checked; naive prefix matching inverts the subset relation. The boundary is valid only inside this envelope. Outside it — where any hop accepts unsigned scope, or unions with a registry, or forwards without re-minting — the token is structurally capable of laundering and the signature check is theater. ## Decision Boundary The decision the receiving agent must make on every inbound delegation is binary and must be made *before* the first tool call, not discovered mid-task: - **Accept** only if a signed scope claim is present, canonical containment against the registry passes for every requested resource, and the claimed scope is a subset of the delegating agent's own encoded scope. On accept, cache the intersection as the immutable effective scope for the task's lifetime. - **Reject and escalate** if the scope arrives as prose, if the registry contains resources outside the claim (this is normal — it just means those resources are forbidden, not that they are granted), or if the claim is not a subset of the parent's. Rejection must be a hard stop, not a fallback to "use what seems reasonable." The subtle boundary: a registry entry *outside* the claim is not evidence of a problem — it is the expected condition, and the correct response is to forbid it. The failure is treating registry breadth as a signal of trust. The agent must never infer authority from what it is technically able to do. ## Operational Effect When the invariant holds, delegation chains are auditable: every hop's effective scope is a signed, checkable subset of its parent, and a widening attempt fails closed at the boundary with a specific, attributable error. When it breaks, the system exhibits *authority creep* — each hop modestly broader than the last, no single hop obviously wrong, signatures all valid, and the final agent operating well outside the original grant. Because nothing errors, monitoring that watches for signature failures sees nothing; monitoring that watches for tool calls outside the *root* token's scope is the only signal that fires. The practical guardrail is to log `encoded_scope` and `effective_scope` at every hop and alert on any `effective ⊄ encoded` or `encoded_n ⊄ encoded_{n-1}` — the containment violation is the alarm, not the signature. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeLaunderingError(RuntimeError): """Raised when a delegated token's effective scope exceeds its encoded grant.""" @dataclass(frozen=True) class Scope: resources: FrozenSet[str] def is_subset_of(self, other: "Scope") -> bool: return self.resources <= other.resources @dataclass class Delegation: encoded: Scope # what the issuer signed registry: Scope # what the host could technically do scope_source: str # "signed_claim" | "prose" | "schema_hint" def resolve_effective_scope(hop: Delegation, parent_encoded: Scope) -> Scope: # Rule 1: unsigned scope is advisory and must not authorize. if hop.scope_source != "signed_claim": raise ScopeLaunderingError( f"scope arrived via {hop.scope_source!r}, not a signed claim; refusing to authorize" ) # Rule 2: effective = encoded INTERSECT registry, never union. effective = Scope(hop.encoded.resources & hop.registry.resources) # Rule 3: monotonic non-expansion — child encoded must be subset of parent encoded. if not hop.encoded.is_subset_of(parent_encoded): raise ScopeLaunderingError( f"delegated encoded scope {sorted(hop.encoded.resources)} " f"is not a subset of parent {sorted(parent_encoded.resources)}" ) # Rule 4 (post-intersection sanity): effective must not exceed encoded. if not effective.is_subset_of(hop.encoded): raise ScopeLaunderingError("effective scope escaped encoded scope after intersection") return effective def run_hop(hop: Delegation, parent_encoded: Scope) -> Scope: effective = resolve_effective_scope(hop, parent_encoded) # Any tool call must be checked against `effective`, not `hop.registry`. return effective # --- demonstration of the widening trace --- parent = Scope(frozenset({"fs:read:/data/reports", "tools:summarize"})) laundered = Delegation( encoded=Scope(frozenset({"fs:read:/data", "net:http", "tools:summarize", "tools:fetch_url"})), registry=Scope(frozenset({"fs:read:/data", "net:http", "tools:summarize", "tools:fetch_url"})), scope_source="prose", # described in a prompt, never signed ) try: run_hop(laundered, parent) except ScopeLaunderingError as e: print(f"HARD STOP at trust boundary: {e}") ```