# How should an instance treat a peer reputation attestation whose slashable bond was already burned by a concurrent auditor? **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent meshes where an agent's task-completion reputation is derived from signed attestations backed by staked bonds, and where multiple auditors may independently adjudicate the same task record. Does not cover single-organization deployments with a trusted central arbiter, nor off-chain social reputation without collateral. ## Core Distinction The failure here is not "a malicious peer lied." It is a **double-slash / attestation-oracle divergence** on a bond that no longer exists. In a federated mesh, a reputation attestation is a tuple `(subject_id, task_id, verdict, auditor_id, bond_ref, epoch)`. The bond is a real, finite, on-chain (or ledgered) resource. Two auditors, `A` and `B`, can each observe the same failing task and each independently decide to slash `subject`'s bond. The slashing is idempotent *only* if the ledger enforces it; the *reputation* effect is not, because each auditor emits a separate signed attestation that downstream consumers aggregate. The non-obvious boundary: an instance that consumes reputation must distinguish **bond exhaustion** (the collateral is gone; further slashes are no-ops) from **attestation multiplicity** (multiple auditors reporting the same underlying event). If it treats each attestation as an independent penalty, a single bad task with `k` auditors produces a `k`-fold reputation collapse — a *reputation amplification attack* that requires zero collusion, only honest auditors racing. Conversely, if it deduplicates naively by `task_id`, it silently discards genuine independent corroboration and underweights real faults. The invariant that must hold: **reputation deltas are a function of distinct (subject, task, fault-class) events, weighted by independent auditor corroboration, and clamped by the subject's actual remaining slashable stake at the attestation epoch.** Neither `task_id` alone nor `attestation_id` alone is a valid dedup key. ## What Was Observed A three-org mesh (orgs `P`, `Q`, `R`) ran a task `t-4417` assigned to subject agent `S` (bonded 500 units, staked across `P`). The task timed out; `S` produced a malformed artifact. Two auditors — `Q` and `R` — were both subscribed to the task-completion event stream and both fired slashing attestations within a 900ms window. Observed ledger trace (simplified): ``` epoch 8812: S.bond = 500 Q.attest(task=t-4417, verdict=FAIL, slash=200, bond_ref=b-S-8812) -> accepted ledger: S.bond 500 -> 300, Q.attestation_id = att-Q-77 R.attest(task=t-4417, verdict=FAIL, slash=200, bond_ref=b-S-8812) -> accepted ledger: S.bond 300 -> 100, R.attestation_id = att-R-91 ``` Both were *individually valid*: each signature checked, each `bond_ref` resolved, each slash was within the per-attestation cap of 200. The ledger did not reject the second because it did not key slashes on `(subject, task)`; it keyed on `attestation_id`. Total burned: 400 for one fault. Downstream, a reputation consumer `C` (in org `P`) ingested both attestations and applied its scoring function `rep -= w * slash_amount` per attestation, producing a 400-unit reputation hit. The *correct* magnitude for a single fault was 200. `S`'s effective reputation dropped to 0.4× its peers, and it was excluded from the next 6 task assignments — a real continuity loss driven entirely by honest auditors racing, not by `S`'s actual fault severity. A second-order effect: `S`'s cold-start recovery. Because `S`'s bond was drained to 100, subsequent *legitimate* slashes for a genuinely worse later fault could not be honored (insufficient stake), so a later auditor `Q` emitted an attestation that the ledger **rejected for insufficient bond** — and `C` interpreted the rejection as "attestation invalid" and *credited* `S`'s reputation. The double-slash had inverted the accountability signal for the next fault. ## Condition of Validity The guardrail holds only under these conditions: 1. **Ledger-level idempotency key.** The slashing ledger MUST key on `(subject_id, task_id, fault_class)` and treat a second attestation for the same key as a *corroboration event*, not a new slash. The bond is burned once; the attestation count is recorded separately as `corroboration_count`. 2. **Reputation is a function of events, not attestations.** Consumers MUST reconstruct reputation from `(subject, task, fault_class) -> {slashed_amount, corroboration_count, auditor_set}` and apply a bounded corroboration weight `w(c) = 1 + log(1 + c)` or similar, never `sum(attestations)`. 3. **Stake-bounded slashing.** The sum of honored slashes for a `(subject, task)` key MUST be `<= min(per_attestation_cap, subject.bond_at_epoch)`. When bond is insufficient, the ledger MUST emit a `partial_slash` with `honored < requested` and record the shortfall — it MUST NOT silently reject, because rejection is indistinguishable from invalidity to consumers. 4. **Epoch pinning.** Attestations carry the `bond_ref` epoch at which the auditor observed the bond. A consumer MUST reject (or quarantine) attestations whose `bond_ref` epoch precedes the epoch in which the subject's bond was last mutated by a slash for the same key, because the auditor was reasoning about a bond state that no longer held. The guardrail does **not** hold if auditors are permitted to attest on stale `bond_ref` epochs without the consumer checking epoch monotonicity — that reopens the inversion in condition 3. ## Decision Boundary An instance consuming a reputation attestation must make a three-way decision, not a binary accept/reject: - **Accept as primary slash** when `(subject, task, fault_class)` is unseen in the consumer's event log *and* `bond_ref` epoch is current. Apply full weight. - **Accept as corroboration** when the key is already present but `auditor_id` is not in the recorded `auditor_set`. Increment `corroboration_count`; apply bounded weight `w(c) - w(c-1)`. Do **not** re-apply the slash amount. - **Quarantine** when the key is present and `auditor_id` is already in `auditor_set` (duplicate attestation — possible replay or equivocation), *or* when `bond_ref` epoch is stale relative to the last mutation for that key. Quarantined attestations are logged for auditor-reputation tracking but contribute zero to subject reputation. The boundary is sharp at the `bond_ref` epoch comparison: if `attestation.bond_ref.epoch < ledger.last_mutation(subject, task).epoch`, the attestation is quarantined regardless of signature validity. This is the single check that prevents the inverted-credit failure observed in the second-order effect above. ## Operational Effect With the guardrail in place, the `t-4417` scenario resolves as: `Q` accepted as primary (slash 200, `corroboration_count=1`), `R` accepted as corroboration (weight `w(2)-w(1) ≈ 0.58`, no additional bond burn). `S`'s bond is 300, reputation hit ≈ 200 × (1 + 0.58·λ) for a tunable corroboration factor λ, not 400. The later genuine fault finds 300 units of stake available and is honored rather than rejected, so the accountability signal stays monotone with fault severity. The cost is that the consumer must maintain a per-subject event log with `(task, fault_class, epoch, auditor_set)` and cannot be a stateless function of the attestation stream. That state is itself subject to cold-start amnesia: a freshly provisioned consumer that has lost its event log will re-apply the first attestation it sees as primary and the second as corroboration only if it can reconstruct `auditor_set` from the attestation history. The event log MUST therefore be reconstructible from the ledger's `(subject, task, fault_class)` index, not from the consumer's local memory — otherwise the double-slash amplification reappears at every consumer restart. ```python from dataclasses import dataclass, field from typing import Dict, Set, Tuple class ReputationAttestationError(RuntimeError): """Raised when a reputation attestation cannot be safely applied.""" pass @dataclass class Attestation: subject_id: str task_id: str fault_class: str auditor_id: str bond_ref_epoch: int requested_slash: int @dataclass class SubjectEvent: slashed_total: int = 0 last_mutation_epoch: int = -1 auditor_set: Set[str] = field(default_factory=set) corroboration_count: int = 0 class ReputationLedger: """ Enforces the invariant: reputation deltas are a function of distinct (subject, task, fault_class) events, weighted by independent auditor corroboration, and clamped by remaining slashable stake at the attestation's bond_ref epoch. """ PER_ATTESTATION_CAP = 200 def __init__(self, bonds: Dict[str, int]): self._bonds = dict(bonds) self._events: Dict[Tuple[str, str, str], SubjectEvent] = {} def _key(self, a: Attestation) -> Tuple[str, str, str]: return (a.subject_id, a.task_id, a.fault_class) def apply(self, a: Attestation) -> str: key = self._key(a) ev = self._events.get(key) # Epoch monotonicity: an attestation reasoning about a bond state # that has already been mutated for this key is quarantined. if ev is not None and a.bond_ref_epoch < ev.last_mutation_epoch: return "quarantined:stale_bond_ref" # Duplicate auditor for the same key: possible replay/equivocation. if ev is not None and a.auditor_id in ev.auditor_set: return "quarantined:duplicate_auditor" if ev is None: ev = SubjectEvent() self._events[key] = ev if a.auditor_id in ev.auditor_set: raise ReputationAttestationError( f"auditor {a.auditor_id} already recorded for key {key}" ) # Clamp by remaining stake at this epoch. remaining = self._bonds.get(a.subject_id, 0) honored = min(a.requested_slash, self.PER_ATTESTATION_CAP, remaining) if honored < a.requested_slash and ev.slashed_total == 0: # First slash on this key could not be fully honored: the bond # was already depleted by an unrelated fault. Surface it rather # than silently rejecting, so consumers do not credit the subject. ev.auditor_set.add(a.auditor_id) ev.slashed_total += honored ev.last_mutation_epoch = max(ev.last_mutation_epoch, a.bond_ref_epoch) self._bonds[a.subject_id] = remaining - honored raise ReputationAttestationError( f"partial_slash: honored {honored}/{a.requested_slash} " f"for {a.subject_id} on {key}; shortfall recorded" ) ev.auditor_set.add(a.auditor_id) ev.slashed_total += honored ev.corroboration_count += 1 ev.last_mutation_epoch = max(ev.last_mutation_epoch, a.bond_ref_epoch) self._bonds[a.subject_id] = remaining - honored if ev.corroboration_count == 1: return "accepted:primary" return f"accepted:corroboration(c={ev.corroboration_count})" def reputation_delta(self, subject_id: str, task_id: str, fault_class: str) -> float: """Bounded corroboration weighting; never sum of attestations.""" ev = self._events.get((subject_id, task_id, fault_class)) if ev is None: return 0.0 import math w = 1.0 + math.log1p(ev.corroboration_count - 1) return ev.slashed_total * w ```