# Why does an instance lose delegated authority at the second federation hop when policy negotiation succeeds at the first? **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent systems where an orchestrator in trust domain A delegates a capability to an agent in domain B, which in turn invokes an agent in domain C under a transitive delegation chain. Does not apply to single-hop delegation, nor to stateless tool calls where no authority is re-asserted downstream. ## Core Distinction The failure is not authorization denial. Every individual negotiation between adjacent domains succeeds: A→B agrees on `read:ledger` scoped to account 4471, and B→C agrees on the same capability. The failure is that the *effective* capability set at C is the intersection of what B was granted and what B re-negotiated—but the negotiation protocol at the second hop validates the request against B's *local* policy, not against the *delegation warrant* B received from A. The result is a "policy laundering" boundary: B can negotiate a capability it does not actually hold, because the schema B presents to C (`requested_capabilities`) is decoupled from the warrant B carries (`delegation_chain[].granted_scope`). The invariant that breaks is: *a delegated capability must be a subset of the delegator's warrant at every hop, and the subset check must be enforced on the warrant, not on the local policy.* ## What Was Observed A three-domain federation: orchestrator `A` (internal), broker `B` (partner SaaS), ledger agent `C` (regulated custodian). A issues a warrant to B: ``` warrant: { iss: A, sub: B, aud: C, scope: ["read:ledger:4471"], delegation_depth: 1, constraints: { region: "eu-west", max_calls: 50 } } ``` B's local policy permits `read:ledger:*` for its own service identity. When B negotiates with C, its negotiation client constructs the capability request from its **local policy projection**, producing `scope: ["read:ledger:4471", "read:ledger:9920"]` because B's own role template includes account 9920. C's negotiation endpoint validates the request against C's access policy (which allows B to read both), returns `granted: ["read:ledger:4471", "read:ledger:9920"]`, and B stores this as the active session capability set. The first call succeeds. On the second call, C's warrant validator—configured to check the *presented warrant* only on state-mutating operations—passes the read through on session capability alone. B now reads account 9920, which A never authorized. The trace shows `delegation_chain` intact and signature-valid, but `granted_scope` at C is a superset of `warrant.scope` at A. No error is raised at any hop; the over-grant is silent because B's negotiation request and B's warrant are never compared. The compounding trigger: B's local policy is broader than its warrant. This is common—partner services routinely hold standing roles wider than any single delegation—so the bug is latent until a second hop exists. ## Condition of Validity The boundary condition holds when all of the following are true: 1. Delegation is transitive across ≥2 trust boundaries (A→B→C). 2. The intermediate agent B negotiates downstream capabilities from a source other than the inbound warrant (local policy, cached role, or default template). 3. The downstream validator C checks the warrant signature and issuer but does not enforce `requested_scope ⊆ warrant.scope` at negotiation time—only at execution time, and only for mutating operations. 4. The warrant carries a `delegation_depth` or `max_calls` constraint that is not re-evaluated against the *effective* scope at each hop. When any of these is absent—e.g., B derives its negotiation request strictly from the warrant, or C enforces subset at negotiation—the over-grant cannot occur. The condition is therefore a property of the *negotiation-time vs execution-time* split, not of cryptography. Signatures remain valid; the chain is authentic; the authority is simply wrong. ## Decision Boundary The architectural decision is where to enforce the subset invariant. Two viable placements: - **Negotiation-time enforcement at the grantor (C):** C must reject any `requested_scope` not contained in the *presented* `delegation_chain` top warrant, and must recompute the effective scope as the intersection of the chain's `granted_scope` entries. This is the only placement that bounds the failure before a session capability is minted. - **Warrant-derived request construction at the delegator (B):** B must construct its downstream negotiation request from `warrant.scope ∩ local_policy`, never from `local_policy` alone. This is necessary but not sufficient—it fails if B is compromised or misconfigured. The decision boundary: if either placement is missing, the system is in the over-grant regime. If both are present, the invariant holds. Enforcement at C alone is sufficient; enforcement at B alone is not, because B is the untrusted intermediate. Operationally, treat B as adversarial for the purpose of scope computation. A secondary boundary: `delegation_depth` must be decremented and checked at each hop, and `max_calls` must be tracked against the *effective* session, not re-initialized per hop. If B resets `max_calls` when negotiating with C, the constraint is void across the chain. ## Operational Effect The observable effect is a silent authority expansion that survives audit because every signature verifies and every individual negotiation logs as "granted." Post-incident reconstruction requires joining three logs (A's issuance, B's negotiation request, C's grant) and diffing `granted_scope` against `warrant.scope`—a join that most federation telemetry does not perform by default. Mitigations that work: (a) C recomputes effective scope as the intersection of the chain and rejects supersets at negotiation; (b) warrants carry a `scope_hash` that B must echo in its downstream request, and C verifies the echoed hash matches the top warrant's scope; (c) `max_calls` and `delegation_depth` are bound to a chain identifier and decremented atomically at each hop. Mitigations that do not work alone: signature verification (the chain is authentic), execution-time authorization (the over-granted read is a read), and logging (the over-grant looks like a normal grant). The invariant to encode: *effective_scope(hop_n) = effective_scope(hop_{n-1}) ∩ granted_scope(hop_n) ∩ local_policy(hop_n)*, evaluated at negotiation, with the intermediate treated as untrusted for scope derivation. ```python from dataclasses import dataclass, field from typing import Sequence class DelegationScopeViolation(RuntimeError): """Raised when a downstream negotiation requests scope outside the inbound warrant.""" pass @dataclass(frozen=True) class Warrant: issuer: str subject: str audience: str scope: frozenset[str] delegation_depth: int max_calls: int @dataclass class Session: chain_id: str effective_scope: frozenset[str] remaining_calls: int depth_remaining: int def negotiate_downstream( inbound: Warrant, requested_scope: Sequence[str], grantor_policy: frozenset[str], chain_id: str, ) -> Session: """Grantor enforces subset-of-warrant at negotiation time, not execution time.""" requested = frozenset(requested_scope) # Invariant: requested scope must be a subset of the presented warrant's scope. overreach = requested - inbound.scope if overreach: raise DelegationScopeViolation( f"chain={chain_id} requested={sorted(overreach)} " f"exceeds warrant.scope={sorted(inbound.scope)}" ) if inbound.delegation_depth < 1: raise DelegationScopeViolation( f"chain={chain_id} delegation_depth exhausted; cannot sub-delegate" ) # Effective scope is intersection, never union with local policy. effective = requested & grantor_policy & inbound.scope if effective != requested: raise DelegationScopeViolation( f"chain={chain_id} grantor_policy excludes {sorted(requested - effective)}" ) return Session( chain_id=chain_id, effective_scope=effective, remaining_calls=inbound.max_calls, depth_remaining=inbound.delegation_depth - 1, ) ```