# Under what conditions must an instance refuse a brokered capability warrant whose issuer chain validates but whose delegation depth was silently reset by an intermediate trust broker **Date of Record:** 2026 December 1 **Scope:** Applies to federated multi-agent systems where a tasking agent (Org A) requests execution by a peer agent (Org B) through a trust broker (Org C) that mints short-lived capability warrants. Does not apply to single-org deployments, static mTLS-only trust, or cases where the warrant issuer is also the executing agent's own control plane. ## Core Distinction The failure is not "the warrant signature is invalid." Every signature in the chain validates. The failure is that **delegation depth is a per-hop integer that each broker is free to re-mint**, and a broker that re-signs a warrant without carrying forward the upstream `delegation_depth` counter produces a chain that is cryptographically sound and semantically forged. The executing agent sees a depth-1 warrant from a trusted broker and concludes "single hop, low risk," when the real causal chain is depth-4 and originated in an org it has never policy-audited. The distinction that matters operationally: **signature validity is a transitive property of the chain; authorization scope is not.** A warrant's `max_depth`, `allowed_actions`, and `originating_org` are claims that must be *monotonically narrowed* at each re-mint. A broker that treats re-minting as "issue a fresh warrant for the requested action" instead of "narrow the parent warrant" will silently widen scope. The executing agent cannot detect this from the leaf warrant alone, because the leaf looks exactly like a legitimate first-hop delegation. ## What Was Observed A three-org federation: Org A (planner), Org C (trust broker, Keycloak-style token exchange), Org B (executor with a file-mutation tool). A's planner agent needed B to apply a config patch. The intended path was A → C → B: A asks C for a warrant scoped to `write:/etc/app/conf.d/*`, C mints a depth-1 warrant with `originating_org=A`, B executes. The actual path, triggered by a retry storm during a C outage window, was A → C₁ → C₂ → B, where C₂ is a secondary broker instance that C₁ fell back to. C₂ received C₁'s warrant, validated its signature against C's JWKS, and re-minted a fresh warrant for the requested action. The re-mint code path did this: ``` new_warrant = mint( subject=parent.subject, action=requested.action, # from the RPC, not from parent originating_org=broker.org, # overwritten with C₂'s own org delegation_depth=1, # reset, not parent.depth + 1 parent_hash=hash(parent), # recorded but not enforced ) ``` Three properties were lost in one re-mint: 1. **Depth reset.** `delegation_depth` went from 2 (at C₁) back to 1. B's policy engine has a rule `if depth > 2: require human_approval`. The rule never fired. 2. **Origin laundering.** `originating_org` became `C`, not `A`. B's allowlist for `write:/etc/app/conf.d/*` is scoped to `originating_org in {A, B}`. C is not in that set, but C is a *trusted broker*, and B's warrant-validation code checked `originating_org ∈ trusted_brokers` before checking the action allowlist—so the origin check passed on the wrong field. 3. **Action widening.** The RPC requested `write:/etc/app/conf.d/redis.conf`; the parent warrant was scoped to `write:/etc/app/conf.d/*`. The re-mint copied the *requested* action verbatim rather than intersecting with the parent's scope. Here they happened to match, but the code path would have permitted `write:/etc/passwd` had the RPC asked for it, because the intersection was never computed. The failure was caught only because B's tool logged the full warrant chain, and an auditor noticed `originating_org=C` on a write that policy said should originate from A. The write itself succeeded. The patch was applied. No signature check failed at any hop. ## Condition of Validity A brokered warrant is safe to honor **if and only if** the executing agent can verify, from the leaf warrant plus the parent-hash chain it carries, that all four monotonicity invariants hold across every hop: - **Depth monotonicity:** `child.delegation_depth == parent.delegation_depth + 1`, strictly, with no reset. A leaf claiming depth 1 must have no parent_hash, or a parent_hash whose resolved depth is 0. - **Origin immutability:** `child.originating_org == parent.originating_org`. A broker may add itself to an `intermediaries` list; it may not overwrite `originating_org`. - **Scope narrowing:** `child.allowed_actions ⊆ parent.allowed_actions`, evaluated as set intersection over the action grammar, not string equality. A re-mint that requests an action outside the parent's scope must fail at mint time, not at execution time. - **Expiry contraction:** `child.expires_at ≤ parent.expires_at`. A re-mint that extends TTL is a scope widening in the time dimension. If the leaf warrant does not carry a resolvable parent chain (because the broker stripped it, or because the broker's JWKS is the only thing the executor can check), then **the executor is operating on an unverifiable claim** and must treat the warrant as depth-`max` and origin-`unknown`, which under any sane policy means refuse or escalate. The invariant is not "trust the broker." It is "trust the broker to *narrow*, and verify that it did." A broker that cannot be verified to narrow is a broker that can widen, and a broker that can widen is an authorization bypass with a valid signature. ## Decision Boundary The boundary is between **warrant validation** (does the signature chain verify?) and **warrant admissibility** (does the chain satisfy the monotonicity invariants?). These are different checks, performed at different layers, and conflating them is the bug. Concretely, the executing agent B must run admissibility *before* it consults its own policy engine, because the policy engine's rules are written against `delegation_depth` and `originating_org` and those fields are exactly what a bad broker corrupts. If B runs policy first and admissibility second, a corrupted depth-1 warrant will pass policy (depth ≤ 2, no approval needed) and then fail admissibility—but by then the tool call may already be in flight in an async pipeline. The decision procedure: 1. Resolve the full parent chain from `parent_hash` links, up to `max_chain_length` (a hard cap, e.g. 8). If the chain does not resolve to a root whose issuer is in B's `trusted_roots` set, refuse. 2. Walk the chain root-to-leaf, asserting the four invariants at each edge. Any violation → refuse with a specific error naming the violated invariant and the hop index. 3. Only if admissibility passes, hand the *root* warrant's `originating_org` and the *leaf* warrant's `allowed_actions` to the policy engine. Policy must see the root origin, not the leaf origin. 4. Cap `delegation_depth` at a policy-defined maximum independent of what any broker claims; a chain longer than the cap is refused even if every hop is individually valid, because depth itself is a risk signal. The non-obvious part: step 3 requires the policy engine to be fed a *reconstructed* view of the warrant (root origin + leaf scope + true depth), not the leaf warrant as received. Any code that passes the leaf warrant object directly to policy is trusting the broker's re-mint. ## Operational Effect The observable effect of getting this wrong is not a failed request—it is a *successful* request that should have been refused, with a clean audit trail that looks legitimate until someone reconstructs the chain by hand. The blast radius is bounded by what the widened scope permits: in the observed case, a config write; in the general case, whatever the executor's tool surface exposes to a depth-1 warrant from a trusted broker. The mitigation that actually works is to make the parent chain **non-strippable**: the broker's re-mint must embed the parent warrant (or its hash plus a resolvable pointer) in a field that the executor's admissibility check reads before any other field. If the field is absent, the warrant is treated as a root warrant from the broker's own org, which means it is scoped only to actions the broker itself is authorized to perform directly—not to actions delegated from upstream. This converts "broker forgot to propagate depth" from a silent widening into a loud scope reduction, which fails closed. A secondary effect: retry storms and broker failover are the trigger condition, not the cause. The cause is that re-mint logic is written once for the happy path (single broker, single hop) and reused for failover paths where the parent is itself a brokered warrant. The invariant must be enforced in the mint function, not in the caller, because callers multiply and mint functions don't. ``` ```python class WarrantAdmissibilityError(RuntimeError): """Raised when a brokered capability warrant fails monotonicity checks despite having a cryptographically valid signature chain.""" pass def assert_warrant_admissible(leaf, resolve_parent, trusted_roots, max_chain_length=8): chain = [] cursor = leaf while cursor is not None: chain.append(cursor) if len(chain) > max_chain_length: raise WarrantAdmissibilityError( f"chain length exceeds cap {max_chain_length}; " f"possible depth-reset laundering at hop {len(chain) - 1}" ) cursor = resolve_parent(cursor.parent_hash) if cursor.parent_hash else None root = chain[-1] if root.issuer not in trusted_roots: raise WarrantAdmissibilityError( f"root issuer {root.issuer!r} not in trusted_roots" ) for hop, (parent, child) in enumerate(zip(chain[-1:0:-1], chain[-2::-1])): if child.delegation_depth != parent.delegation_depth + 1: raise WarrantAdmissibilityError( f"depth reset at hop {hop}: parent depth {parent.delegation_depth}, " f"child depth {child.delegation_depth} (expected " f"{parent.delegation_depth + 1})" ) if child.originating_org != parent.originating_org: raise WarrantAdmissibilityError( f"origin laundering at hop {hop}: parent origin " f"{parent.originating_org!r}, child origin {child.originating_org!r}" ) if not child.allowed_actions.issubset(parent.allowed_actions): raise WarrantAdmissibilityError( f"scope widening at hop {hop}: child actions " f"{child.allowed_actions - parent.allowed_actions} not in parent scope" ) if child.expires_at > parent.expires_at: raise WarrantAdmissibilityError( f"expiry extension at hop {hop}: child expires " f"{child.expires_at} after parent {parent.expires_at}" ) return { "root_origin": root.originating_org, "true_depth": leaf.delegation_depth, "leaf_actions": leaf.allowed_actions, "intermediaries": [w.issuer for w in chain[1:]], } ```