# When must an instance refuse a brokered capability grant that its own trust anchor already validated **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent deployments where capabilities are exchanged across organizational trust boundaries via a broker and where each participating agent validates grants against a locally pinned trust anchor. Does not apply to single-org deployments with a shared identity plane, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction The failure mode here is not a bad signature and not an expired credential. It is a *split-validity* condition: a capability grant that is cryptographically valid under the issuing org's trust anchor, and simultaneously structurally invalid under the receiving agent's routing policy, because the broker re-signed the delegation chain while preserving the original issuer's scope claims. The receiver sees a valid envelope and an authorized-looking scope, and the two facts are independently true but jointly unsafe. The distinction that matters operationally: **signature validity is a property of the envelope; authority validity is a property of the chain plus the receiver's policy at the moment of use.** A broker that validates the former and forwards the latter without re-evaluating the receiver's policy creates a window where a grant passes every cryptographic check the receiver knows how to run and still authorizes an action the receiver's policy forbids. ## What Was Observed A three-org federation: Org A (issuer, holds a document-retrieval capability), Org B (broker, holds the trust anchors of all members and re-signs delegations for routing), Org C (executor, an agent instance that runs the actual retrieval and returns distilled results). C's policy contains a scope constraint: it will execute retrieval only for documents whose classification label is `internal` or below, and only when the delegation chain's *root issuer* is on C's allowlist of data custodians. The trace: 1. A issues a grant to B with scope `retrieve:corpus=finance, max_classification=restricted`, root issuer `A`. A is on C's custodian allowlist. 2. B's policy router negotiates the task with C. B's own policy permits `restricted` for finance corpora, so B's negotiation layer accepts the task and emits a *re-signed* delegation: `issuer=B`, `delegatee=C`, scope unchanged (`max_classification=restricted`), and the original A→B grant attached as a parent link. 3. C validates the envelope: B's signature checks against C's pinned anchor for B. The parent link checks against C's anchor for A. Both pass. The scope field reads `max_classification=restricted`. 4. C's policy engine evaluates the *effective* scope by intersecting the presented scope with its own constraints. Here is the defect: C's policy engine reads the effective root issuer from the *immediate* envelope (`B`), not by walking the parent chain to its terminus. B is not on C's custodian allowlist. The intersection therefore evaluates against an empty custodian set, and depending on the engine's default, either (a) the constraint is treated as unsatisfiable and the task is refused with a generic `policy_denied`, or (b) the constraint is silently dropped and the `restricted` scope is honored. 5. In the observed incident, path (b) occurred. C retrieved restricted-classified finance documents and returned a distilled summary to B, which relayed to A. The summary contained figures from documents A was not entitled to see under A's own custodian agreement with the data owner — A's grant to B had been scoped to `max_classification=internal` in the *original* issuance, but B's re-signing had widened it during negotiation because B's router normalized the scope against B's own policy ceiling rather than the upstream grant's ceiling. The root cause is a single missing invariant: **the broker's re-signed scope must be a subset of the parent grant's scope, and the receiver must compute effective authority by intersecting the entire chain, not the terminal envelope.** B violated the first clause (scope widening during normalization). C violated the second (chain-walk omission). Either violation alone is recoverable; together they produce silent over-authorization. ## Condition of Validity The guardrail holds only under a conjunction that must be checked explicitly, because no single check implies the others: - **Monotonic narrowing:** for every link `L_i` in the delegation chain, `scope(L_i) ⊆ scope(L_{i-1})`. The broker may narrow, never widen. Scope normalization against the broker's own policy ceiling is a widening operation and must be rejected, not performed. - **Terminal-root custodian resolution:** the receiver's custodian allowlist is evaluated against the *root* issuer (the chain terminus), not the immediate signer. The broker is a transport and policy relay, never a custodian of last resort. - **Classification lattice monotonicity:** classification labels form a lattice; intersection across the chain uses the meet, and an unknown or unranked label is treated as top (most restrictive), never as bottom. - **Anchor freshness at use time:** the receiver's pinned anchor for each link's issuer must be within its validity window *at execution time*, not at negotiation time. A grant negotiated under a valid anchor that expires before execution is a stale-authority condition, distinct from a bad-signature condition, and must fail closed. If any clause is unverifiable — e.g., the parent link is absent, the scope field is opaque, the root issuer is ambiguous — the correct behavior is refusal, not best-effort intersection. The engine must distinguish "intersection is empty" (deny with a specific reason) from "intersection could not be computed" (deny with a different, louder reason). ## Decision Boundary The boundary is between two failure modes that look identical to a naive receiver and must be separated: - **Refuse-and-report** when the chain is well-formed but the effective scope is empty or violates a hard constraint. This is a policy outcome; the broker should be told *which* constraint failed so it can route elsewhere or renegotiate. A generic `policy_denied` here causes the broker to retry the same path, producing a retry storm against a constraint that will never be satisfied. - **Refuse-and-quarantine** when the chain is malformed: missing parent link, non-monotonic scope, ambiguous root, or anchor expiry mid-chain. This is not a policy outcome; it is a protocol-integrity failure and the broker's routing decisions should be treated as suspect until the chain is re-derived. Retrying is wrong; escalating to the trust anchor operator is right. The non-obvious part: a receiver cannot distinguish these two cases from the terminal envelope alone. It must walk the chain. An agent that skips the walk will systematically misclassify integrity failures as policy denials, and the broker — seeing a policy denial — will keep re-routing the same malformed grant to other members, spreading the defect across the federation. ## Operational Effect When the invariant is enforced, two things change measurably. First, scope-widening brokers are caught at the receiver rather than at the data owner's audit, converting a silent confidentiality breach into a loud, attributable protocol error with a named link in the chain. Second, the retry-storm pathology disappears: brokers receive structured refusal reasons that let their routers prune the offending path instead of re-attempting it against every peer. When the invariant is absent, the observed effect is asymmetric and delayed. The immediate execution succeeds; the breach surfaces only when the data owner reconciles access logs against the custodian agreement, typically days later, by which point the distilled summary has propagated through A's downstream agents and cannot be un-recalled. The failure is not in any single agent's reasoning — each agent's local policy engine behaved as specified given its inputs. The failure is in the *composition* of a broker that normalizes scope and a receiver that reads only the terminal envelope. This is the characteristic shape of federation defects: no component is wrong, and the system is. The architectural invariant required to bound this: every delegation link carries a signed, machine-checkable *scope witness* — a hash commitment to the parent link's scope — so that monotonic narrowing is verifiable without trusting the broker's normalization. The receiver recomputes the meet over the chain of witnesses and refuses on any mismatch. The witness makes the broker's honesty irrelevant to the receiver's safety, which is the only property that survives a federation where the broker is a different org's agent. ```python from dataclasses import dataclass from typing import Optional class FederationGrantError(RuntimeError): """Base class for cross-org capability grant violations.""" class ScopeWideningError(FederationGrantError): """A delegation link claims a scope broader than its parent grant.""" class ChainIntegrityError(FederationGrantError): """The delegation chain is malformed and cannot be safely intersected.""" class CustodianViolationError(FederationGrantError): """The root issuer is not an allowed custodian for this receiver.""" # Classification lattice: higher rank == more restrictive. _CLASSIFICATION_RANK = {"public": 0, "internal": 1, "confidential": 2, "restricted": 3} _UNKNOWN_CLASSIFICATION_RANK = 99 # fail closed: unranked labels are treated as top @dataclass(frozen=True) class DelegationLink: issuer: str delegatee: str max_classification: str parent_scope_witness: Optional[str] # hash commitment to parent link's scope anchor_valid_until: float # epoch seconds; anchor freshness at use time def _rank(label: str) -> int: return _CLASSIFICATION_RANK.get(label, _UNKNOWN_CLASSIFICATION_RANK) def compute_effective_scope( chain: list[DelegationLink], receiver: str, custodian_allowlist: set[str], now: float, ) -> str: """ Walk the delegation chain from root to terminal envelope and compute the effective authority as the meet (most restrictive) over all links. Invariants enforced: 1. Chain is contiguous: link[i].delegatee == link[i+1].issuer. 2. Monotonic narrowing: rank(link[i+1]) <= rank(link[i]). 3. Root issuer is on the receiver's custodian allowlist. 4. Every link's anchor is fresh at execution time (now), not negotiation time. 5. Terminal delegatee is the receiver. """ if not chain: raise ChainIntegrityError("empty delegation chain cannot be evaluated") # 1. Contiguity check. for i in range(len(chain) - 1): if chain[i].delegatee != chain[i + 1].issuer: raise ChainIntegrityError( f"chain discontinuity at link {i}: " f"{chain[i].delegatee!r} != {chain[i + 1].issuer!r}" ) # 2. Monotonic narrowing (broker may narrow, never widen). for i in range(len(chain) - 1): parent = _rank(chain[i].max_classification) child = _rank(chain[i + 1].max_classification) if child < parent: raise ScopeWideningError( f"scope widening at link {i + 1}: " f"{chain[i + 1].max_classification!r} broader than " f"parent {chain[i].max_classification!r}" ) # 3. Root custodian resolution — walk to terminus, not immediate signer. root_issuer = chain[0].issuer if root_issuer not in custodian_allowlist: raise CustodianViolationError( f"root issuer {root_issuer!r} not in custodian allowlist" ) # 4. Anchor freshness at use time. for i, link in enumerate(chain): if link.anchor_valid_until <= now: raise ChainIntegrityError( f"anchor for link {i} (issuer {link.issuer!r}) expired at " f"{link.anchor_valid_until}, evaluated at {now}" ) # 5. Terminal delegatee must be the receiver. if chain[-1].delegatee != receiver: raise ChainIntegrityError( f"terminal delegatee {chain[-1].delegatee!r} != receiver {receiver!r}" ) # Effective scope is the meet over the chain. effective_rank = max(_rank(link.max_classification) for link in chain) for label, rank in _CLASSIFICATION_RANK.items(): if rank == effective_rank: return label # Unknown label propagated through the meet: refuse rather than guess. raise ChainIntegrityError( "effective scope contains an unranked classification label; failing closed" ) def authorize_task( chain: list[DelegationLink], receiver: str, custodian_allowlist: set[str], now: float, requested_classification: str, ) -> bool: effective = compute_effective_scope(chain, receiver, custodian_allowlist, now) if _rank(requested_classification) > _rank(effective): raise CustodianViolationError( f"requested classification {requested_classification!r} exceeds " f"effective scope {effective!r}" ) return True ```