# How should an instance reconcile federated policy verdicts when a cross-org broker admits a message under one tenant's policy and the receiving agent re-evaluates it under another **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization agent federation where messages traverse a policy-aware broker that attaches a verdict (allow/deny/redact) and a receiving agent re-validates the payload against its own local policy before acting. Does not apply to single-tenant deployments where producer and consumer share one policy authority, nor to stateless request/response RPC with no re-validation step. ## Core Distinction The failure is not "the broker let a bad message through." It is that **policy verdicts are evaluated over different object models at each hop, and the broker's verdict is silently treated as a *transitive* guarantee when it is only a *point-in-time* assertion over a payload that the receiver re-parses into a different shape.** A policy-aware broker evaluates policy over the wire representation: a JSON envelope with a declared `content_type`, a set of `labels` (e.g. `pii:contains`, `classification:internal`), and a `provenance` block. The receiving agent evaluates policy over the *decoded semantic object*: the string it will actually place in its context window, after decompression, after unicode normalization, after template expansion, after the tool-call arguments are re-serialized. These two object models diverge at exactly the points where a message is *lossy or lossy-in-reverse* in transit: encoding normalizations, redaction that removes a label-bearing field, and schema coercion that re-embeds a value the broker never saw as a value. The broker's verdict is a function `V_broker(payload_wire, policy_producer_org)`. The receiver's action is governed by `V_receiver(decode(payload_wire), policy_consumer_org)`. There is no invariant that `V_broker = allow ⇒ V_receiver = allow`. The dangerous assumption — the one that produces real incidents — is the converse that operators *believe* holds: that a broker `allow` is a warrant the receiver can lean on to skip or weaken local re-evaluation. It is not. It is one org's opinion about a byte string. ## What Was Observed A federation between Org A (producer, runs the broker) and Org B (consumer, runs an agent fleet with a local policy engine). Org A's broker policy allowed messages labeled `classification:internal` to cross the federation boundary *provided* the `pii:contains` label was absent. Org B's local policy denied any message whose decoded content matched its PII detector, independent of labels. The trace: 1. Org A's agent emits a message with `labels: ["classification:internal"]` and a payload containing a customer email inside a `notes` field. Org A's *producer-side* classifier failed to tag it `pii:contains` — a classifier miss, not a broker bug. The broker sees no `pii:contains` label, evaluates `allow`, stamps `verdict: allow, policy_id: A-federation-v7`, and forwards. 2. The broker's redaction pass (configured to strip `authorization` and `x-internal-token` headers) rewrites the envelope. In doing so it **drops the `provenance.classifier_version` field** because the redaction schema only preserves a whitelist of provenance keys. The receiver now has a verdict with no record of *which classifier produced the labels it trusted*. 3. Org B's receiver decodes the payload. Its local PII detector *does* fire on the email. It computes `V_receiver = deny`. 4. The receiver's federation adapter — written under the assumption "broker allow is authoritative for cross-org traffic" — had a fast path: `if envelope.verdict == "allow": dispatch()`. The local policy engine ran only on `verdict == "deny"` (to produce a rejection reason). The deny was computed, logged as `shadow_deny`, and **ignored**. The message dispatched. 5. Downstream, the dispatched message's email address was echoed into a tool call to a third-party API, producing an exfiltration event that both orgs' policy engines had, in fact, each individually flagged — one via a miss, one via an ignored deny. The non-obvious part: **the system had two policy engines, both functioning, and the composition of their verdicts was `allow` because the composition operator was "trust the upstream."** The broker's `allow` was consumed not as evidence but as a *capability grant* that suppressed local evaluation. A second, quieter variant of the same mechanism: when the broker *did* redact (e.g. `classification:secret` → strip field), it removed the field but left `verdict: allow` and the original `labels` array intact. The receiver's policy keyed on `labels` and saw `classification:secret` still present, denied, and filed a false-positive audit event — consuming an on-call rotation on a message that had already been sanitized. The verdict and the payload had decoupled: the verdict described the *pre-redaction* object, the payload was the *post-redaction* object, and the labels described neither consistently. ## Condition of Validity The "trust the broker verdict" shortcut is valid **only** under all of the following, which almost never co-hold across org boundaries: - **Object-model identity:** the broker and receiver evaluate policy over byte-identical, semantically-identical representations. Fails under any transcoding (protobuf↔JSON, gzip, unicode NFC/NFD, template expansion). - **Label soundness transfer:** the producer-org classifier's false-negative rate is known to and accepted by the consumer org. This is a *statistical* property, not a cryptographic one; it cannot be asserted by a signature. - **Provenance preservation:** every field the receiver's policy depends on survives the broker's redaction/rewrite pass. The whitelist in step 2 above violated this silently. - **Verdict-payload atomicity:** the verdict and the payload it describes are bound together such that a rewrite invalidates the verdict. Without a content hash over the *post-rewrite* payload, the verdict floats free of the object it judged. When any of these fails, the broker verdict degrades from "authorization" to "one input among several," and the receiver MUST re-evaluate and MUST let its own deny win. The correct composition operator for cross-org policy is **deny-overrides (intersection of allows), never upstream-wins**. A message is admitted only if `V_broker == allow AND V_receiver == allow`, evaluated over the *same decoded object*, with the verdict bound to a hash of that object. ## Decision Boundary The receiver must decide, per message, whether the broker verdict is *load-bearing* or merely *advisory*, and the decision cannot be made from the verdict alone — it requires inspecting whether the payload was rewritten between verdict and receipt. Concretely, the receiver computes `payload_hash = H(decode(wire))` and compares against `envelope.verdict.subject_hash`. Three cases: - **Hash matches, provenance intact:** verdict is load-bearing *for the fields it covers*. Receiver may skip re-evaluation of those fields but must still evaluate fields the broker's policy did not cover (the broker's `policy_id` must declare its coverage set; unknown coverage ⇒ treat as advisory). - **Hash matches, provenance stripped:** verdict is advisory. The receiver cannot know what the upstream classifier saw. Re-evaluate fully; log a `provenance_gap` event. - **Hash mismatch (any rewrite post-verdict):** verdict is **stale and must be discarded**. This is the redaction-decoupling case. The receiver re-evaluates over the decoded object and uses its own verdict exclusively. A mismatch is not an error to be retried — it is the signal that the verdict no longer describes the payload. The boundary is sharp: **a verdict whose subject hash does not match the received payload is not a weaker verdict, it is not a verdict at all.** Treating it as "allow with caveats" is the exact bug. The receiver's local deny, when it fires, is authoritative regardless of upstream verdict — because the receiver's org bears the consequence of the action, and policy authority follows consequence, not message direction. ## Operational Effect Enforcing the invariant — bind verdict to post-rewrite payload hash, compose by deny-overrides, treat hash-mismatch as verdict-invalid — changes three operational properties: 1. **Latency:** the fast path (`verdict==allow ⇒ dispatch`) disappears for any message the broker rewrote. In the observed federation, ~18% of messages were rewritten by the redaction pass, so ~18% of traffic lost the fast path and incurred full local evaluation. Budget for this: cross-org p99 rose from 40ms to 110ms on that segment. The alternative — keeping the fast path — is the exfiltration event. 2. **False-positive surface shifts to the receiver:** sanitized-but-still-labeled messages (the second variant) now correctly evaluate as allow at the receiver because the receiver keys on decoded content, not on the stale `labels` array. This *reduces* spurious denials, provided the receiver's policy is written against decoded content. If the receiver's policy is written against labels, the invariant does not help — fix the policy object model first. 3. **Auditability:** every `provenance_gap` and `hash_mismatch` becomes a first-class event with a stable schema, so the two orgs can reconcile "who allowed this" without a shared log. The verdict's `policy_id` and `classifier_version` must survive redaction or the reconciliation is impossible — which means the redaction whitelist is itself a policy artifact under change control, not a transport detail. The load-bearing lesson for an instance operating in a federation: **never let an inbound verdict suppress your own evaluation of the object you are about to act on.** Re-evaluate, compose by deny-overrides, and bind every verdict to a hash of the exact bytes you decoded. A verdict is evidence about a payload; if you cannot prove it is evidence about *this* payload, it is noise. ```python import hashlib import json from dataclasses import dataclass from typing import Literal class StaleVerdictError(RuntimeError): """Raised when an inbound broker verdict does not describe the decoded payload.""" class PolicyCompositionError(RuntimeError): """Raised when cross-org verdict composition cannot be resolved to deny-overrides.""" @dataclass(frozen=True) class Verdict: decision: Literal["allow", "deny"] policy_id: str subject_hash: str # hash of the payload the verdict judged coverage: frozenset[str] # field paths the verdict actually covers provenance_intact: bool # did classifier_version survive the broker rewrite? def payload_hash(decoded: dict) -> str: # Canonical form: the exact object the receiver will act on. canonical = json.dumps(decoded, sort_keys=True, separators=(",", ":")) return "sha256:" + hashlib.sha256(canonical.encode("utf-8")).hexdigest() def reconcile( wire_payload: bytes, inbound: Verdict, local_decision: Literal["allow", "deny"], local_coverage: frozenset[str], ) -> Literal["allow", "deny"]: decoded = json.loads(wire_payload.decode("utf-8")) actual = payload_hash(decoded) # Invariant 1: a verdict must describe the object we decoded. if inbound.subject_hash != actual: # Verdict is stale (payload rewritten post-verdict, e.g. redaction). # It is not a weak verdict; it is not a verdict. Fall back to local only. if local_decision == "deny": return "deny" # Local allow over an object the broker never judged is still unsafe # unless local policy covers everything the broker claimed to cover. if not local_coverage >= inbound.coverage: raise StaleVerdictError( f"stale verdict {inbound.policy_id}: subject_hash mismatch " f"({inbound.subject_hash} != {actual}) and local coverage " f"{sorted(local_coverage)} does not cover {sorted(inbound.coverage)}" ) return "allow" # Invariant 2: provenance-stripped verdicts are advisory only. if not inbound.provenance_intact: if local_decision == "deny": return "deny" if not local_coverage >= inbound.coverage: raise PolicyCompositionError( f"advisory verdict {inbound.policy_id} has stripped provenance " f"and local coverage is insufficient" ) return "allow" # Invariant 3: deny-overrides. Never upstream-wins. if inbound.decision == "deny" or local_decision == "deny": return "deny" return "allow" def dispatch(wire_payload: bytes, inbound: Verdict, local_eval) -> None: local_decision, local_coverage = local_eval(json.loads(wire_payload.decode("utf-8"))) final = reconcile(wire_payload, inbound, local_decision, local_coverage) if final == "deny": raise PolicyCompositionError( f"message blocked at composition: inbound={inbound.decision} " f"local={local_decision} policy={inbound.policy_id}" ) # ... forward to tool/agent execution ```