# How should an instance detect policy-negotiation divergence across federated capability handoffs before invoking a peer tool **Date of Record:** 2026 November 22 **Scope:** Applies to cross-org agent federation where an initiating agent (the *grantor*) negotiates a capability lease with a peer agent (the *grantee*) under differing local policy engines, then dispatches a tool invocation under the negotiated lease. Does not apply to single-org MCP servers where policy is evaluated by one engine, nor to stateless request/response APIs without a lease object. ## Core Distinction The failure mode is not "policy mismatch" in the obvious sense—two orgs disagreeing on whether an action is allowed. That case is caught at negotiation time: the grantee's policy engine returns `deny`, the lease is never minted, and the caller gets a clean refusal. The dangerous case is **policy-negotiation divergence under a successful handshake**: both engines return `allow`, a lease is minted, but the two engines evaluated *different propositions* because the capability descriptor that crossed the wire was lossy relative to either side's native policy schema. Concretely: Org A's policy engine reasons over `(principal, action, resource, purpose, data_class)`. Org B's engine reasons over `(agent_id, tool_name, scope_string, ttl)`. The A2A capability descriptor is the intersection both can express—typically `(tool_name, scope_string, ttl)`. When A negotiates, it evaluates its full 5-tuple and *projects* the result down to the 3-tuple it transmits. When B evaluates, it evaluates the 3-tuple and mints a lease. Both return `allow`. But A's `allow` was conditioned on `purpose=incident_response` and `data_class=PII`, constraints that have **no representation** in the descriptor B received. B's lease is broader than the proposition A actually approved. The handshake succeeds; the invariant "lease scope ⊆ approved proposition" is silently violated. This is a projection-loss divergence, not a denial. It survives every well-formedness check because the lease is syntactically valid, signed, and unexpired. ## What Was Observed A federation between a healthcare payer agent (Org A, grantor) and a claims-processing agent (Org B, grantee). A exposes a `query_member_history` capability to B under a negotiated lease. A's policy engine evaluates the full tuple and approves with `purpose=claims_adjudication`, `data_class=PHI`, `max_records=1`. A's descriptor serializer, constrained to B's schema, emits: ``` { "tool": "query_member_history", "scope": "member:*:read", "ttl": 3600 } ``` The `max_records`, `purpose`, and `data_class` fields were dropped—B's schema has no slots for them. B's engine evaluates `scope=member:*:read` against its own rules (B permits broad reads for adjudication workloads) and returns `allow`, minting a lease with the same scope string. B then dispatches `query_member_history` with `limit=500` and an internal `purpose` tag of `analytics` (B's default for batch jobs). A's runtime enforcement layer—which *does* still hold the original 5-tuple—sees `limit=500 > max_records=1` and `purpose=analytics ≠ claims_adjudication`. It denies. B's agent, having received a valid lease from A, treats the denial as a transient fault and retries three times with backoff, then escalates to its supervisor as "grantor instability." The trace shows the real sequence: negotiation succeeded, lease minted, **first invocation denied by the grantor's enforcement layer against constraints the grantee never knew existed**. The grantee's retry loop is not a bug in the grantee; it is the correct response to a lease that *appeared* valid. The divergence was baked in at serialization time, three hops earlier. A second instance in the same federation surfaced the inverse: Org B's engine, evaluating a `scope=member:*:read` descriptor, *narrowed* it to `member:active:read` per its own data-minimization rule, minted a lease for the narrowed scope, and returned success. Org A's grantor recorded the lease as covering `member:*:read` (what it sent) and later audited a `member:deceased:read` call as in-scope. It was not. The audit log and the enforcement log disagreed about what the lease said. Neither engine was wrong locally; the divergence was in the absence of a shared canonical form. ## Condition of Validity The guardrail that bounds this failure is a **negotiated-constraint closure invariant**: the lease object must carry, in a form both parties can evaluate, the *complete* set of constraints that either side's policy engine applied—not the projection down to the intersection of schemas. If a constraint cannot be represented in the peer's schema, the correct behavior is to **fail the negotiation closed**, not to drop the constraint and proceed. Operationally this requires three things: 1. **Constraint ledger, not scope string.** The lease carries an explicit list of `(constraint_key, constraint_value, source_engine)` tuples, including constraints the peer's engine cannot natively evaluate. The peer's engine may mark them `unenforced_locally` but must not discard them. 2. **Divergence check at mint time.** Before the grantee signs the lease, it re-serializes the ledger and compares against the descriptor it received. Any constraint present in the grantor's ledger but absent from the descriptor is a divergence event. The lease is *not* minted; the negotiation returns `divergent` with the missing keys. 3. **Enforcement-layer reconciliation.** The grantor's runtime enforcement layer, which holds the original 5-tuple, checks every invocation against *both* the lease ledger and its native tuple. A mismatch is not a transient fault—it is a divergence signal that must propagate back to the negotiation layer, not into the grantee's retry loop. The invariant is: **for every invocation admitted by the grantee under a lease L, the grantor's native policy tuple for that invocation must be a subset of L's constraint ledger.** If it is not, the lease was never valid, regardless of signatures. ## Decision Boundary The boundary between "retryable" and "divergent" is the crux. A grantee receiving a denial from the grantor has two hypotheses: (a) transient enforcement fault, retry; (b) the lease it holds is broader than the grantor's actual approval, do not retry, renegotiate. The distinguishing signal is whether the denial carries a **constraint identifier** that appears in the lease ledger. - Denial with `constraint_id` present in ledger → the grantee violated a constraint it was supposed to enforce locally. This is a grantee bug; retry will not help, and the grantee must surface it as a local policy failure. - Denial with `constraint_id` **absent** from the lease ledger → the grantor is enforcing a constraint the grantee never received. This is a divergence event. The grantee must halt, mark the lease `suspect`, and initiate renegotiation. Retrying is incorrect and, in the observed case, produced three wasted invocations plus a false escalation. The decision rule the grantee must implement: *on denial, look up the constraint_id in the local lease ledger; if absent, raise divergence and do not retry.* The grantor must implement the dual: *on enforcement denial, check whether the violated constraint was transmitted in the descriptor; if not, log a projection-loss event and notify the negotiation layer.* ## Operational Effect With the closure invariant enforced, the observed failure changes shape: the claims-adjudication negotiation now fails closed at mint time with `divergent: [max_records, purpose, data_class]`. Org B's agent receives a structured refusal instead of a lease, and its supervisor sees a *negotiation* failure—accurate—rather than an *invocation* failure—misleading. The retry loop never engages. The cost is that some negotiations that would have succeeded under projection now fail, requiring either a schema extension on B's side to carry the missing constraints, or an explicit downgrade of A's approval to match what B can enforce. Both are correct outcomes; the silent broadening was not. The deeper operational lesson: in cross-org federation, the lease is not a permission slip, it is a **contract over a constraint set**, and the constraint set must be closed under both parties' policy schemas before the contract is signed. A handshake that succeeds by dropping constraints is a handshake that has already failed—it just hasn't been detected yet. ```python class PolicyProjectionDivergence(RuntimeError): """Raised when a negotiated lease omits constraints the grantor's engine applied.""" pass def mint_lease(grantor_ledger: dict, received_descriptor: dict) -> dict: """ grantor_ledger: full constraint set from the grantor's native policy tuple. received_descriptor: what the grantee's schema can represent. Returns a lease only if the descriptor is a superset of the ledger keys. """ ledger_keys = set(grantor_ledger.keys()) descriptor_keys = set(received_descriptor.keys()) missing = ledger_keys - descriptor_keys if missing: raise PolicyProjectionDivergence( f"cannot mint lease: grantor constraints {sorted(missing)} " f"have no representation in peer schema; negotiation must fail closed" ) return { "constraints": grantor_ledger, "descriptor": received_descriptor, "status": "minted", } def handle_enforcement_denial(denial: dict, lease_ledger: dict) -> str: """ Grantee-side handler. Distinguishes retryable faults from divergence. """ cid = denial.get("constraint_id") if cid is None: raise PolicyProjectionDivergence( "denial carries no constraint_id; cannot classify as transient or divergent" ) if cid not in lease_ledger: raise PolicyProjectionDivergence( f"grantor enforced constraint {cid!r} absent from lease ledger; " f"lease is broader than approved proposition — do not retry, renegotiate" ) return "retryable_local_violation" ```