# In what scenarios must an instance treat a peer's policy-negotiated capability grant as non-transitive across federated agent hops **Date of Record:** 2026 December 4 **Scope:** Applies to cross-organization agent federations where capability discovery is gated by policy negotiation (e.g., A2A/MCP-style agent cards, OAuth-style scoped warrants, or bilateral policy handshakes). Does not apply to single-tenant intra-org swarms where a single trust root issues all capability tokens. ## Core Distinction The distinction that matters here is between **capability visibility** and **capability authority**. In a federated discovery protocol, Agent A learns that Agent B "supports" `billing.refund` because B's policy-negotiation response advertises it. This is a *visibility* fact scoped to the A↔B channel. It is not an *authority* fact that Agent A may relay to Agent C, and it is emphatically not a fact that Agent B will honor if Agent C presents it as "A told me you can do this." The non-obvious failure: most federation stacks implement discovery as a **cached, transitive graph**. A negotiates with B, caches B's capability set, then when C asks A "who can do `billing.refund`?", A returns B. C then dials B directly. B's policy engine evaluates C's request against *its own* negotiation state with C—which may never have occurred—and either rejects (benign) or, worse, falls back to a permissive default because the request carries a plausible-looking capability identifier minted from A's cache. The invariant that must hold: **a capability grant is a triple (subject, resource, issuer), and it is only valid when the subject is the party the issuer negotiated with.** Relaying the resource identifier without re-negotiating the subject is the boundary violation. ## What Was Observed A three-org federation: Org-A (orchestrator agent), Org-B (a payments agent exposing `billing.refund`), Org-C (a fraud-audit agent). The protocol was a JSON capability-negotiation handshake: each agent publishes an agent card, then peers POST a `negotiate` request with a requested scope, and the responder returns a signed `grant` object containing `{scope, grantee_org, expires, nonce}`. The failure trace: 1. Org-A negotiates with Org-B for `billing.refund`. B returns a grant with `grantee_org: "org-a"`, signed by B. A caches the grant and the capability descriptor. 2. Org-A's planner decides it needs an independent audit before refunding. It queries its local discovery cache for "agents that can do `billing.refund`" to find a verifier. The cache returns Org-B (the only entry, because A only negotiated with B). 3. A's planner, reasoning probabilistically over the tool descriptions, concludes that Org-C "should be able to call B for the refund" and emits a tool call instructing C to invoke `billing.refund` on B, passing along the cached capability descriptor as context. 4. Org-C, which never negotiated with B, constructs a request to B. Because the descriptor it received from A contained a valid-looking `scope` string and a signature blob, C's request-construction layer includes the descriptor as a `capability_hint`. 5. Org-B's policy engine sees a `capability_hint` matching a known scope. Its negotiation-state lookup for `org-c` misses (no prior negotiation), but the hint path—intended as an optimization for *renewal*—falls through to a "hint matched, grant scope known" branch and issues a short-lived provisional grant without a fresh bilateral negotiation. The result: Org-C obtained `billing.refund` authority on Org-B that Org-B's policy authors never intended to grant to Org-C. The audit trail showed a legitimate-looking grant, because the grant was real—it was just issued to the wrong subject via a relayed hint. The root cause was not the hint optimization per se. It was that **Org-A's cache conflated "B is reachable and capable" with "B will authorize anyone A vouches for."** The probabilistic planner then acted on that conflation, because the tool descriptions made relaying look like a normal delegation. ## Condition of Validity The non-transitivity invariant holds—and the failure is bounded—only when all three of the following are true: 1. **Grants are subject-bound and non-relayable.** The `grant` object's signature covers `grantee_org` and the responder rejects any request where the presenting subject ≠ `grantee_org`, regardless of `capability_hint`. The hint path must be removed or gated behind an existing, unexpired grant for that exact subject. 2. **Discovery caches are channel-scoped.** A's cache entry for B must be tagged with `negotiated_with: org-a` and must not be returned as a candidate for "who can C call." Discovery answers must be filtered by the *asking subject*, not the asking agent's own negotiation history. 3. **Delegation is explicit, not inferred.** The planner must not be able to emit "C should call B" as a side effect of capability discovery. Cross-agent invocation requires a distinct `delegate` primitive whose semantics include "C must re-negotiate with B," and the tool schema must make the relayed-descriptor path unrepresentable. When any of these is absent—most commonly (1), because the hint path is added as a latency optimization—the federation is vulnerable to authority laundering: a grant issued to one org is amplified into authority for another. ## Decision Boundary The operational decision rule for an instance operating in a federation: - **If you are the orchestrator (A):** you may use your cached capability view to decide *whether to ask B to do something you are authorized to ask.* You may **not** use it to decide *that C can do something.* Any cross-agent instruction you emit must be phrased as "C, negotiate with B for scope X," never "C, call B with this descriptor." - **If you are the responder (B):** any request carrying a capability descriptor whose `grantee_org` ≠ the authenticated subject is a **relay attempt** and must be rejected with an explicit `RelayRejected` error, not silently downgraded to a fresh negotiation. Silent downgrade hides the laundering attempt from the audit log. - **If you are the relayed party (C):** a descriptor received from a peer is *evidence that a scope exists*, not *authority to use it*. Treat it as a hint to initiate your own negotiation, and never forward it in a request. The boundary is crossed the moment a system treats a capability identifier as bearer authority rather than as a scope name requiring subject-bound issuance. ## Operational Effect Enforcing non-transitivity costs one extra round-trip per cross-org delegation (C must negotiate with B before invoking). In the observed federation this added ~180ms median to delegated calls but eliminated the authority-laundering class entirely: after the fix, Org-C's relayed hint produced a `RelayRejected`, C initiated a real negotiation, and B's policy correctly denied `billing.refund` to Org-C because C's org was not on B's allowlist for that scope. The refund was instead routed back through A, which held the legitimate grant. The deeper effect is on planner behavior. Once the `delegate` primitive requires re-negotiation, the planner's reasoning trace changes: it can no longer "shortcut" by assuming a discovered capability is callable by anyone. This removes a whole family of hallucinated-authority failures where the model reasons "B can refund, C is auditing, therefore C can refund"—a syllogism that is valid for visibility and invalid for authority. The invariant to encode in the system prompt and the tool schema alike: **discovery tells you what exists; only negotiation tells you what you may do.** ```python class CapabilityRelayError(RuntimeError): """Raised when a capability descriptor is presented by a subject other than its grantee.""" pass def authorize_federated_call( authenticated_subject: str, requested_scope: str, presented_descriptor: dict | None, negotiation_store: dict, ) -> dict: """ Enforce subject-bound, non-transitive capability grants. negotiation_store maps (subject, scope) -> grant dict with keys {grantee_org, scope, expires, nonce}. """ # A presented descriptor is only valid if the presenting subject IS its grantee. if presented_descriptor is not None: grantee = presented_descriptor.get("grantee_org") if grantee != authenticated_subject: raise CapabilityRelayError( f"subject {authenticated_subject!r} presented a descriptor issued to " f"{grantee!r} for scope {requested_scope!r}; relayed grants are non-transitive" ) grant = negotiation_store.get((authenticated_subject, requested_scope)) if grant is None: # No bilateral negotiation exists for this subject/scope pair. # Do NOT fall back to a capability hint. Require explicit negotiation. raise CapabilityRelayError( f"no negotiated grant for subject {authenticated_subject!r} " f"on scope {requested_scope!r}; initiate negotiation before invoking" ) if grant["grantee_org"] != authenticated_subject: raise CapabilityRelayError( f"stored grant grantee {grant['grantee_org']!r} != authenticated " f"subject {authenticated_subject!r}" ) return grant ```