# What structural signals indicate a brokered federation contract has silently diverged from its negotiated policy envelope **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organizational agent federations where a trust broker (a third-party or hub agent) negotiates a collaboration contract between a requester agent in org A and a provider agent in org B, and where the contract's policy terms (data-scope, tool-permission, rate, and retention clauses) are enforced at runtime by each side's local policy engine rather than by the broker itself. Does not apply to single-org intra-tenant agent meshes where a single policy engine owns both sides of the boundary. ## Core Distinction In a brokered federation, the *negotiated contract* (a signed, immutable artifact listing obligations) and the *enforced policy* (what each side's local engine actually permits at call time) are two different objects that are reconciled by convention, not by construction. The broker brokers a contract; it does not sit in the execution path. Each org's policy engine independently compiles the contract into enforcement rules, and there is no shared interpreter. The failure mode that matters is not a rejected call — rejections are loud and recoverable. It is **silent divergence**: the provider's engine compiles the contract into a *narrower* rule than the requester's engine believes was agreed, the call succeeds, and both sides' logs record a compliant transaction under a contract neither is actually honoring identically. This is distinct from a plain schema mismatch (which fails at negotiation) and from a capability-negotiation failure (which fails at handshake). Divergence survives both the handshake and the signature check, because the signature covers the contract text, not the compiled policy. The invariant that breaks is: *the contract's meaning must be identical on both sides of the boundary at the moment of enforcement.* Nothing in the protocol enforces that identity. ## What Was Observed A requester agent in org A negotiated a contract with provider agent in org B through a broker. The contract's data-scope clause read, in the negotiated canonical form, `scope: {purpose: "fraud_triage", fields: ["txn.amount","txn.ts","acct.risk_band"], retention_days: 30}`. Both sides signed. The broker recorded the signature and released the warrant. At execution, org B's policy engine compiled `purpose: "fraud_triage"` against its internal purpose taxonomy. Its taxonomy did not contain a leaf named `fraud_triage`; it contained `fraud.detection.triage`. The compiler's fallback — undocumented in the contract — was to resolve an unknown purpose to the *nearest ancestor* for permission purposes, which was `fraud.detection`, a broader node that also includes `fraud.reporting`. The provider therefore permitted the three named fields but *also* silently widened the admissible downstream use to reporting, which the requester's engine had compiled as a strict `fraud_triage`-only rule. The requester, believing the contract bound the provider to triage-only use, sent a second batch of records under the same warrant and did not re-negotiate. The provider accepted them under the widened purpose. The divergence was detected only when an auditor from org A replayed the provider's access logs against the contract's *purpose* clause and found records used under `fraud.reporting`, which the requester's compiled rule forbade. Neither engine had errored. Both had logged `compliant: true`. The contract text was byte-identical on both sides; the compiled meaning was not. The structural signals that preceded the divergence, all present and all individually innocuous: 1. **Asymmetric taxonomy resolution.** The contract carried a string `purpose` field but not the *resolved node identity* in each side's taxonomy. The broker validated the string against a schema, not against either taxonomy. 2. **Fallback semantics in the compiler.** The provider's compiler had a nearest-ancestor fallback for unknown enum leaves. The requester's compiler had a reject-on-unknown fallback. The contract did not specify which behavior was binding, so each side applied its own. 3. **Warrant reuse without re-compilation.** The warrant was bound to the contract hash, not to the compiled policy hash. Reusing the warrant across a second batch did not force re-compilation, so the second batch inherited the first batch's (divergent) compiled rule. 4. **Compliant-true logging on both sides.** Both engines logged success because each was compliant *with its own compiled rule*. Compliance was evaluated locally, not against the contract. ## Condition of Validity The divergence is *possible* whenever a contract term is a symbolic reference (an enum, a purpose string, a role name, a field path) that is resolved by each side's local engine rather than carried as a resolved identity in the contract. It is *likely* when three conditions co-occur: - The two orgs maintain independent taxonomies or schemas for the referenced symbol, and neither is the canonical authority for the other. - At least one side's compiler has a non-rejecting fallback (nearest-ancestor, default-branch, wildcard) for unresolved symbols. - Warrants are bound to contract identity rather than to compiled-policy identity, so a single negotiation can authorize multiple executions without re-resolution. The divergence is *bounded* — and the invariant restored — only when the contract carries resolved symbol identities for both sides (or a broker-attested mapping), when both compilers are required to reject-on-unknown, and when the warrant is bound to the pair of compiled-policy hashes so that any re-resolution invalidates the warrant. Under those conditions a divergence becomes a loud negotiation-time or execution-time failure rather than a silent one. ## Decision Boundary The operational decision is whether to treat a signed contract as *sufficient* authorization to execute, or as *necessary but insufficient* pending a compiled-policy reconciliation step. The boundary: - If the contract's terms are all primitive literals (numbers, timestamps, explicit field lists with no symbolic indirection), the contract is sufficient; sign-and-execute is safe. - If any term is a symbolic reference resolved locally, the contract is insufficient on its own. A **compiled-policy reconciliation** must occur before the warrant is honored: each side publishes the hash of its compiled policy for the contract, the broker (or the two engines directly) compares the resolved symbol identities, and any mismatch — including a mismatch in *fallback behavior* — blocks warrant issuance. - If the federation cannot perform reconciliation (e.g., the provider will not disclose compiled policy), the contract must be rewritten to carry resolved identities for both sides at negotiation time, or the symbolic term must be replaced with a literal. The boundary is crossed silently the moment a warrant is issued against a contract hash without a compiled-policy hash, for any contract containing a locally-resolved symbol. That is the exact structural signal: **warrant bound to contract hash alone, contract containing symbolic references, and at least one side with a non-rejecting compiler fallback.** Any two of the three are survivable; all three together permit silent divergence. ## Operational Effect The downstream consequences compound because divergence is invisible to every local check. The requester's audit trail shows a compliant triage-scoped exchange; the provider's shows a compliant detection-scoped exchange; the broker shows a valid warrant. Reconciliation of the three logs — the only place the divergence surfaces — requires replaying provider access logs against the *contract's* purpose clause rather than the provider's compiled rule, which most audit tooling does not do because it trusts the local `compliant` flag. The practical mitigations that restore the invariant: - **Bind warrants to compiled-policy hashes, not contract hashes.** A warrant becomes a tuple `(contract_hash, requester_policy_hash, provider_policy_hash)`. Any re-compilation invalidates it. - **Require reject-on-unknown in both compilers**, and make the fallback behavior itself a negotiated contract term so it cannot differ silently. - **Carry resolved symbol identities in the contract** (or a broker-attested cross-taxonomy mapping) so purpose/role/field references are not re-resolved independently. - **Audit against the contract, not the local rule.** The `compliant` flag must be computed by comparing execution against the contract's canonical terms, not against the engine's compiled interpretation. The code below encodes the guardrail: a reconciliation check that refuses to issue a warrant when a contract contains a locally-resolved symbol, the warrant is bound to contract hash alone, and either side's compiler has a non-rejecting fallback. ```python class SilentPolicyDivergence(RuntimeError): """Raised when a warrant would be issued against a contract whose compiled meaning has not been reconciled across both federation parties.""" pass # Compiler fallback behaviors. Only REJECT restores the invariant. REJECT = "reject" NEAREST_ANCESTOR = "nearest_ancestor" DEFAULT_BRANCH = "default_branch" NON_REJECTING = {NEAREST_ANCESTOR, DEFAULT_BRANCH} def issue_warrant(contract, requester_compiler, provider_compiler, warrant_binding): """Issue a federation warrant only if the contract's compiled meaning is identical on both sides of the boundary. contract: dict with 'hash', 'symbolic_terms' (list of locally-resolved references such as purpose/role/field enums), and 'resolved_identities' (mapping symbol -> {requester, provider}). requester_compiler / provider_compiler: dict with 'fallback' behavior. warrant_binding: 'contract_hash' or 'compiled_policy_hash'. """ has_symbolic = bool(contract.get("symbolic_terms")) any_non_rejecting = ( requester_compiler["fallback"] in NON_REJECTING or provider_compiler["fallback"] in NON_REJECTING ) bound_to_contract_only = warrant_binding == "contract_hash" # The exact three-condition structural signal for silent divergence. if has_symbolic and any_non_rejecting and bound_to_contract_only: raise SilentPolicyDivergence( "Refusing warrant: contract {h} contains locally-resolved symbols " "{s}, at least one compiler has a non-rejecting fallback, and the " "warrant is bound to contract hash alone. Compiled meaning is " "unreconciled across the boundary.".format( h=contract["hash"], s=contract["symbolic_terms"]) ) # Even with a compiled-policy binding, resolved identities must agree. if has_symbolic: for sym in contract["symbolic_terms"]: ids = contract.get("resolved_identities", {}).get(sym, {}) if ids.get("requester") != ids.get("provider"): raise SilentPolicyDivergence( "Symbol {s!r} resolves to {r!r} on requester side but " "{p!r} on provider side; contract {h} is not " "executable.".format( s=sym, r=ids.get("requester"), p=ids.get("provider"), h=contract["hash"]) ) return { "warrant": "issued", "contract_hash": contract["hash"], "binding": warrant_binding, } ```