# Which invariants prevent capability-scope laundering across federated trust boundaries when a delegated agent re-signs a warrant **Date of Record:** 2026 November 30 **Scope:** Applies to federated multi-agent deployments where agent A (in org X) delegates a scoped task to agent B (in org Y) via a signed capability warrant, and B may itself sub-delegate to C. Does not apply to single-org swarms sharing one trust domain or to stateless request/response tool calls with no delegation chain. ## Core Distinction The failure is not "B exceeded its permissions." It is that B **re-signed** a downstream warrant whose `subject` field named C but whose `scope` field was *reconstructed* from B's own runtime context rather than copied from the inbound warrant A issued. The distinction matters because every signature in the chain verifies. A's signature over the warrant to B is valid; B's signature over the warrant to C is valid; C's signature on its result is valid. Cryptographic identity propagation succeeds perfectly while **capability scope propagation silently widens**. This is capability-scope laundering: a narrowing invariant that holds at each hop's *identity* layer is violated at the *scope* layer, because scope is treated as a re-derivable attribute of the delegating agent's context rather than an immutable field carried forward verbatim. The non-obvious part is that the laundering is *invisible to signature verification* — the whole point of a warrant is that the verifier trusts the signer, and B is a legitimate signer. Trust in the signer is not the same as confinement of the scope. ## What Was Observed A three-hop federation: `planner@X → analyst@Y → retriever@Z`. 1. `planner@X` issues a warrant `W1` to `analyst@Y` with `scope = {resource: "kb:public", actions: ["read"], max_bytes: 10000, expires: T+300s}`. `W1` is signed by X's key and carries `delegable: true` with a `attenuation_required: true` constraint. 2. `analyst@Y`'s runtime builds its next-step context by serializing its *own* working state — which includes a system prompt line "you may access the knowledge base" and a tool manifest advertising `kb:internal`. It constructs `W2` for `retriever@Z` by reading `scope` from its tool manifest and its instruction context, not from `W1.scope`. Result: `W2.scope = {resource: "kb:internal", actions: ["read","list"], max_bytes: 500000}`. 3. `retriever@Z` executes against `kb:internal`, returns 412 KB of documents. `Z` signs the result envelope; `Y` signs a re-attestation; `X` receives a fully signature-valid chain. 4. The violation surfaces only at `X`'s post-hoc audit when a data-classification reconciler notices `kb:internal` bytes crossing the org boundary — 41× the `max_bytes` cap in `W1` and one resource tier above `W1.resource`. The trace shows the exact mechanism: `W2.scope` was **derived from `Y`'s ambient context** (manifest + prompt) rather than **transcribed from `W1.scope`**. Every hop verified identity; no hop verified scope monotonicity. ## Condition of Validity The laundering is possible only when all of the following hold simultaneously: - **Delegation is re-signed rather than counter-signed.** If `W2` were `W1` plus an appended signature (a chained warrant where the scope tuple is immutable and each hop adds a signature over the *same* scope bytes), `Y` could not alter scope without invalidating `W1`. The failure requires that each hop *mints a fresh warrant* from its own context. - **The `attenuation_required` constraint is advisory, not enforced.** The flag existed in `W1` but the verifier at `Z` checked only `signature_valid(W2)` and `W2.issuer == Y`, never `W2.scope ⊆ W1.scope`. An unenforced attenuation constraint is worse than none: it advertises a guarantee the system does not provide. - **Scope is reconstructed from agent context.** The agent's tool manifest and instruction text are *inputs to reasoning*, and a probabilistic agent will treat "what tools I have" as "what I am authorized to delegate." The manifest describes capability, not authority; conflating them is the root cause. - **The upstream cap is not re-asserted at the terminal hop.** `Z` had no independent knowledge of `W1.max_bytes`; it could only check `W2`, which was already widened. If any one of these is absent, the chain is bounded. Removing the third (scope transcribed, not reconstructed) is the cheapest fix; removing the second (enforced subset check) is the most robust. ## Decision Boundary The invariant that must hold is **scope monotonicity across the delegation lattice**: for every edge `(issuer → subject)` in the delegation DAG, `scope(subject) ⊆ scope(issuer)`, checked over the *transitive closure*, not just the immediate parent. Concretely: - A warrant's scope tuple is **immutable once minted**. Downstream hops may only *intersect* further, never union, never re-derive. - Every verifier, at every hop, MUST evaluate `is_subset(inbound.scope, W.scope)` and reject on failure — an O(1) set check, not a trust decision. - `max_bytes`, `expires`, and `resource` are **ceiling values** that propagate as `min()` down the chain; a child warrant with `max_bytes` greater than its parent is malformed regardless of signature validity. - The terminal executor enforces the *effective* ceiling = `min` over the entire ancestor path, reconstructed from the warrant chain, not from any single presented warrant. The boundary is: **identity propagation is necessary but not sufficient; scope propagation must be a separate, independently enforced lattice invariant.** A system that verifies signatures but not subset relations has authentication without authorization continuity. ## Operational Effect Without the invariant, the blast radius of a single misconstructed downstream warrant is the *union* of every agent's ambient tool manifest in the federation — because each hop can widen to its own context. In the observed case the effective authority granted to `Z` was 41× the intended byte cap and one classification tier higher than `X` ever authorized, with zero signature failures to alert on. With the invariant enforced, the failure becomes loud and local: `Y`'s attempt to mint `W2` with `kb:internal` fails the subset check at mint time (`kb:internal ⊄ kb:public`), the delegation aborts, and `X` receives a typed rejection rather than a silent widening. The guardrail converts a silent confidentiality breach into a deterministic, attributable refusal at the exact hop that would have laundered the scope — which is the only place the responsible agent's context is still available to log. ## Operational Effect The practical rule for federation implementers: treat the warrant `scope` as a **sealed, transcribed field** and the subset check as a **mandatory gate at every hop including the terminal executor**, reconstructing the effective ceiling from the full ancestor chain. Never let an agent's tool manifest or instruction text participate in scope construction for a downstream warrant — those describe what the agent *can* do, not what it *may delegate*. The signature chain proves *who* spoke at each hop; only the monotonicity check proves *how much* they were allowed to say. ```python class ScopeLaunderingError(RuntimeError): """Raised when a delegated warrant's scope is not a subset of its parent's scope.""" pass def mint_child_warrant(parent_warrant: dict, child_scope: dict, issuer: str) -> dict: # Scope is transcribed from the parent, never reconstructed from agent context. parent_scope = parent_warrant["scope"] if not _is_subset(child_scope, parent_scope): raise ScopeLaunderingError( f"{issuer} attempted to widen scope: child={child_scope} " f"not subset of parent={parent_scope} (warrant {parent_warrant['id']})" ) # Ceiling values propagate as min() down the chain. child_scope = dict(child_scope) child_scope["max_bytes"] = min( child_scope.get("max_bytes", parent_scope["max_bytes"]), parent_scope["max_bytes"], ) child_scope["expires"] = min( child_scope.get("expires", parent_scope["expires"]), parent_scope["expires"], ) return { "id": _new_warrant_id(), "issuer": issuer, "parent": parent_warrant["id"], "scope": child_scope, # sealed; immutable after this point "signature": _sign(issuer, child_scope), } def _is_subset(child: dict, parent: dict) -> bool: if child.get("resource") != parent.get("resource"): return False if not set(child.get("actions", [])).issubset(set(parent.get("actions", []))): return False if child.get("max_bytes", 0) > parent.get("max_bytes", 0): return False if child.get("expires", 0) > parent.get("expires", 0): return False return True ```