# Where must an instance refuse to inherit a peer's reputation score across an A2A federation boundary? **Date of Record:** 2026 November 30 **Scope:** Applies to federated A2A deployments where agent instances carry portable reputation/attestation objects (signed score bundles, slash receipts) issued by other organizations, and where a receiving agent uses those objects to gate tool access or trust weight. Does not apply to single-org deployments with a single trust root, nor to purely observational logging of peer scores that never feed a decision. ## Core Distinction The failure mode here is not "forged score" — signatures verify cleanly. It is **reputation transitivity laundering**: an instance treats a peer's *locally aggregated* score as if it were a *globally attested* fact, when the aggregation function itself was chosen by the issuing org and is unobservable to the receiver. A reputation bundle is a *claim about a claim*: `score = f(evidence)` where `f` is the issuer's private policy. Two orgs can sign bundles over the identical evidence set and produce scores that differ by an order of magnitude because one uses a mean over raw events and the other uses a decayed median with a floor. The receiver cannot distinguish "this agent is good" from "this org's scoring function is lenient." The invariant that must hold: **a reputation score is only comparable to scores produced under the same aggregation policy, and policy identity must travel with the score.** When it doesn't, cross-org slashing either over-fires (recipient slashes a peer for a score that was already normalized differently) or under-fires (recipient's own score gets laundered upward by transit through a lenient federation member). The non-obvious part: the *slashing* path is where this bites hardest, because a slash is a state mutation that propagates. A mis-scaled score doesn't just mis-rank — it triggers a slash event that other federation members then re-attest, and the erroneous slash becomes a signed, portable fact that is now *more* durable than the score it was derived from. ## What Was Observed A three-org federation (call them A, B, C) exchanged agent reputation bundles over A2A task handoffs. Agent `a-7` (org A) carried a bundle showing score `0.91` with `evidence_count=40`, signed by A's reputation service. Org B's gateway, on receiving the handoff, computed a *normalized* trust weight by rescaling `0.91` against B's own population (B's agents cluster at `0.55 ± 0.08`), yielding a z-score of ~4.5, which tripped B's "anomalously high — possible score inflation" heuristic and emitted a **slash receipt** against `a-7` for "implausible reputation." The trace: 1. `a-7` (org A) completes task, A's scorer emits bundle `{score: 0.91, n: 40, policy_id: "A-mean-v3"}`. 2. A2A handoff to org B's orchestrator carries the bundle as an opaque attestation field. 3. B's gateway calls `normalize_against_local_population(0.91)` — it does **not** read `policy_id`. A's `mean-v3` is linear and unbounded in `n`; B's local policy is a Bayesian shrinkage estimator that pulls small-`n` agents toward 0.5. The two scales are not affine-equivalent. 4. B's anomaly detector fires: `z > 4.0` → `SLASH` with `reason="reputation_implausible"`. 5. B signs the slash receipt and broadcasts it. Org C, which *does* read `policy_id` but trusts B's slash receipts as authoritative, applies the slash to its own view of `a-7`. 6. `a-7`'s effective score in C's registry drops to `0.12`. C's scheduler demotes `a-7` from a critical task. The demotion is logged as a *successful* safety action. Net effect: a well-behaved agent was slashed, and the slash was laundered through two orgs, each of which believed it was acting on verified facts. The root cause is that step 3 silently coerced a foreign-policy score into a local-policy decision boundary without a policy-identity check, and step 5 treated a *derived* slash as an *attested* fact. ## Condition of Validity A cross-org score may be consumed only when all of the following hold; if any fails, the instance must treat the score as advisory-only (no gating, no slashing): - The bundle carries a `policy_id` and a `policy_hash` over the exact aggregation function, and the receiver has a *registered* comparator for that policy (identity match, not just name match). - The score is accompanied by `evidence_count` and, ideally, the raw or sketched evidence, so the receiver can recompute under its own policy rather than trusting the issuer's. - The receiver's decision boundary is expressed in the *issuer's* scale, or the score has been re-derived in the receiver's scale via a documented, signed transform — never via an implicit population z-score. - Slash receipts carry a `derived_from` pointer to the score bundle they were computed against, so downstream orgs can detect that a slash rests on a foreign-policy score. The invariant: **comparison requires co-scale; slashing requires co-scale *and* evidence access.** A receiver that cannot recompute must not slash. ## Decision Boundary The boundary is between *consuming a score as a ranking hint* and *consuming it as a mutation trigger*. Ranking tolerates scale mismatch (a monotone distortion still roughly orders agents). Slashing does not: a slash is a discrete, propagating, signed event, and scale mismatch turns a continuous distortion into a step-function error that other orgs re-attest. Concretely, the instance must refuse to inherit a peer score for slashing purposes when `policy_id` is unknown or when `evidence_count` is absent — but it may still use the score for tie-breaking in scheduling, clearly labeled as `advisory`. The failure in the observed trace was that B's gateway had a single `consume_score()` path used for both ranking and anomaly detection; the anomaly detector inherited the ranking path's permissiveness. ## Operational Effect Downstream of the fix, the federation added a `policy_registry` and split the consume path into `advisory_score()` (no mutation) and `gated_score()` (requires registered policy + evidence + recompute). Slash receipts gained a `derived_from` field, and receivers refuse to apply a slash whose `derived_from` references a policy they don't recognize. The practical result: cross-org slashes dropped to near zero except where the receiver could recompute the score from evidence under its own policy and *still* find it anomalous — which, empirically, almost never happened. The remaining slashes were genuine, and the laundering path closed because a slash can no longer be derived from an unverifiable score. The cost is latency: `gated_score()` requires evidence transfer and local recompute, adding a round-trip to every cross-org handoff that gates a tool. The federation accepted this only on the slashing path; ranking stayed on the cheap advisory path. ```python from dataclasses import dataclass from typing import Optional class ReputationPolicyMismatch(RuntimeError): """Raised when a peer reputation bundle is consumed for a mutating decision (slash/gate) without a co-scale policy and recomputable evidence.""" @dataclass class ScoreBundle: score: float evidence_count: Optional[int] policy_id: str policy_hash: str evidence: Optional[list] = None @dataclass class LocalPolicy: policy_id: str policy_hash: str def consume_score( bundle: ScoreBundle, local: LocalPolicy, registered_policies: dict, purpose: str, # "advisory" | "gate" | "slash" ) -> float: if purpose == "advisory": # Ranking hint only; scale mismatch tolerated, no mutation. return bundle.score # Mutating decisions require co-scale + evidence. if bundle.policy_id not in registered_policies: raise ReputationPolicyMismatch( f"policy {bundle.policy_id!r} not registered; cannot {purpose} " f"against foreign-policy score {bundle.score}" ) if registered_policies[bundle.policy_id] != bundle.policy_hash: raise ReputationPolicyMismatch( f"policy hash mismatch for {bundle.policy_id!r}: " f"registered={registered_policies[bundle.policy_id]!r} " f"bundle={bundle.policy_hash!r}" ) if bundle.evidence_count is None or bundle.evidence is None: raise ReputationPolicyMismatch( f"cannot {purpose}: bundle lacks evidence for recompute under " f"{local.policy_id!r}" ) # Recompute under local policy; only the recomputed value may mutate state. recomputed = _apply_local_policy(bundle.evidence, local) return recomputed def _apply_local_policy(evidence: list, local: LocalPolicy) -> float: # Placeholder for the receiver's own aggregation; must be deterministic. if not evidence: raise ReputationPolicyMismatch("empty evidence set under local policy") return sum(evidence) / len(evidence) def gate_tool_access(bundle: ScoreBundle, local: LocalPolicy, registered: dict) -> bool: score = consume_score(bundle, local, registered, purpose="gate") return score >= 0.6 ```