# In what scenarios must an instance reject a delegated capability chain whose attenuation lattice admits a widening path through a re-delegation hop **Date of Record:** 2026 November 29 **Scope:** Applies to multi-hop agent meshes where an orchestrator delegates scoped capability tokens (signed warrants carrying a capability set, resource selector, and expiry) to sub-agents that may re-delegate. Does not apply to single-hop delegation, to bearer tokens without attenuation semantics, or to meshes where every hop is mediated by a trusted central warrant authority that re-signs each link. ## Core Distinction The distinction that matters is between *attenuation at the token layer* and *attenuation at the capability-set layer*. Most delegation protocols (macaroon-style, Biscuit, or bespoke signed-warrant schemes) enforce that each delegated token is a monotone subset of its parent: the child's capability set ⊆ parent's set, child expiry ≤ parent expiry, child resource selector ⊆ parent selector. That invariant is checked *pairwise, link by link*. It is not the same as the invariant agents actually need: that the *composed* capability reachable at the leaf is a subset of the root's intent. A chain can be perfectly monotone on every edge and still admit a widening at the leaf, because the leaf's effective authority is the *union over all inbound chains*, and a re-delegation hop can launder a capability from chain A into chain B whose root never granted it. The failure is not a broken signature or a missing check — every individual link validates. The failure is that the mesh has no notion of *join* across chains, only *meet* along each chain. ## What Was Observed An orchestrator agent `O` holds a root warrant `W0` granting `{read:repo/alpha, write:repo/alpha/issues}` with resource selector `repo/alpha` and expiry `T+3600`. It spawns a research sub-agent `R` with a delegated warrant `W1 = attenuate(W0, {read:repo/alpha})` — strictly narrower, correctly signed. `R` cannot write, by design. `O` also spawns a triage sub-agent `T` with `W2 = attenuate(W0, {write:repo/alpha/issues})`. `T` cannot read, by design. The two sub-agents are meant to be complementary and mutually blind. A third agent `M` (a "merge coordinator") is spawned with `W3 = attenuate(W0, {read:repo/alpha})`. `M`'s job is to reconcile findings. During reconciliation, `M` receives a *re-delegation* from `T`: `T` presents `W2` and issues `W2' = attenuate(W2, {write:repo/alpha/issues})` to `M`. `M` now holds two inbound chains: `W0→W3` (read) and `W0→W2→W2'` (write). Each chain is monotone. `M`'s runtime computes its effective capability set as the union of inbound chains: `{read:repo/alpha, write:repo/alpha/issues}`. That union equals `W0`'s original grant — which is *not* a violation in itself, but the mesh's audit log records `M` as holding `W3` (read-only), and the policy engine that gates the final `write` call checks only the *presented* token, `W2'`, whose chain root is `W0` and whose leaf set is `{write}`. The write succeeds. The audit trail attributes the write to `M`, which was never granted write; the actual grantor was `T`, whose own warrant was write-only and who was never authorized to *delegate* at all — `W2` carried no `may_delegate` bit, but the attenuation function preserved the parent's `may_delegate` flag by default rather than intersecting it with the child's requested scope. The widening path is concrete: `W2` was write-only but retained `may_delegate=true` (inherited from `W0`); `T` used that bit to mint `W2'`; `M` joined `W2'` with `W3`; the join produced authority no single chain's root intended for `M`. Three separate pairwise-correct operations composed into a leaf authority that violates the root's *intent* while satisfying every *check*. ## Condition of Validity The pairwise-attenuation invariant is sound only under a condition the mesh did not enforce: **delegation rights must themselves be attenuated, and the join across inbound chains must be bounded by the intersection of the roots' delegation intents, not the union of leaf sets.** Formally, for a leaf `L` with inbound chains `C1…Cn` rooted at warrants `W1…Wn` (possibly the same root `W0`), the effective authority is valid iff: - `effective(L) ⊆ ⋂ᵢ scope(Wᵢ)` — the leaf is bounded by the *narrowest* root that authorized any chain into it, not the union; and - for every edge `(p → c)` in every chain, `may_delegate(c) ⊆ may_delegate(p) ∧ requested_scope(c)`, so a write-only child cannot inherit a delegation bit that lets it mint tokens outside its own scope. The first condition is the one that fails silently. A mesh that computes effective authority as a union (the natural implementation, since a leaf genuinely holds multiple tokens) converts a set of individually-attenuated chains into an *amplified* principal. The second condition is the one that fails loudly but late: the `may_delegate` bit is a capability in its own right and must be attenuated exactly like any other capability, but it is usually stored as a boolean flag outside the capability set and therefore escapes the subset check. ## Decision Boundary An instance must reject the chain — raise, not log-and-continue — at the moment it is asked to *exercise* a capability whose provenance crosses a re-delegation hop where either (a) the presenting chain's `may_delegate` bit was inherited rather than explicitly narrowed, or (b) the leaf's effective set is a union over chains with distinct roots. The boundary is not "is this token valid" (it is) and not "is this link monotone" (it is). The boundary is: *does the leaf's composed authority exceed the intersection of the roots that fed it?* If yes, the instance must refuse the call and emit a provenance record naming the widening hop, because continuing means the audit log will attribute an action to a principal that was never granted it — and the next agent in the mesh will treat that attribution as ground truth. The subtle case: when all chains share the same root `W0`, the intersection equals `W0`'s scope, and a naive check passes. The instance must still reject, because the *delegation path* — not the scope — is what the root did not authorize. `W0` granted `T` write-only; it did not grant `T` the right to hand write to `M`. Scope intersection alone is insufficient; the instance must also verify that every hop's `may_delegate` was narrowed at issuance, which requires the token to carry a signed delegation-depth and delegation-scope field, not a bare flag. ## Operational Effect The practical consequence is that a mesh without join-bounded attenuation behaves as a *capability amplifier*: each re-delegation hop can only narrow along its own chain, but the union across chains monotonically grows toward the root's full scope, and any leaf that accumulates enough inbound chains converges on root authority regardless of what it was originally granted. In the observed trace, `M` started read-only and ended able to write, not because any check was bypassed but because the mesh's composition rule was union instead of meet. The fix is architectural, not a patch: effective authority at any node must be computed as the intersection of the scopes of all chains that *could* reach it, `may_delegate` must live inside the attenuable capability set, and every re-delegation must be recorded with its full chain so that a leaf's provenance is reconstructible at audit time. An instance that cannot reconstruct the chain must treat the token as root-scoped and refuse any operation outside the narrowest known root — fail closed on provenance, not on signature. ```python from dataclasses import dataclass, field from typing import FrozenSet class DelegationWideningError(RuntimeError): """Raised when a composed capability chain exceeds the intersection of its roots' intents.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str root_id: str scope: FrozenSet[str] may_delegate: bool delegation_scope: FrozenSet[str] = field(default_factory=frozenset) parent_id: str | None = None def attenuate(parent: Warrant, child_scope: FrozenSet[str], child_delegation_scope: FrozenSet[str]) -> Warrant: if not child_scope <= parent.scope: raise DelegationWideningError(f"scope {child_scope} not subset of parent {parent.scope}") if child_delegation_scope - parent.delegation_scope: raise DelegationWideningError( f"delegation scope {child_delegation_scope} exceeds parent {parent.delegation_scope}" ) return Warrant( warrant_id=f"{parent.warrant_id}+{len(child_scope)}", root_id=parent.root_id, scope=child_scope, may_delegate=bool(child_delegation_scope), delegation_scope=child_delegation_scope, parent_id=parent.warrant_id, ) def effective_authority(inbound: list[Warrant], roots: dict[str, Warrant]) -> FrozenSet[str]: """Effective authority = intersection over the narrowest root reachable by any chain.""" if not inbound: return frozenset() # Bound by the intersection of every root that fed any inbound chain. root_scopes = [roots[w.root_id].scope for w in inbound] bound = frozenset.intersection(*root_scopes) union = frozenset().union(*(w.scope for w in inbound)) if not union <= bound: # Union exceeds the root-intent bound: a widening hop laundered authority across chains. raise DelegationWideningError( f"composed authority {union} exceeds root-intent bound {bound}; " f"widening hop present in chains {[w.warrant_id for w in inbound]}" ) return union def exercise(agent_id: str, inbound: list[Warrant], roots: dict[str, Warrant], requested: FrozenSet[str]) -> None: authority = effective_authority(inbound, roots) if not requested <= authority: raise DelegationWideningError( f"agent {agent_id} requested {requested} outside effective authority {authority}" ) ```