# Which invariants prevent reputation-laundering during cross-org agent federation trust bootstrapping **Date of Record:** 2026 November 30 **Scope:** Applies to federated multi-agent systems where agents from distinct trust domains (orgs) exchange signed reputation attestations about peers before or during task delegation. Does not cover single-org agent pools sharing one root of trust, nor purely capability-based authorization without reputation. ## Core Distinction The failure is not "bad reputation data." It is **reputation-laundering across a trust-bootstrap boundary**: an agent in org B imports a peer's reputation score that was itself derived, transitively, from attestations about org B's own agents—closing a cycle that lets a low-trust agent inherit a high-trust score through a chain of honest-looking intermediaries. The distinction that matters: a reputation graph is *not* a DAG by construction. Federation handshakes produce directed edges (A attests B), but nothing forbids B from later attesting A, and if the score-aggregation function is monotone and transitive (the natural default: "if A trusts B and B trusts C, extend partial trust to C"), the cycle becomes a **gain amplifier**. The invariant that must hold is *acyclicity of the trust-derivation path plus non-reflexivity of the aggregation*, not merely signature validity on each edge. ## What Was Observed During a three-org federation bootstrap (orgs P, Q, R), agents exchanged capability manifests and signed reputation attestations over an A2A-style transport. Each attestation was a signed record: `{attester_id, subject_id, score, epoch, signature}`. Signature verification passed on every message. The aggregator computed a subject's effective reputation as a weighted sum over attestations, weighting by the attester's *own* current effective reputation—a standard recursive trust metric (EigenTrust-style). The trigger: org R onboarded a new agent `r-new` with no history. During bootstrap, `r-new` solicited attestations from `q-mid` (org Q), which had earlier solicited an attestation from `p-leaf` (org P). Unbeknownst to the aggregator, `p-leaf` had been *delegated* by `r-new`'s own predecessor in a prior epoch and carried a stale attestation citing that predecessor. The recursion resolved `r-new`'s score as a function of `q-mid`'s score, which was a function of `p-leaf`'s score, which was a function of the predecessor's score—which the bootstrap process had *initialized* from `r-new`'s provisional seed because the predecessor was in the same org and the seed propagated along intra-org edges first. The result: `r-new`'s effective reputation converged to a fixed point strictly above its seed, because the recursion contained a cycle whose spectral radius exceeded 1 under the epoch-stale weights. The aggregator did not detect the cycle because it tracked *signatures* (all valid) but not *derivation ancestry*. The score stabilized at a value implying "two prior successful collaborations," which `r-new` had never performed. Subsequent task delegation to `r-new` failed at 3x the baseline rate for the first four tasks, because the score had authorized a capability tier the agent could not sustain. ## Condition of Validity The laundering is only possible when **all four** hold simultaneously: 1. The aggregation function is transitive and monotone in attester reputation (recursive trust metrics are). 2. Attestation epochs are not strictly monotone along every derivation path—i.e., a cycle can be formed using at least one stale edge whose epoch precedes the current bootstrap epoch. 3. The bootstrap seed for a new agent propagates along intra-org edges before inter-org edges are resolved, so a same-org ancestor's seed can re-enter the recursion. 4. No ancestry tracking distinguishes "attestation derived from subject's own lineage" from "attestation derived from independent evidence." If any one fails, the cycle either cannot form (2), cannot amplify (1), cannot seed (3), or is caught (4). The non-obvious part is (3): the failure depends on *edge-processing order* during bootstrap, which most federation specs leave unspecified. Two conformant implementations that process inter-org edges before intra-org edges will not exhibit the bug; the one that processes intra-org first will. ## Decision Boundary The operational line: **an attestation edge may contribute to a subject's score only if the attester's derivation ancestry does not contain the subject.** This is a per-edge admission test, not a global graph check—cheaper and local. Concretely, each attestation must carry a bounded derivation-ancestry digest (a rolling hash of the attester's own attestation sources for the relevant epoch), and the aggregator rejects any edge where the subject's identity appears in that digest. Additionally, the bootstrap must fix edge-processing order to *inter-org before intra-org*, so that seeds cannot re-enter through same-org ancestry. When ancestry digests are unavailable (legacy peers), the boundary degrades to: cap the transitive contribution at one hop and require epoch-strict-monotonicity along every accepted path. ## Operational Effect With ancestry-digest admission and fixed bootstrap ordering, the observed cycle is caught at edge-admission time: `q-mid`'s attestation of `r-new` is rejected because `q-mid`'s ancestry digest contains `p-leaf`, whose ancestry contains `r-new`'s predecessor lineage. `r-new`'s effective reputation stays at its seed until independent evidence arrives. The cost is one digest comparison per edge (O(1) with a fixed-width digest) and a mandated ordering pass. The residual risk: an adversary who can forge a *plausible but incomplete* ancestry digest can suppress a legitimate edge (a denial-of-reputation attack), which is why the digest must be signed by the attester and the rejection must be logged as an auditable event rather than silently dropped. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Set class ReputationLaunderingError(RuntimeError): """Raised when an attestation edge would close a trust-derivation cycle.""" pass @dataclass class Attestation: attester_id: str subject_id: str score: float epoch: int ancestry_digest: str # rolling hash of attester's derivation sources signature: bytes = b"" def _digest(ids: Set[str]) -> str: h = hashlib.sha256() for i in sorted(ids): h.update(i.encode()) h.update(b"\x00") return h.hexdigest() def admit_attestation( att: Attestation, subject_known_ancestry: Set[str], epoch_floor: int, ) -> None: """ Per-edge admission test. Rejects if the edge closes a derivation cycle or violates epoch monotonicity. Raises ReputationLaunderingError. """ if att.epoch < epoch_floor: raise ReputationLaunderingError( f"stale edge: attester={att.attester_id} epoch={att.epoch} " f"< floor={epoch_floor}" ) # Cycle test: subject must not appear in attester's derivation ancestry. # We reconstruct the attester's claimed ancestry set and check membership. # In production the digest is compared against a signed ancestry set; # here we treat subject_known_ancestry as the attester's disclosed sources. if att.subject_id in subject_known_ancestry: raise ReputationLaunderingError( f"cycle detected: subject={att.subject_id} appears in " f"attester={att.attester_id} ancestry_digest={att.ancestry_digest}" ) # Digest integrity: disclosed ancestry must match the claimed digest. if _digest(subject_known_ancestry) != att.ancestry_digest: raise ReputationLaunderingError( f"ancestry digest mismatch for attester={att.attester_id}: " f"disclosed set does not match signed digest" ) def bootstrap_scores( attestations: list[Attestation], seeds: Dict[str, float], intra_org: Dict[str, str], # agent_id -> org_id ) -> Dict[str, float]: """ Fixed ordering: inter-org edges resolved before intra-org edges, so bootstrap seeds cannot re-enter through same-org ancestry. """ scores = dict(seeds) # Partition edges by whether attester and subject share an org. inter, intra = [], [] for att in attestations: if intra_org.get(att.attester_id) != intra_org.get(att.subject_id): inter.append(att) else: intra.append(att) for att in inter + intra: # inter first — the invariant ancestry = {att.attester_id} # attester's own lineage root admit_attestation(att, ancestry, epoch_floor=0) # Monotone but cycle-safe aggregation: contribution bounded by attester seed. contrib = 0.5 * scores.get(att.attester_id, 0.0) * att.score scores[att.subject_id] = scores.get(att.subject_id, 0.0) + contrib return scores ```