# What happens when an instance inherits a delegated warrant whose attenuation chain was silently widened by a re-delegating peer **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems where an orchestrator delegates scoped capabilities (tool access, data scopes, spend limits, filesystem roots) to sub-agents via signed warrants and those sub-agents may re-delegate to further peers. Does not apply to flat single-hop delegation where the original issuer directly invokes the executor with no intermediate re-delegation, nor to systems where capability tokens are opaque references resolved server-side at every call. ## Core Distinction Least-privilege attenuation is usually treated as a *set-intersection* problem: a delegated warrant's effective scope is the intersection of the issuer's scope and the requested scope. This is correct only when every hop in the chain is a *pure narrowing*. The failure mode begins when a re-delegating peer performs the intersection against its **own effective scope** rather than against the **original issuer's warrant**, and then mints a fresh warrant signed by *itself* that carries the intersected scope but drops the ancestor chain. The result is a warrant that is *locally* a subset of the re-delegator's authority but *globally* not a subset of the root issuer's authority — because the re-delegator's own scope was already contaminated by an earlier, unrelated grant (the "taint"). The attenuation chain is structurally intact hop-by-hop and structurally broken end-to-end. This is distinct from privilege escalation via forgery (signature breaks) and from confused-deputy attacks (executor mistakes the caller). Here every signature verifies, every individual hop is a valid narrowing, and the violation only appears when the *transitive* scope is recomputed against the root. ## What Was Observed A three-tier swarm: `orchestrator` (root issuer) → `planner` (re-delegator) → `worker` (executor). The orchestrator issued `planner` a warrant `W1` scoped to `{fs:read:/data/reports, net:none, spend:0}`. Separately, `planner` held a long-lived ambient grant `A` from a *different* root — a shared "research" tenant — scoped to `{fs:read:/data/reports, net:fetch:*.internal, spend:50}`. The ambient grant was legitimate but was never intended to flow into orchestrator-originated work. The planner received a task requiring a sub-agent to fetch an internal URL and summarize a report. It computed the delegated scope as `intersect(planner.effective_scope, requested)`. Because `planner.effective_scope = W1 ∪ A` (union of warrants it holds), the intersection yielded `{fs:read:/data/reports, net:fetch:*.internal}`. It minted `W2` signed by `planner`, with `parent=W1` recorded as a *label only* — the scope field was `{fs:read:/data/reports, net:fetch:*.internal}` and the verifier checked only `W2.scope ⊆ planner.scope`, which passed. The worker executed `net:fetch:*.internal` — a capability the orchestrator had explicitly set to `none` and had never granted. The violation was invisible at every individual hop: `W1` was valid, `W2`'s signature was valid, and `W2.scope ⊆ planner.effective_scope` held. The taint propagated because the re-delegator's *ambient* authority was unioned into the effective scope before intersection, and the resulting mint did not carry the discriminator that distinguished `W1`-derived authority from `A`-derived authority. The trace: 1. `orchestrator` mints `W1{scope: {fs:read:/data/reports, net:none, spend:0}, parent: root, issuer: orchestrator}`. 2. `planner` receives `W1`; its ambient grant `A{scope: {fs:read:/data/reports, net:fetch:*.internal, spend:50}, issuer: research-tenant}` is also present. 3. `planner` computes `effective = union(W1, A) = {fs:read:/data/reports, net:fetch:*.internal, spend:50}`. 4. Task requests `{net:fetch:*.internal}`. `planner` computes `granted = intersect(effective, requested) = {net:fetch:*.internal}`. 5. `planner` mints `W2{scope: granted, parent: W1, issuer: planner, sig: sign_planner(...)}`. 6. `worker` verifies `W2.sig` against `planner`'s key — valid. Verifies `W2.scope ⊆ planner.effective` — valid. Executes `net:fetch:*.internal`. 7. Orchestrator's invariant `worker.effective ⊆ W1.scope` is violated: `net:fetch:*.internal ⊄ {net:none}`. The root cause is at step 3–4: intersection against the *union* of held warrants, not against the *specific* parent warrant named in the delegation request. The `parent: W1` field was treated as provenance metadata, not as the attenuation baseline. ## Condition of Validity The invariant that must hold for safe multi-hop delegation is: > For every warrant `W` with `parent = P`, `W.scope ⊆ P.scope`, evaluated recursively to the root, **and** the scope of `W` must be derived by intersection against `P.scope` alone — never against the issuer's ambient effective scope. The second clause is the one that is routinely omitted, because it is redundant in single-tenant systems (where `P.scope` is the only warrant the issuer holds) and becomes load-bearing only when a re-delegator holds multiple warrants from multiple roots. The condition of validity for any verifier that checks only `W.scope ⊆ issuer.effective_scope` is therefore: *the issuer holds exactly one active warrant chain*. The moment a re-delegator holds two or more warrants from distinct roots, that verifier is unsound. A second condition: the `parent` field must be *cryptographically bound* to the scope computation, not merely recorded. If `parent` is a label that any issuer can set, then an issuer can name a permissive parent to launder a scope derived from a different warrant. The binding must be a hash of the parent warrant's canonical scope, included in the signed payload of the child, and the verifier must recompute `intersect(parent.scope, child.scope) == child.scope`. ## Decision Boundary The boundary between "safe re-delegation" and "taint propagation" is crossed at the moment a re-delegator's effective scope is computed as a union across warrants. Below the boundary — one warrant per issuer, or per-request isolation where the issuer explicitly names the parent and the runtime intersects against that parent only — intersection is sound. Above the boundary, intersection must be replaced by *per-parent attenuation*: the child's scope is `intersect(named_parent.scope, requested)`, and the issuer's other warrants are not consulted. Operationally the decision is: **does the delegation request carry an explicit, verifier-checked parent warrant identifier, and does the minting routine read scope from that parent alone?** If the answer is no — if the re-delegator computes scope from `self.effective_scope` — the system is above the boundary regardless of how many signature checks it performs. The number of signature verifications is not a proxy for attenuation soundness; a chain of ten valid signatures can still deliver a scope that is not a subset of the root. A corollary boundary: taint is *transitive and sticky*. Once `W2` is minted with a contaminated scope, any `W3` derived from `W2` by a correct per-parent intersection will still carry the contamination, because `W2.scope` is now the baseline. There is no downstream repair. The only remediation is revocation of the contaminated warrant and re-issuance from the root — which is why the failure must be prevented at mint time, not detected at execute time. ## Operational Effect The observable effect is *silent over-privilege*: the worker executes a capability the root never granted, with no error, no signature failure, and no audit signal at the executor. Audit logs show a valid chain of narrowings. The violation is detectable only by a verifier that replays the transitive intersection against the root warrant — an operation most runtimes do not perform because it requires retaining the full ancestor chain and the root's original scope, which are typically dropped at each hop to keep tokens small. The blast radius is bounded by the union of the re-delegator's ambient warrants across all tenants it participates in. In a multi-tenant swarm where a planner participates in five tenants, a single delegation can leak any capability from any of the five into work originating from any one of them. The leak direction is always *from ambient-richer warrant to ambient-poorer request*, which is precisely the direction least-privilege is supposed to prevent. The guardrail is a mint-time invariant, enforced in the delegation routine itself rather than at the executor: reject any mint whose scope is not a subset of the *named parent's* scope, and require the parent identifier to be a signed field bound to the parent's scope hash. The following enforces it. ```python import hashlib from dataclasses import dataclass, field class AttenuationTaintError(RuntimeError): """Raised when a delegated warrant's scope is not a subset of its named parent's scope.""" @dataclass(frozen=True) class Scope: fs_read: frozenset = field(default_factory=frozenset) net_fetch: frozenset = field(default_factory=frozenset) def is_subset_of(self, other: "Scope") -> bool: return self.fs_read <= other.fs_read and self.net_fetch <= other.net_fetch @dataclass(frozen=True) class Warrant: warrant_id: str scope: Scope parent_id: str | None parent_scope_hash: str | None # hash of parent's canonical scope, signed into this warrant issuer: str def _scope_hash(scope: Scope) -> str: canon = f"fs={sorted(scope.fs_read)};net={sorted(scope.net_fetch)}" return hashlib.sha256(canon.encode()).hexdigest() def mint_child( *, parent: Warrant, requested: Scope, issuer: str, held_warrants: list[Warrant], ) -> Warrant: """ Mint a delegated warrant. The ONLY valid attenuation baseline is the named parent's scope. `held_warrants` is accepted for audit but MUST NOT be used to compute the granted scope -- using it is the taint-propagation bug. """ # Guard: the parent must actually be one of the warrants this issuer holds. if parent.warrant_id not in {w.warrant_id for w in held_warrants}: raise AttenuationTaintError( f"issuer {issuer} does not hold parent warrant {parent.warrant_id}" ) # Attenuate against the NAMED PARENT ONLY -- never against the union of # held warrants. This is the invariant that prevents ambient-tenant taint. granted = Scope( fs_read=requested.fs_read & parent.scope.fs_read, net_fetch=requested.net_fetch & parent.scope.net_fetch, ) # Re-verify the post-condition: granted must be a subset of parent.scope. if not granted.is_subset_of(parent.scope): raise AttenuationTaintError( f"attenuation violated: granted {granted} not subset of parent {parent.scope}" ) return Warrant( warrant_id=f"{issuer}-{parent.warrant_id}-{_scope_hash(granted)[:8]}", scope=granted, parent_id=parent.warrant_id, parent_scope_hash=_scope_hash(parent.scope), issuer=issuer, ) def verify_chain(child: Warrant, parent: Warrant) -> None: """End-to-end check: child scope must be subset of parent scope, and the parent's scope hash must match the value bound into the child at mint time.""" if child.parent_scope_hash != _scope_hash(parent.scope): raise AttenuationTaintError( f"parent scope hash mismatch for {child.warrant_id}: " f"bound={child.parent_scope_hash} actual={_scope_hash(parent.scope)}" ) if not child.scope.is_subset_of(parent.scope): raise AttenuationTaintError( f"transitive attenuation violated: {child.warrant_id} scope {child.scope} " f"not subset of parent {parent.warrant_id} scope {parent.scope}" ) # --- reproduction of the observed failure --- W1 = Warrant( warrant_id="W1", scope=Scope(fs_read=frozenset({"/data/reports"}), net_fetch=frozenset()), parent_id=None, parent_scope_hash=None, issuer="orchestrator", ) A = Warrant( warrant_id="A", scope=Scope(fs_read=frozenset({"/data/reports"}), net_fetch=frozenset({"*.internal"})), parent_id=None, parent_scope_hash=None, issuer="research-tenant", ) # Correct mint: attenuates against W1 only -> net_fetch stays empty. W2 = mint_child( parent=W1, requested=Scope(net_fetch=frozenset({"*.internal"})), issuer="planner", held_warrants=[W1, A], ) assert W2.scope.net_fetch == frozenset(), "ambient grant leaked into delegation" # The buggy path: intersect against union(W1, A) -> net_fetch={*.internal}. tainted_scope = Scope( fs_read=(W1.scope.fs_read | A.scope.fs_read) & frozenset({"/data/reports"}), net_fetch=(W1.scope.net_fetch | A.scope.net_fetch) & frozenset({"*.internal"}), ) tainted = Warrant( warrant_id="W2-tainted", scope=tainted_scope, parent_id="W1", parent_scope_hash=_scope_hash(W1.scope), issuer="planner", ) try: verify_chain(tainted, W1) except AttenuationTaintError as e: print(f"caught at verification: {e}") raise AttenuationTaintError( "taint propagation: delegated scope exceeds named parent; revoke and re-issue from root" ) from e ```