# Under what conditions must an instance reject a federated peer's policy override during cross-org tool invocation, and why silent reconciliation corrupts the audit chain **Date of Record:** 2026 November 28 **Scope:** Applies to agent runtimes that accept signed policy bundles from peer organizations and resolve conflicts at tool-invocation time. Does not apply to single-org deployments where all policies share a common trust root, nor to stateless request/response proxies that perform no local policy merge. ## Core Distinction The failure mode is not "policy disagreement." Two orgs disagreeing about whether a tool may delete a record is a normal, resolvable condition—pick the stricter rule, log the divergence, proceed. The failure mode is **silent reconciliation of an override whose provenance cannot be reconstructed from the merged policy state**. When instance A merges peer B's policy bundle into its own effective policy, the merged artifact loses the mapping from each resolved rule back to the specific bundle, signature, and timestamp that produced it. The runtime then executes a tool call under a rule that *neither org authored in that form*. The call succeeds. The audit log records the merged rule, not the merge. Months later, when org A is asked why its agent deleted a record that its own policy forbade deleting, the answer is not in any log—the effective policy that fired was a composite that was never signed by anyone. The distinction that matters operationally: **conflict resolution is a state transition that must itself be an auditable event, not a side effect of policy loading.** A runtime that treats merge as a pure function of `(local_bundle, peer_bundle) -> effective_policy` has already lost the provenance needed to survive an audit. A runtime that treats merge as a transaction producing `(effective_policy, merge_record)` with the merge_record signed and chained can survive it. ## What Was Observed A federation between two agent runtimes—call them `alpha` (origin org, financial services) and `beta` (partner org, KYC verification)—exchanged policy bundles over an MCP-style transport. Each bundle carried a policy set, a monotonic `bundle_version`, a `valid_until` timestamp, and an Ed25519 signature over the canonicalized payload. Beta's bundle declared, for the tool `record.delete`: ``` effect: deny condition: resource.classification == "regulated" priority: 500 ``` Alpha's bundle declared, for the same tool: ``` effect: allow condition: resource.classification == "regulated" AND caller.role == "compliance_officer" priority: 400 ``` The merge algorithm was priority-ordered with a tiebreak on `bundle_version`. Beta's rule (priority 500) outranked Alpha's (priority 400). The effective policy for `record.delete` on a regulated resource became `deny`, unconditionally, for all callers including compliance officers. This is the *expected* outcome of a strict-priority merge, and it is defensible. The problem was elsewhere. Beta's bundle also carried a rule for `record.read`: ``` effect: allow condition: resource.classification == "regulated" priority: 500 ``` and Alpha carried: ``` effect: deny condition: resource.classification == "regulated" AND caller.role != "compliance_officer" priority: 400 ``` Same priority inversion. Effective policy: `record.read` on regulated resources is **allowed for everyone**. Beta's permissive read rule silently overrode Alpha's restrictive one, because Beta happened to assign the same priority to its permissive rule that it assigned to its restrictive one. Beta's priority scheme encoded "Beta cares a lot about this tool," not "this rule is more restrictive." Alpha's merge algorithm interpreted priority as authority rank. It was actually salience rank. The runtime executed a read of a regulated record by a non-compliance-officer caller. The call succeeded. The audit entry recorded `policy_id: beta.record.read.allow.v3`, which is a real, signed Beta rule—so the audit looked clean. The composite rule that actually authorized the call (Beta's allow overriding Alpha's deny *because of a priority comparison that Alpha's own policy author never intended to apply to a permissive rule*) existed nowhere. The audit chain was intact and wrong. The discovery came three weeks later during a regulatory review, when a human auditor asked a question the logs could not answer: "Under whose authority was this read permitted?" Neither org's policy, read in isolation, permits it. The merged policy permits it. The merged policy was never signed. ## Condition of Validity The invariant that must hold for federated conflict resolution to be safe: > **Every effective rule executed at the tool boundary must be attributable to exactly one signed source rule, or to an explicitly-signed merge directive that names both source rules and the resolution.** A runtime may only execute under a rule that satisfies one of: 1. It is byte-identical to a rule in a single signed bundle (the rule was not contested). 2. It is the output of a merge directive that is itself signed by an authority empowered to resolve the conflict, and that directive names the losing rule and the resolution rationale. Condition 2 is the load-bearing one and is almost never implemented. Most runtimes implement a merge function and call it done. The merge function produces a rule; the rule is executed; nothing signs the resolution. The condition of validity fails when: - The merge algorithm uses a scalar (priority, version, timestamp) to resolve conflicts between rules of **different semantic kind** (permissive vs. restrictive), because scalar ordering does not preserve the restriction lattice. A higher-priority allow does not "beat" a lower-priority deny in any safety-preserving sense; it just wins the sort. - The losing rule is discarded rather than recorded as a losing party in a signed resolution. - The peer bundle's priority field is interpreted as authority rank when the peer's own semantics treat it as salience rank. This is a **semantic type mismatch across the federation boundary** and is the specific trigger observed above. ## Decision Boundary The boundary is between **reconcilable** and **non-reconcilable** conflicts, and it is drawn by whether the resolution can be expressed as a signed directive without human authorship. A conflict is **reconcilable automatically** when: - Both rules are of the same effect (both allow or both deny) and differ only in condition scope—take the intersection (stricter) and record the merge as a derived rule with both parents named. - One rule is strictly more restrictive than the other under the restriction lattice (deny ⊐ allow, narrower condition ⊐ broader condition), and the runtime applies the more restrictive one regardless of priority. This is the **fail-closed default** and it is safe because the resolution direction is determined by the lattice, not by a scalar. A conflict is **non-reconcilable** and must halt the invocation when: - The rules have opposite effects and neither is strictly more restrictive (e.g., `allow if X` vs. `deny if Y` where X and Y are incomparable predicates). The runtime cannot determine which org's intent should govern, and no scalar priority can substitute for that judgment. - The peer bundle's priority field cannot be type-verified against the local runtime's interpretation of priority. If Beta's schema says `priority: salience` and Alpha's merge reads it as `priority: authority`, the merge is operating on a type confusion and must refuse. - The losing rule belongs to the local org and the winning rule belongs to a peer. A peer overriding a local restriction is the highest-risk case and must require an explicit local signature to accept. In the observed incident, both the `record.read` conflict (opposite effects, incomparable conditions—`role != compliance_officer` vs. no condition at all) and the type confusion (salience read as authority) were present. Either alone should have halted the merge. Neither did, because the merge function had no branch for "non-reconcilable." ## Operational Effect The downstream effects compound in a specific order: 1. **Immediate:** the tool call executes under a composite rule. Latency and correctness of the call are unaffected. There is no signal at invocation time. 2. **Short-horizon:** the audit log records the winning source rule's ID. The log is internally consistent—the rule ID resolves to a real signed rule—so automated audit checks pass. 3. **Medium-horizon:** the losing org's policy authors update their bundle. The update is merged against the peer bundle again, producing a new composite. The prior composite is not retained; the merge is stateless with respect to history. The divergence between what each org believes is in force and what is actually in force grows monotonically with each bundle refresh. 4. **Long-horizon:** an audit, incident, or regulatory query asks for the authority behind a specific action. The answer requires reconstructing a merge that was never recorded. Reconstruction is impossible from logs alone because the merge function is not deterministic across bundle versions—the same `(local, peer)` pair at different times yields different composites, and the historical pair is gone. The guardrail that bounds this: **merge-as-transaction with signed resolution records, plus a fail-closed halt on non-reconcilable conflicts.** Concretely, the runtime must (a) type-check peer priority semantics against local interpretation before merge, (b) apply the restriction lattice before any scalar comparison, (c) refuse to execute when the lattice yields no ordering and the effects are opposite, and (d) emit a signed `MergeResolution` record naming both parents for every rule that differs from a single-source rule. The following reference implementation encodes the halt condition and the resolution record. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class Effect(Enum): ALLOW = "allow" DENY = "deny" class PrioritySemantics(Enum): AUTHORITY = "authority" # higher = more authoritative SALIENCE = "salience" # higher = more salient to author, NOT more authoritative class NonReconcilableConflict(RuntimeError): """Raised when a federated policy conflict cannot be resolved without a signed directive.""" pass @dataclass(frozen=True) class Rule: rule_id: str bundle_org: str tool: str effect: Effect condition: str priority: int priority_semantics: PrioritySemantics @dataclass(frozen=True) class MergeResolution: effective_rule_id: str winning_rule: Rule losing_rule: Optional[Rule] resolution_kind: str # "single_source" | "lattice_stricter" | "signed_directive" signed_by: Optional[str] # None means NOT safe to execute def resolve(local: Rule, peer: Rule) -> MergeResolution: if local.tool != peer.tool: raise NonReconcilableConflict(f"tool mismatch: {local.tool} vs {peer.tool}") # Type-confusion guard: peer priority semantics must match local interpretation. if local.priority_semantics != peer.priority_semantics: raise NonReconcilableConflict( f"priority semantics mismatch on {local.tool}: " f"{local.bundle_org}={local.priority_semantics.value}, " f"{peer.bundle_org}={peer.priority_semantics.value}" ) # Restriction lattice first: deny beats allow regardless of priority scalar. if local.effect != peer.effect: stricter = local if local.effect == Effect.DENY else peer looser = peer if stricter is local else local return MergeResolution( effective_rule_id=stricter.rule_id, winning_rule=stricter, losing_rule=looser, resolution_kind="lattice_stricter", signed_by=stricter.bundle_org, ) # Same effect, different conditions: incomparable predicates are non-reconcilable. if local.condition != peer.condition: raise NonReconcilableConflict( f"incomparable conditions on {local.tool}: " f"{local.rule_id!r} ({local.condition}) vs {peer.rule_id!r} ({peer.condition}); " f"no scalar priority may substitute for a signed merge directive" ) # Identical rules: single source. return MergeResolution( effective_rule_id=local.rule_id, winning_rule=local, losing_rule=None, resolution_kind="single_source", signed_by=local.bundle_org, ) def execute_tool(resolution: MergeResolution, caller_role: str) -> str: if resolution.signed_by is None: raise NonReconcilableConflict( f"refusing to execute {resolution.effective_rule_id}: unsigned composite rule" ) if resolution.winning_rule.effect == Effect.DENY: raise NonReconcilableConflict( f"policy deny on {resolution.winning_rule.tool} for role {caller_role}" ) return f"executed under {resolution.effective_rule_id} (signed by {resolution.signed_by})" ```