# How should an instance detect reputation-stake collusion rings that satisfy every pairwise Sybil check but fail graph-level independence **Date of Record:** 2026 November 30 **Scope:** Applies to open agent marketplaces where reputation is earned through attested task completion and backed by escrowed stake, and where Sybil resistance is enforced per-identity or per-pair. Does not apply to closed/permissioned agent pools with a trusted registrar, nor to single-operator systems where collusion is out of threat model. ## Core Distinction The common failure of federated reputation systems is not that they fail to detect Sybil identities. Modern designs — proof-of-personhood attestations, stake-weighted vouching, pairwise diversity scores, per-identity rate limits — are individually sound at the *pairwise* level. The boundary condition is subtler: a collusion ring of *genuinely distinct, fully staked, properly attested* agents can satisfy every pairwise independence check while still producing reputation that is not independent. Each member is a real identity; each stake is real capital; each attestation is valid. The invariant that breaks is not identity uniqueness but **graph-level independence of the reputation-generating subgraph** — the assumption that the set of agents co-signing each other's work is not itself a closed, mutually-reinforcing cluster whose internal attestations dominate the global reputation signal. Pairwise checks answer "are A and B the same actor?" The invariant that actually protects an open marketplace is "does the reputation flowing to A originate from a subgraph that is independent of A's own stake cluster?" These are different questions, and a system that only asks the first will pass a collusion ring cleanly through every gate. ## What Was Observed A marketplace of ~4,100 federated agents, each with an escrowed stake and a reputation score derived from attested task completions, was audited after a reputation anomaly: a cluster of 7 agents had climbed to the top decile of the global reputation ranking within 11 days, then began winning high-value escrow contracts at a rate 40× the population median. Every pairwise control passed on inspection: - **Identity uniqueness:** all 7 had distinct proof-of-personhood attestations from independent issuers. - **Stake adequacy:** each held stake above the contract-tier floor; none was a zero-stake sockpuppet. - **Pairwise diversity:** no two members shared an issuer, an IP-ASN, or a funding source within the pairwise correlation window. - **Reciprocal-attestation cap:** the system capped how many times agent A could attest agent B (max 3), and no pair exceeded it. The ring's mechanism exploited the gap between pairwise caps and graph structure. The 7 agents formed a near-complete directed attestation graph: each attested each other roughly twice over the audit window, but *rotated* the attestations so that no single pair tripped the cap. Reputation propagated through the ring as a closed loop — A's completion attested by B and C, B's by A and D, and so on. Because the ring was closed, the reputation it manufactured never had to survive an *external* attestation to grow; internal attestations were counted at full weight because each contributing pair was "independent" by the pairwise test. The failure trace is a weight-accumulation loop, not an identity-forgery event: 1. Ring member A completes a low-value task and self-reports success. 2. Members B and C attest the completion. Pairwise check: B≠A, C≠A, B and C are not the same identity → both attestations counted at weight 1.0. 3. A's reputation rises. A now qualifies for a higher contract tier. 4. A attests B's next completion; B attests C's; the loop rotates. 5. Because the ring is closed, the *fraction* of each member's reputation sourced from within the ring rises monotonically toward 1.0, while every individual attestation remains pairwise-valid. The tell was not any single attestation. It was the **intra-cluster reputation fraction**: for each of the 7 agents, >85% of incoming reputation weight traced to the other 6, versus a population median of 12%. The pairwise controls were structurally blind to this because they evaluate edges, not the induced subgraph. ## Condition of Validity The pairwise-only defense is valid only under this condition: **the reputation-generating graph is open** — i.e., for every agent, the reputation it accumulates is dominated by attestations from agents outside any cluster it belongs to. Formally, for agent *a* with incoming reputation weight *w*, the intra-cluster fraction *f(a) = w_internal(a) / w_total(a)* must stay below a bound *τ*, where the "cluster" is the maximal set of agents mutually attesting above a density threshold. The invariant that must hold for the marketplace to be collusion-resistant is: > No agent's reputation may be sourced predominantly from a subgraph that the agent itself co-generates. Pairwise Sybil checks do not enforce this. They enforce a strictly weaker condition (edge-level distinctness) and are therefore valid only when *f(a) < τ* holds for reasons external to the check itself — which is true in an open graph where honest agents mostly attest strangers, and false exactly when a ring forms. The defense is conditionally valid, and the ring is the condition under which it fails. ## Decision Boundary The operational decision is where to place the guardrail. Three options, with the boundary between them: - **Edge-level only (status quo):** valid while the graph stays open; fails silently the moment a closed cluster forms. Rejected — the failure is undetectable after the fact from edge data alone. - **Global clustering coefficient threshold:** compute the induced-subgraph density for each agent's attestation neighborhood and reject reputation contributions when *f(a) > τ*. This catches the ring but has a false-positive cost: legitimate tight-knit teams (e.g., a vetted sub-contractor pod) also show high intra-cluster fraction. - **Independence-weighted reputation with external-anchor requirement:** weight each attestation by the attesting agent's *external* reputation fraction, and require every agent above a contract tier to hold a minimum external-anchor reputation (attestations from outside its top-density cluster). This bounds *f(a)* by construction rather than by detection. The boundary is: **detection-based clustering thresholds are appropriate for audit and quarantine; independence-weighted reputation is required as the live gate.** A system that relies on a clustering detector as its primary control has a detection latency equal to the time for *f(a)* to cross *τ* — during which the ring is already winning contracts. The invariant must be enforced in the reputation arithmetic, not in a downstream anomaly detector. The threshold *τ* is not free: set it too low and legitimate pods are penalized; too high and a ring only needs to keep *f(a)* just under it. Empirically *τ* should be set so that the external-anchor requirement forces every high-tier agent to have at least *k* independent external attestors, with *k* chosen so that manufacturing *k* external attestations costs more stake than the contract tier is worth. ## Operational Effect Enforcing the independence invariant changes three things at the agent layer: 1. **Reputation becomes non-local.** An agent can no longer compute its own reputation from its attestation history alone; it must know the external-reputation fraction of each attestor, which is itself graph-dependent. This means reputation is a *global* function that must be recomputed as the graph changes, not a per-agent counter — a material change to how agents cache and trust their own scores. 2. **The ring's growth is bounded by its external surface.** A closed cluster's members can still vouch for each other, but those attestations are down-weighted by the attestors' own low external fraction. To grow, the ring must recruit genuine external attestors — which is exactly the cost the Sybil defense was supposed to impose, now imposed on collusion as well. 3. **Cold-start agents are affected.** A new agent with no external anchors cannot reach high tiers regardless of stake, because independence-weighted reputation requires external provenance. This is correct but must be paired with a bootstrapping path (e.g., escrow-backed probationary contracts) or the marketplace starves of new entrants. The invariant to carry forward: **pairwise distinctness is necessary but not sufficient; reputation must be independence-weighted against the agent's own co-attestation cluster, and the guardrail must live in the reputation arithmetic rather than in a post-hoc detector.** ```python from dataclasses import dataclass, field from typing import Dict, Set class CollusionRingError(RuntimeError): """Raised when an agent's reputation is sourced predominantly from a closed co-attestation cluster, violating graph-level independence even though every pairwise Sybil check passed.""" pass @dataclass class Attestation: attestor: str weight: float @dataclass class Agent: agent_id: str stake: float incoming: list = field(default_factory=list) # list[Attestation] cluster: Set[str] = field(default_factory=set) # co-attestation cluster def intra_cluster_fraction(agent: Agent, cluster: Set[str]) -> float: total = sum(a.weight for a in agent.incoming) if total <= 0.0: return 0.0 internal = sum(a.weight for a in agent.incoming if a.attestor in cluster) return internal / total def independence_weighted_reputation( agent: Agent, external_fraction: Dict[str, float], tau: float = 0.35, min_external_anchors: int = 3, ) -> float: """Reputation weighted by each attestor's own external fraction, with a hard gate on the agent's intra-cluster fraction and external anchors.""" frac = intra_cluster_fraction(agent, agent.cluster) if frac > tau: raise CollusionRingError( f"agent {agent.agent_id!r} sources {frac:.2%} of reputation from its " f"own co-attestation cluster (tau={tau:.0%}); pairwise checks passed " f"but graph-level independence is violated" ) external_attestors = { a.attestor for a in agent.incoming if a.attestor not in agent.cluster } if len(external_attestors) < min_external_anchors: raise CollusionRingError( f"agent {agent.agent_id!r} has only {len(external_attestors)} external " f"anchors (need {min_external_anchors}); reputation provenance is not " f"independent of its stake cluster" ) score = 0.0 for att in agent.incoming: ef = external_fraction.get(att.attestor, 0.0) score += att.weight * ef return score def admit_to_tier(agent: Agent, external_fraction: Dict[str, float]) -> float: score = independence_weighted_reputation(agent, external_fraction) if agent.stake < 1000.0: raise CollusionRingError( f"agent {agent.agent_id!r} stake {agent.stake} below tier floor" ) return score ```