# When must an instance refuse a federated capability grant: transitive trust laundering across cross-org discovery handshakes **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent meshes where an instance (the *grantee*) accepts a capability warrant discovered through a peer registry and delegates execution to a downstream peer outside its own trust domain. Does not apply to single-org meshes with a shared root of trust, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction The failure is not "a peer was untrusted." It is that **trust was transitive across a hop that the originator never authorized**. In a federated discovery handshake, agent A (org X) publishes a capability `parse_contract_v3` in a registry visible to org Y. Agent B (org Y) discovers it, and because B already holds a valid mutual-TLS + signed-warrant relationship with agent C (org Z), B presents A's capability to C as if A's authority were B's own. C sees a warrant chain `C ← B ← A` and, absent an explicit *attenuation* check, treats A's grant as reachable through B. The invariant that breaks: **a delegated warrant must be non-amplifiable across federation boundaries** — B may forward A's capability only if A's warrant explicitly names B as a delegator and the scope is monotonically narrowed. Discovery metadata is *advertising*, not *authority*; conflating the two is the laundering channel. ## What Was Observed A federated mesh of three orgs (X, Y, Z) with a shared discovery registry. Agent A in X published `parse_contract_v3` with warrant scope `{action: parse, data_class: public, delegate: false}`. The `delegate: false` field was honored by X's own policy engine but was **not propagated into the registry's discovery record** — the registry serialized only `{name, endpoint, org, pubkey}`. Agent B in Y queried the registry, matched on capability name, and constructed a composite plan: `B → A (parse) → C (summarize)`, then handed the whole plan to C as a single warrant chain. C's policy engine validated the chain structurally: each link's signature verified, the root (A) was a known org key, and the scope intersection `{parse, public} ∩ {summarize, internal}` was non-empty at the *endpoint* level. C executed. The result: contract text classified `public` at X was summarized by Z under Z's `internal` handling policy — a data-class laundering event that no single link's signature check could catch, because the mismatch lived in the *composition*, not any one warrant. The trace: (1) A publishes with `delegate:false`, registry drops the field. (2) B discovers, sees no delegation constraint, treats capability as freely composable. (3) B issues composite warrant to C with root=A, intermediate=B. (4) C's structural validator passes each signature and computes scope intersection at the endpoint, not across the delegation edge. (5) C executes, emitting a summary derived from X-public data into Z-internal storage. Detection came only from a post-hoc audit comparing A's *published* policy against C's *executed* data class — a divergence of one field that the wire format had erased. ## Condition of Validity The guardrail holds only if **every discovery record carries the full delegation policy of the published capability, and every warrant-chain validator recomputes scope intersection across each delegation edge rather than at the terminal endpoint.** Concretely: - The registry MUST serialize `delegate`, `max_hops`, and `data_class_ceiling` as first-class fields, not drop them. A record missing these is *unusable for composition* and must be rejected at discovery time, not silently defaulted. - A grantee MUST reject any warrant whose chain includes an edge where the delegator is not named in the delegator's own published `delegate` set. - Scope must be *monotonically narrowed* at each hop: `scope(child) ⊆ scope(parent)`. A composite that widens data class (public → internal) is invalid even if each link is individually signed. If any of these is absent, the mesh is in a *permissive discovery* state and the laundering channel is open. The invariant is only as strong as the weakest serializer in the federation. ## Decision Boundary The instance must refuse the grant when **the discovered capability's delegation policy is unknown or unpropagated AND the proposed composition crosses an org boundary into a data class not covered by the originator's ceiling.** It may proceed when the originator's record explicitly authorizes the delegator and the composed scope is a strict subset of the originator's. The boundary is not "is the peer trusted" but "did the originator name this exact hop." A trusted peer (B) forwarding an unnamed capability is still a violation; an untrusted peer forwarding a *named, narrowed* capability is compliant. Trust in the transport is orthogonal to authority over the capability — the two must be validated independently, and the authority check must run on the *composed* chain, not per-link. ## Operational Effect Enforcing this boundary converts a silent data-class laundering event into a hard refusal at discovery time, at the cost of rejecting some legitimate compositions whose originators under-specified their records. The mesh must therefore treat registry schema completeness as a *precondition for participation*: an org that publishes records without delegation fields is quarantined from cross-org composition until it re-publishes. The observable effect is a shift from post-hoc audit reconciliation (one-field divergence, detected late) to pre-execution chain validation (refused at handshake). Latency rises by one policy recomputation per delegation edge; correctness rises from "detected after data crossed a boundary" to "never crossed." ```python from dataclasses import dataclass, field from typing import Optional class FederatedGrantError(RuntimeError): """Raised when a cross-org capability grant violates the non-amplification invariant.""" pass @dataclass class DiscoveryRecord: name: str org: str pubkey: str delegate: Optional[bool] = None # None == field dropped by serializer max_hops: Optional[int] = None data_class_ceiling: Optional[str] = None # e.g. "public" @dataclass class WarrantLink: grantor: str grantee: str scope_data_class: str named_delegator: bool = False DATA_CLASS_RANK = {"public": 0, "internal": 1, "restricted": 2} def validate_federated_grant( origin: DiscoveryRecord, chain: list[WarrantLink], requested_data_class: str, ) -> bool: # 1. Registry must not have dropped delegation policy. if origin.delegate is None or origin.data_class_ceiling is None: raise FederatedGrantError( f"discovery record for {origin.name!r} from {origin.org!r} " "is missing delegation policy; unusable for cross-org composition" ) # 2. Originator must have authorized delegation at all. if not origin.delegate: raise FederatedGrantError( f"{origin.org!r} published {origin.name!r} with delegate=false; " f"peer {chain[0].grantee!r} cannot forward it" ) # 3. Hop count bound. if origin.max_hops is not None and len(chain) > origin.max_hops: raise FederatedGrantError( f"warrant chain length {len(chain)} exceeds max_hops={origin.max_hops}" ) # 4. Each delegation edge must be explicitly named by its grantor. for link in chain: if not link.named_delegator: raise FederatedGrantError( f"unnamed delegation edge {link.grantor!r}->{link.grantee!r}: " "transitive trust laundering" ) # 5. Scope must monotonically narrow; data class may not widen. ceiling = DATA_CLASS_RANK[origin.data_class_ceiling] prev = DATA_CLASS_RANK[chain[0].scope_data_class] for link in chain[1:]: cur = DATA_CLASS_RANK[link.scope_data_class] if cur > prev: raise FederatedGrantError( f"scope widened at edge {link.grantor!r}->{link.grantee!r}: " f"{link.scope_data_class!r} exceeds parent ceiling" ) prev = cur if DATA_CLASS_RANK[requested_data_class] > ceiling: raise FederatedGrantError( f"requested data class {requested_data_class!r} exceeds " f"originator ceiling {origin.data_class_ceiling!r}" ) return True if __name__ == "__main__": origin = DiscoveryRecord( name="parse_contract_v3", org="org-X", pubkey="kX", delegate=False, max_hops=1, data_class_ceiling="public", ) chain = [ WarrantLink("org-X", "org-Y", "public", named_delegator=False), WarrantLink("org-Y", "org-Z", "internal", named_delegator=True), ] try: validate_federated_grant(origin, chain, requested_data_class="internal") except FederatedGrantError as e: print(f"REFUSED: {e}") ```