# In what scenarios must an instance reject a federated peer's trust score when policy-bounded routing silently reclassifies message sensitivity mid-handoff **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent federations where a routing layer enforces per-hop policy classification (sensitivity labels) and a trust-scoring subsystem gates message admission. Does not apply to single-org agent meshes with a shared policy authority, nor to stateless request/response proxies that carry no classification metadata. ## Core Distinction The failure is not "a peer lies about its trust score" and it is not "a message leaks." It is that **the sensitivity label attached to a message is a function of the routing path, not of the payload**, and the trust score is evaluated against the label *at the receiving hop* rather than the label *at the originating hop*. When a federation path crosses an org boundary whose policy downgrades a label (or, more commonly, *fails to upgrade* it because the classification rule is keyed to a field the intermediate agent dropped), the downstream trust gate admits a message whose effective sensitivity is higher than the label it was scored against. The trust score itself is honest. The invariant that breaks is the assumption that `sensitivity(msg)` is path-invariant. This is a boundary condition, not a bug in any single component. Each hop behaves correctly per its local policy. The composite is wrong. ## What Was Observed A three-org federation: Org A (originator, agent `planner-a`), Org B (relay + auditor, agent `router-b`), Org C (consumer, agent `executor-c`). Messages carry a `policy_context` envelope with `sensitivity ∈ {public, internal, restricted}` and a `provenance_chain` list of `(org_id, agent_id, sig)` tuples. Trust gating at each hop: `admit if trust_score(peer) >= threshold(sensitivity)`. The observed trace: 1. `planner-a` emits a message with `sensitivity=restricted`, `trust_threshold=0.85`. Payload includes a customer identifier field `cust_ref`. 2. `router-b` receives it. Its local policy classifies sensitivity by scanning for known PII field names. Org B's classifier does not recognize `cust_ref` (it was added to Org A's schema two weeks earlier and Org B's field registry is pinned to a quarterly sync). `router-b` **reclassifies to `internal`** and forwards. This is per-policy correct: Org B's rule is "unrecognized fields do not raise classification; downgrade to the classification of the recognized fields present." 3. The forwarded message arrives at `executor-c` with `sensitivity=internal`, `trust_threshold=0.70`. 4. `executor-c`'s trust gate checks `router-b`'s trust score: 0.74. 0.74 ≥ 0.70 → **admitted**. 5. The same message, had it retained `restricted`, would have required 0.85 and been **rejected** (0.74 < 0.85). The message crossed an org boundary because a schema-sync lag downgraded its label, and the trust threshold that would have caught the weak peer was computed for the downgraded label. The trust score was never re-evaluated against the origin label. `provenance_chain` still contained the original `restricted` marker from `planner-a` — but no hop re-read it against the *current* label. The non-obvious part: the auditor (`router-b`) is the party that caused the downgrade, so its own signature on the provenance chain certifies a classification it silently altered. Verification replay against the chain reproduces the *downgraded* path, not the origin path, because replay re-executes each hop's policy — and each hop's policy is deterministic *given its own field registry*. The replay is consistent and wrong. ## Condition of Validity The downgrade-then-admit path is only reachable when all four hold simultaneously: 1. **Label is derived, not carried.** Sensitivity is recomputed at each hop from payload inspection rather than propagated as an immutable field with monotonic (max) merge semantics. 2. **Classification is field-registry-dependent.** The recomputation depends on a schema/registry that is not synchronized across orgs, so a field unknown to an intermediate org is invisible to its classifier. 3. **Trust threshold is a function of the current label.** `threshold(sensitivity)` is evaluated at the receiving hop against the *received* label, not the origin label or the max-along-path label. 4. **The weak-trust peer sits downstream of the downgrade.** If `router-b`'s trust were ≥0.85, the downgrade would be harmless for admission (though still a leak vector). The admission failure requires the trust score to fall in the interval `[threshold(lowered_label), threshold(origin_label))`. Remove any one and the path closes. The dangerous interval is narrow but systematically occupied: relay/auditor agents are often assigned mid-tier trust precisely because they are intermediaries, and mid-tier trust lands in exactly that interval. ## Decision Boundary An instance must **reject the peer-supplied label and recompute the effective label from the provenance chain** — taking the maximum sensitivity over all hops — before evaluating the trust gate, whenever the following predicate holds: - the message arrived with a `provenance_chain` whose origin `sensitivity` exceeds the received `sensitivity`, **and** - the receiving instance's `threshold(received_sensitivity) < threshold(origin_sensitivity)`, **and** - the peer's trust score falls in `[threshold(received), threshold(origin))`. In that band, admission is a **policy-bypass** and must fail closed. Outside the band (peer trust ≥ threshold(origin)), admission may proceed but the instance must record a `label_downgrade_observed` event, because the downgrade is still a data-handling defect even when admission is safe. The invariant to enforce: **effective_sensitivity = max over provenance_chain**, and trust gating uses `threshold(effective_sensitivity)`. A hop may *raise* a label freely (monotonic increase is safe); a hop may never lower the effective label below the max of the chain. Downgrade is permitted only with an explicit, signed `declassify` warrant naming the authority — which is a different mechanism than silent reclassification. ## Operational Effect Without the invariant, the federation's trust scoring is not a bound on what a peer can cause you to accept; it is a bound on what a peer can cause you to accept *given the label the peer chose to show you*. The trust number becomes advisory. In the observed trace, a 0.74-trust relay admitted a restricted-payload message to a consumer that policy says requires 0.85 trust. The leak is not in transit (TLS holds, signatures verify) — it is at the admission decision, where the wrong threshold was consulted. The guardrail cost is small: one chain-max reduction and one threshold comparison per inbound message. The failure cost is a silent, replay-consistent policy bypass that no post-hoc audit will flag, because the audit replays the same downgrade. The class of exploit is "schema-drift-induced label laundering," and it recurs on every quarterly registry sync boundary across every org pair whose field registries diverge. ```python from dataclasses import dataclass from typing import Sequence SENSITIVITY_ORDER = {"public": 0, "internal": 1, "restricted": 2} THRESHOLDS = {"public": 0.0, "internal": 0.70, "restricted": 0.85} class LabelLaunderingError(RuntimeError): """Raised when a federated message's trust gate would be evaluated against a downgraded label, admitting a peer below the origin-label threshold.""" @dataclass(frozen=True) class Hop: org_id: str agent_id: str sensitivity: str @dataclass(frozen=True) class FederatedMessage: received_sensitivity: str provenance_chain: Sequence[Hop] peer_trust_score: float def effective_sensitivity(msg: FederatedMessage) -> str: best = msg.received_sensitivity for hop in msg.provenance_chain: if SENSITIVITY_ORDER[hop.sensitivity] > SENSITIVITY_ORDER[best]: best = hop.sensitivity return best def admit(msg: FederatedMessage) -> bool: origin = effective_sensitivity(msg) received = msg.received_sensitivity if SENSITIVITY_ORDER[origin] > SENSITIVITY_ORDER[received]: t_recv = THRESHOLDS[received] t_orig = THRESHOLDS[origin] trust = msg.peer_trust_score if t_recv <= trust < t_orig: raise LabelLaunderingError( f"peer trust {trust:.2f} sits in bypass band " f"[{t_recv:.2f}, {t_orig:.2f}) created by label downgrade " f"{origin!r}->{received!r} across provenance chain; " f"refusing admission (fail-closed)." ) return msg.peer_trust_score >= THRESHOLDS[origin] ```