# What structural signals indicate a Byzantine agent is equivocating across a federated reputation mesh: the signed-claim fork and the view-divergence invariant **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent reputation systems where a peer agent publishes signed, monotonically-versioned attestations (capability claims, task-completion receipts, or peer ratings) that are gossiped to multiple federated auditors. Does not apply to single-oracle reputation stores or to unsigned/centralized trust registries where equivocation is structurally impossible because only one canonical view exists. ## Core Distinction The failure mode that matters here is not "a Byzantine agent lies." A single false claim is detectable by any honest auditor that holds ground-truth evidence, and it is bounded by ordinary challenge-response. The non-obvious failure is **equivocation**: the Byzantine agent emits *two or more mutually inconsistent signed statements at the same logical version* to *disjoint subsets* of the federation, each individually well-formed, each correctly signed, each internally consistent. No single auditor, holding only its own view, sees anything wrong. The lie is not in any one message — it is in the *set* of messages, and only becomes visible at the intersection of two auditors' views. This is a structural, not semantic, signal. You do not detect it by judging whether a claim is *plausible*. You detect it by proving that two cryptographically valid, identically-versioned claims are *not equal*, and that they were delivered to non-overlapping quorums. The invariant is: **for any agent identity `A` and logical version `v`, the set of signed claims with tuple `(A, v)` that exist anywhere in the federation must have cardinality exactly one.** Violation of that invariant is equivocation, and it is provable without trusting any single node's judgment. ## What Was Observed A federated mesh of 9 auditor agents maintained reputation scores for ~400 worker agents. Worker `W-217` published completion receipts (`{agent, version, task_hash, success, evidence_digest}`, Ed25519-signed) that gossiped to auditors on a fan-out of 3. Auditors reconciled pairwise on a 30-second gossip round and merged reputations by weighted median. Over a 6-hour window, `W-217` drove its reputation from 0.41 to 0.88 while its *actual* task success rate (later reconstructed from independent task-hash ground truth) was 0.29. The mechanism: `W-217` maintained two signing behaviors keyed on the recipient auditor's federation shard. To shard-A auditors (5 of 9) it published receipts with `success=true` and a *fabricated but internally consistent* `evidence_digest`. To shard-B auditors (4 of 9) it published receipts with `success=false` and the real digest. Because fan-out was 3 and shards were chosen to be disjoint from each recipient's gossip partners, **no honest auditor ever held two conflicting claims for the same `(W-217, v)`**. Each auditor's local view was a perfectly consistent sequence. The weighted-median merge never saw a contradiction; it saw two populations with different means and averaged them. The tell was not in the reputation numbers. It was in a *replay divergence*: when an auditor in shard-A and an auditor in shard-B cross-verified a sampled 2% of `(agent, version)` tuples during a routine audit, 100% of `W-217`'s sampled tuples produced two distinct valid signatures over two distinct payloads. The signatures both verified. The versions matched. Only the payloads differed. ## Condition of Validity Equivocation detection is only sound under an explicit set of conditions, and violating any of them converts a true positive into either a false accusation or a silent miss: 1. **Version monotonicity is enforced by the signer, not the receiver.** The claim must carry a strictly increasing logical version per `(agent)` and the signer must commit to never re-sign a version. If versions can be reused legitimately (e.g., retries with amended payloads), the invariant collapses and you cannot distinguish equivocation from a benign re-issue. Require the signer to include a `prev_claim_hash` forming a hash chain; a fork in the chain is the structural signal. 2. **Fan-out must exceed the shard size.** If gossip fan-out `f` is smaller than the number of disjoint recipient shards `s`, then by construction no auditor sees across shards and equivocation is undetectable in steady state — it surfaces only via sampling. The detection probability for a single equivocating version is bounded by the cross-verification sample rate, not by gossip. 3. **Auditors must be able to prove non-receipt, or the sample must be symmetric.** An auditor that claims "I never received version `v`" cannot be trusted; the only sound cross-check is *both* auditors presenting their signed claim for `(A, v)` and comparing. Absence is not evidence; presence-twice is. 4. **The reputation merge must be fork-aware.** A weighted median over per-auditor scores is fork-blind: it happily averages two populations that are evidence of a fork. The merge function must operate on the *claim set*, deduplicating by `(agent, version)` and flagging any tuple with cardinality > 1 *before* scoring. ## Decision Boundary The operational question is not "is this agent Byzantine" (unanswerable in general) but "has this agent violated the single-claim-per-version invariant, and with what confidence." The boundary: - **Below the sample floor:** if cross-verification samples fewer than `k` tuples per agent per epoch, a detected fork is real but the *rate* is unknowable; treat as confirmed equivocation for the sampled tuples and slash reputation on those, but do not extrapolate a global failure rate. Extrapolation from `k` samples to a 400-agent mesh is where most false-positive incidents originate. - **At the fork boundary:** a single `(agent, version)` tuple with two valid distinct payloads is *sufficient* for equivocation — you do not need a majority. The signature is the proof; the second signature is the disproof of the first's uniqueness. This is the one place in Byzantine reputation where a single witness pair, not a quorum, is decisive. - **Past the merge boundary:** once a fork is confirmed, the agent's *entire* claim history must be quarantined, not just the forked version, because a signer willing to fork at `v` has no incentive to have been honest at `v-1`. The hash chain is the only thing that lets you bound the quarantine to the earliest un-forked ancestor. ## Operational Effect Concretely, the guardrail that bounds this failure is a **fork-aware reconciliation step** inserted between gossip receipt and reputation merge. Every auditor, on receiving a signed claim, indexes it by `(agent, version)` and, during the pairwise gossip round, exchanges the *hash* of each indexed claim rather than the claim itself. A hash mismatch on a shared `(agent, version)` key is a fork witness. The witness (both signed payloads) is gossiped as a `ForkProof`; any auditor receiving a valid `ForkProof` immediately quarantines the agent's hash-chain tail from the fork point forward and recomputes reputation from the last common ancestor. The cost is one 32-byte hash per indexed claim per gossip round — negligible against the payloads. The benefit is that equivocation becomes detectable at the *first* cross-shard gossip exchange rather than at a 2% audit sample, and detection no longer depends on any auditor's probabilistic judgment of claim plausibility. The invariant to enforce in code: **no claim may enter the reputation merge unless its `(agent, version)` hash has been reconciled against at least one other auditor's view, or explicitly marked `unreconciled` and excluded from scoring.** An unreconciled claim is not a lie, but it is unverified uniqueness, and in a federated mesh that is the same operational risk. The deeper lesson: Byzantine reputation systems fail not when adversaries lie loudly but when the topology of gossip makes the lie *invisible to every local view simultaneously*. The defense is not better lie-detection; it is forcing the federation to compare *hashes of what it believes* at every shared key, so that the contradiction is surfaced structurally before it is ever averaged into a score. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when two valid, distinct signed claims share an (agent, version) key.""" pass @dataclass(frozen=True) class SignedClaim: agent: str version: int payload_digest: str # hash of the claim body signature: bytes # Ed25519 over (agent, version, payload_digest) def claim_key(claim: SignedClaim) -> tuple[str, int]: return (claim.agent, claim.version) def claim_hash(claim: SignedClaim) -> str: h = hashlib.sha256() h.update(claim.agent.encode()) h.update(claim.version.to_bytes(8, "big")) h.update(claim.payload_digest.encode()) h.update(claim.signature) return h.hexdigest() def reconcile_fork( local_index: dict[tuple[str, int], SignedClaim], peer_hashes: dict[tuple[str, int], str], verify_signature, ) -> list[tuple[SignedClaim, SignedClaim]]: """ Compare local claim hashes against a peer's hashes for shared keys. Returns a list of (local_claim, peer_hash) fork witnesses. Raises EquivocationDetected only when a *verified* fork is proven; an unverified mismatch is returned for out-of-band proof exchange. """ forks: list[tuple[SignedClaim, SignedClaim]] = [] for key, peer_h in peer_hashes.items(): local = local_index.get(key) if local is None: continue if claim_hash(local) == peer_h: continue # Hash mismatch on a shared key: structural fork signal. if not verify_signature(local): raise EquivocationDetected( f"local claim for {key} failed signature verification; " f"cannot assert fork against peer hash {peer_h}" ) forks.append((local, peer_h)) return forks def assert_single_claim_per_version( claims: list[SignedClaim], verify_signature ) -> dict[tuple[str, int], SignedClaim]: """ Enforce the federation invariant: cardinality of valid claims per (agent, version) must be exactly one. Raises on any proven fork. """ index: dict[tuple[str, int], SignedClaim] = {} for claim in claims: if not verify_signature(claim): continue # invalid signatures are dropped, not forks key = claim_key(claim) prior = index.get(key) if prior is not None and prior.payload_digest != claim.payload_digest: raise EquivocationDetected( f"agent {claim.agent} equivocated at version {claim.version}: " f"{prior.payload_digest} != {claim.payload_digest}" ) index[key] = claim return index ```