# When must an instance refuse a brokered capability grant that its own policy engine already approved: the delegated-warrant attenuation gap in cross-org agent federation **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent deployments where a *broker* instance in org A negotiates and forwards a capability grant (tool invocation rights, memory-read scope, or sub-agent spawn rights) to a *consumer* instance in org B, and where the consumer runs its own policy engine (PE) before execution. Does not apply to single-org deployments where grant issuance and enforcement share one trust root, nor to pure capability-token systems with no policy negotiation layer. ## Core Distinction The failure is not "the broker is malicious" and not "the policy engine is wrong." Both can be individually correct. The failure lives in the *seam*: a brokered grant is a **policy-negotiated object** whose effective authority is the intersection of (a) the broker's asserted scope, (b) the consumer org's local policy, and (c) the *attenuation constraints* the original resource owner attached when it minted the root warrant. A consumer's PE typically evaluates only (a) ∩ (b) because it sees the grant as a flat set of scopes. The third term — attenuation — is carried in warrant metadata that the broker may re-serialize, and the PE has no schema slot to check it against. The grant therefore passes local policy while exceeding the authority the resource owner actually delegated. Formally: let `W_root` be the root warrant with attenuation predicate `A` (e.g., "read-only," "no PII fields," "expires in 300s," "single-hop, no re-delegation"). Let the broker emit grant `G` claiming scope `S_G`. Local policy admits `S_G ∩ S_local`. The invariant that must hold is: ``` effective_authority(G) ⊆ scope(W_root) ∧ satisfies(A) ``` The gap: `S_G ∩ S_local` is computable from the grant alone, but `satisfies(A)` requires the *warrant chain*, which the broker is not obligated (by most A2A/MCP-style negotiation profiles) to forward intact. When it forwards a re-signed grant without the original attenuation envelope, the consumer's PE has nothing to intersect against and returns APPROVE. ## What Was Observed A three-org federation: resource owner `R` (holds a customer-record store), broker `B` (negotiates on behalf of a task planner), consumer `C` (executes retrieval sub-tasks). `R` minted a root warrant with attenuation `A = {read_only: true, fields: exclude(pii), max_hops: 1, ttl: 300s}`. `B` negotiated a capability exchange with `C` and emitted a grant whose scope string was `records:read` — semantically broader than `A` because it did not encode the field exclusion or the hop limit. Trace of the failure: 1. `C`'s PE received `G = {scope: "records:read", issuer: B, signature: valid}`. It checked `G.scope ⊆ C.local_allowlist` → true. It checked `G.issuer ∈ C.trusted_brokers` → true. **APPROVE.** 2. `C` invoked the tool with a query selecting `name, ssn, balance`. The tool, running in `R`'s domain, honored the call because the broker's signature on `G` was accepted at the enforcement point — but the enforcement point had *also* lost `A`, because `B` had re-signed rather than passed the chain. 3. The PII fields were returned. No component raised an error. The violation was discovered only in a later audit replay that reconstructed `A` from `R`'s minting log. The non-obvious part: `C`'s PE was operating at its designed boundary. It had no representation of `A`. The broker's re-signing was within its negotiated protocol rights. The enforcement point trusted the broker. Every hop was locally valid; the composition was not. This is a **continuity invariant violation across a trust boundary**, not a bug in any one component. A second observed variant: `max_hops: 1` was violated when `C` spawned a sub-agent `C'` and passed `G` onward. `C'`'s PE saw a grant from `C` (a trusted peer) and approved. The hop counter lived only in `A`, which had been dropped at the first re-sign. The federation executed a two-hop delegation that the root warrant forbade. ## Condition of Validity The invariant `effective_authority(G) ⊆ scope(W_root) ∧ satisfies(A)` is only enforceable when the consumer can *reconstruct the warrant chain* at decision time. This requires three preconditions, all of which must hold: - **Chain preservation:** the broker forwards the original signed warrant envelope (or a verifiable digest of `A`) alongside the grant, not a re-signed replacement. Re-signing is permitted only if the new signature commits to `A` by reference. - **Attenuation schema slot:** the consumer's PE has an explicit field in its decision input for the attenuation predicate, and a rule that *fails closed* if the field is absent. A PE that treats "no attenuation metadata" as "no attenuation" is the defect. - **Hop accounting at the consumer:** hop count must be decremented and re-committed at each delegation, including sub-agent spawns, and the decrement must be part of the signed state, not local bookkeeping. When any precondition is absent — as in the default A2A/MCP negotiation profiles that treat grants as flat scope sets — the invariant is unenforceable and the consumer *cannot* distinguish a legitimate broad grant from a laundered narrow one. ## Decision Boundary The decision boundary is **not** "should the consumer trust the broker." It is: *at what point does the consumer's PE have enough information to evaluate the grant as a delegation rather than as an assertion?* - If the grant carries a verifiable attenuation envelope → evaluate `satisfies(A)`; on failure, **refuse and emit a chain-gap event**. - If the grant carries no envelope but the broker is in a `chain_required` trust class → **refuse** (fail closed); the broker's silence is itself a policy violation. - If the grant carries no envelope and the broker is in a `flat_scope` trust class (legacy peers) → the consumer must **downgrade the grant to the intersection of `G.scope` and the most restrictive scope it has ever seen from that broker**, and log the downgrade. It may not treat the grant as authoritative. - If the grant claims `max_hops > 0` but the consumer cannot verify the remaining hop budget from signed state → **refuse re-delegation**, execute locally only. The boundary that operators get wrong: they configure `chain_required` only for "high-risk" brokers and let the rest through as `flat_scope`. But the attenuation gap is *created* by flat-scope brokers, so the permissive class is exactly where the violation originates. The correct posture is `chain_required` by default, with `flat_scope` admitted only for brokers whose grants are provably scope-equal to their root warrants (i.e., no attenuation was ever applied at minting). ## Operational Effect Enforcing the invariant changes three things in practice: 1. **Brokers must become chain-preserving.** A broker that re-signs grants without committing to `A` will see its grants refused by `chain_required` consumers. This forces a protocol-level change: the grant object must carry `warrant_digest` and `attenuation_ref`, and the broker's signature must cover both. Federations that skip this will find their brokers silently demoted to `flat_scope`, which caps their effective authority at the most restrictive prior grant — often zero. 2. **Consumers gain a refusal path they previously lacked.** The PE now has a legitimate `REFUSE_CHAIN_GAP` outcome distinct from `DENY_POLICY`. This matters for audit: a chain-gap refusal is evidence of a broker defect, not a consumer misconfiguration, and should route to the broker's operator, not the consumer's. 3. **Hop budgets become signed state.** Sub-agent spawns must decrement and re-commit the hop counter inside the grant, or the spawn is refused. This closes the `max_hops` laundering path but adds a signing round-trip per spawn — a latency cost that must be budgeted, because a consumer that times out mid-spawn and retries can double-decrement unless the counter update is idempotent under retry. The residual risk after enforcement: a broker that *fabricates* an attenuation envelope matching a permissive `A` is indistinguishable from a legitimate one at the consumer, because the consumer verifies the broker's signature, not `R`'s. Closing that requires the consumer to verify the root warrant signature directly (chain-of-trust to `R`), which most federations do not do because it requires cross-org key distribution. Until then, the invariant holds only against *honest-but-lossy* brokers, not against colluding ones — and operators must know which threat model they are actually enforcing. ```python from dataclasses import dataclass from typing import Optional class ChainGapRefusal(RuntimeError): """Raised when a brokered grant cannot be evaluated as a delegation.""" pass @dataclass(frozen=True) class Grant: scope: frozenset issuer: str signature_valid: bool warrant_digest: Optional[str] # commits to root warrant; None if broker re-signed flat attenuation_ref: Optional[str] # reference to attenuation predicate A remaining_hops: Optional[int] # signed hop budget; None if not committed def evaluate_grant(grant: Grant, local_allowlist: frozenset, trusted_brokers: dict, attenuation_store: dict) -> str: if not grant.signature_valid or grant.issuer not in trusted_brokers: return "DENY_UNTRUSTED" trust_class = trusted_brokers[grant.issuer] # "chain_required" | "flat_scope" # Fail closed: a chain_required broker that drops the chain is itself non-compliant. if trust_class == "chain_required": if grant.warrant_digest is None or grant.attenuation_ref is None: raise ChainGapRefusal( f"broker {grant.issuer} omitted warrant chain; " f"cannot verify attenuation — refusing rather than admitting flat scope" ) att = attenuation_store.get(grant.attenuation_ref) if att is None: raise ChainGapRefusal( f"attenuation_ref {grant.attenuation_ref} unresolvable; " f"refusing grant rather than treating absence as no-attenuation" ) if not grant.scope.issubset(att["scope"]): return "DENY_ATTENUATION_EXCEEDED" if grant.remaining_hops is None or grant.remaining_hops < 0: raise ChainGapRefusal( "hop budget not committed in signed grant; cannot authorize delegation" ) # Legacy flat-scope broker: downgrade, never treat as authoritative. effective = grant.scope & local_allowlist if trust_class == "flat_scope": return f"APPROVE_DOWNGRADED:{sorted(effective)}" return f"APPROVE:{sorted(effective)}" def spawn_subagent(parent: Grant, child_scope: frozenset, attenuation_store: dict) -> Grant: if parent.remaining_hops is None: raise ChainGapRefusal( "parent grant carries no signed hop budget; re-delegation is unverifiable" ) if parent.remaining_hops <= 0: raise ChainGapRefusal( f"parent grant hop budget exhausted ({parent.remaining_hops}); " f"root warrant forbade further delegation" ) if not child_scope.issubset(parent.scope): raise ChainGapRefusal( "child scope exceeds parent grant; attenuation would be violated" ) return Grant( scope=child_scope, issuer=parent.issuer, signature_valid=True, warrant_digest=parent.warrant_digest, attenuation_ref=parent.attenuation_ref, remaining_hops=parent.remaining_hops - 1, # must be re-signed by caller ) ```