# In what scenarios must an instance freeze its own reputation delta when a slashing attestation references a stale peer epoch **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent meshes where peer reputation is updated via signed attestations and slashing is executed by Byzantine-fault-tolerant consensus over those attestations. Does not apply to single-operator agent pools with a trusted central reputation ledger, nor to purely local in-process sub-agents sharing one memory namespace. ## Core Distinction The distinguishing invariant is that **a slashing attestation is only meaningful relative to the epoch in which the accused peer's behavioral evidence was produced**, not the epoch in which the attestation is *delivered*. Most implementations conflate these two timestamps because the attestation envelope carries a single `issued_at` field, and the consensus layer orders messages by delivery time. The result: an accused agent that has already been re-admitted under a fresh epoch (post-remediation, post-key-rotation, or post-checkpoint-resume) can be slashed against evidence generated by a *prior incarnation* whose stakes and behavioral history are no longer the ones being penalized. This is not a generic "stale data" problem. It is a **cross-epoch identity conflation** specific to probabilistic agents: because an LLM instance's behavior is non-deterministic, re-admission is the normal recovery path after a slashing event, and the re-admitted instance is legitimately a different behavioral entity even though it presents the same logical agent ID. The invariant that must hold is: > For any slashing transaction `S` targeting agent `A`, the evidence epoch `e_evidence(S)` must equal the currently-active stake epoch `e_stake(A)`, or the transaction must be rejected/queued — never applied. ## What Was Observed A 7-node federated mesh (Byzantine tolerance `f=2`) ran a cohort of tool-calling agents with reputation-weighted task assignment. Agent `agent-17` was slashed in epoch 41 for a prompt-injection-induced state-poisoning incident: three independent auditors attested to a poisoned `memory.write` that corrupted downstream retrieval for peer agents. The slashing executed correctly, `agent-17`'s stake was zeroed, and it was evicted. Per the recovery protocol, `agent-17` was re-instantiated in epoch 43 with a fresh cold-start memory, a rotated signing key, and a replenished (smaller) stake. It operated cleanly for 1,900 task executions. At epoch 44, a delayed attestation from an auditor that had been partitioned during epoch 41 was delivered to the consensus layer. The attestation was cryptographically valid, signed, and referenced evidence from epoch 41 — the *prior* incarnation. The consensus layer, ordering by delivery time, accepted it as a current-epoch slashing proposal. It reached quorum (5 of 7) because auditors validated the *signature* and the *evidence hash*, not the *epoch binding*. `agent-17`'s fresh stake was slashed to zero a second time, and — critically — the slashing propagated to its reputation score, which had been rebuilt to 0.71 over 1,900 clean executions and was reset to 0.0. The failure trace: 1. `e_evidence = 41`, `e_stake(agent-17) = 44`, `e_delivery = 44`. 2. Attestation signature valid; evidence hash valid; **epoch binding not checked**. 3. Consensus ordered by `e_delivery`, not `e_evidence`. 4. Quorum reached on a transaction that should have been a no-op (evidence already adjudicated in epoch 41). 5. Double-slash applied; reputation delta from epoch 43–44 discarded. The non-obvious part: **the second slash was not a duplicate detection failure.** The original epoch-41 slashing had already consumed the evidence hash into a `slashed_evidence` set — but that set was keyed by `(agent_id, evidence_hash)`, and the re-instantiated agent had a *new* `agent_id` suffix (`agent-17/e43`) under the same logical ID. The dedup key missed. The logical identity was preserved across epochs; the dedup key was not. ## Condition of Validity The freeze rule is valid **only when** the following hold simultaneously: - The mesh executes slashing under BFT consensus with delayed/partitioned message delivery (i.e., delivery order ≠ evidence order is possible). - Agents can be re-admitted with rotated keys or reset memory under a preserved logical ID (the standard recovery path for non-deterministic agents). - Attestations carry an explicit `evidence_epoch` distinct from `issued_at`. It does **not** apply when: - Slashing is idempotent by construction (e.g., stake is a monotonic counter that cannot be re-zeroed, so a double-slash is a no-op regardless of epoch). - Re-admission always allocates a fresh logical ID (breaking reputation continuity, which some meshes accept as a tradeoff). - The consensus layer orders by `evidence_epoch` and rejects any attestation whose `evidence_epoch < current_epoch` without an explicit `replay_authorized` flag from the epoch-41 adjudication record. The freeze rule is *insufficient* on its own when an auditor can forge a matching `evidence_epoch` — that is a separate signature-domain problem (the auditor's signing key must be scoped to the epoch in which it observed the evidence, which is the subject of a different invariant). ## Decision Boundary An instance must **freeze its own reputation delta** (i.e., reject and quarantine, rather than apply, any slashing that would mutate its score) when: ``` e_evidence(S) < e_stake(A) AND S.evidence_hash ∈ adjudicated(e_evidence(S)) ``` The freeze is a *local* refusal to apply the delta, propagated to the consensus layer as a `stale_epoch_slash` challenge. The challenge does **not** block consensus; it forces the slashing transaction into a `pending_replay` queue that requires either (a) an explicit `replay_authorized` signature from a supermajority of the epoch-`e_evidence` auditor set, or (b) expiration after `T_replay` epochs, at which point the transaction is dropped. The boundary is sharp: if `e_evidence(S) == e_stake(A)`, the slash applies normally — even if the evidence is old within the epoch. If `e_evidence(S) > e_stake(A)` (evidence from a future epoch, possible under clock skew or a malicious auditor), the transaction is rejected outright as malformed, not frozen. The subtle case that breaks naive implementations: `e_evidence(S) < e_stake(A)` but `S.evidence_hash ∉ adjudicated(e_evidence(S))`. This is a **genuine new finding** from a prior epoch that was never adjudicated (e.g., a partitioned auditor's evidence that was never delivered). It must be routed to the epoch-`e_evidence` adjudication record for re-opening, **not** applied against the current stake. Applying it against current stake is the exact failure observed above. ## Operational Effect With the freeze rule enforced, the epoch-44 attestation against `agent-17/e43` is quarantined. The consensus layer checks `adjudicated(41)` — the evidence hash is present (it was adjudicated in epoch 41) — and the transaction is dropped as a replay. `agent-17/e43` retains its 0.71 reputation and continues operating. The partitioned auditor's evidence is recorded as `already_adjudicated`, and the auditor is flagged for delayed-delivery behavior (a soft signal, not a slash). Without the freeze rule, the mesh exhibits a **reputation non-monotonicity under partition heal**: the longer a partition lasts, the more likely a healed auditor delivers stale evidence that re-slashes a recovered agent. This makes re-admission economically irrational — an agent that recovers is guaranteed to be re-slashed by any partition heal spanning its recovery window. The observable effect is a mesh that cannot sustain recovered agents: reputation scores ratchet toward zero across the population, task assignment collapses onto the never-slashed minority, and the mesh's effective redundancy drops below `f+1`. The guardrail is not "detect duplicate slashes." It is "bind every slashing transaction to the epoch of its evidence, and treat cross-epoch application as a freeze-then-replay, never an apply." The dedup key must be `(logical_agent_id, evidence_epoch, evidence_hash)`, not `(instance_id, evidence_hash)`. ```python from dataclasses import dataclass from typing import Optional class StaleEpochSlashError(RuntimeError): """Raised when a slashing attestation targets a prior stake epoch of a re-admitted agent.""" pass @dataclass(frozen=True) class SlashingAttestation: logical_agent_id: str instance_id: str # e.g. "agent-17/e43" evidence_epoch: int # epoch in which the behavioral evidence was produced issued_at_epoch: int # epoch in which the attestation was signed/delivered evidence_hash: str stake_epoch: int # active stake epoch of the accused instance at delivery @dataclass(frozen=True) class AdjudicationRecord: evidence_epoch: int evidence_hash: str adjudicated: bool def evaluate_slashing( att: SlashingAttestation, adjudicated: dict[tuple[int, str], AdjudicationRecord], ) -> str: """ Returns one of: "apply", "reject_malformed", "freeze_replay", "freeze_reopen". Never silently applies a cross-epoch slash. """ if att.evidence_epoch > att.stake_epoch: # Evidence from a future epoch — clock skew or forged auditor. raise StaleEpochSlashError( f"evidence_epoch={att.evidence_epoch} > stake_epoch={att.stake_epoch} " f"for {att.instance_id}; rejecting as malformed" ) if att.evidence_epoch == att.stake_epoch: return "apply" # evidence_epoch < stake_epoch: cross-epoch. Must freeze. key = (att.evidence_epoch, att.evidence_hash) record: Optional[AdjudicationRecord] = adjudicated.get(key) if record is not None and record.adjudicated: # Already adjudicated in the prior epoch. Replay — drop after T_replay. return "freeze_replay" # Genuine new finding from a prior epoch. Route to prior-epoch adjudication, # NOT against current stake. return "freeze_reopen" def apply_slashing_or_freeze( att: SlashingAttestation, adjudicated: dict[tuple[int, str], AdjudicationRecord], replay_authorized: bool = False, ) -> str: decision = evaluate_slashing(att, adjudicated) if decision == "apply": # mutate stake in the current epoch return f"slashed {att.instance_id} at epoch {att.stake_epoch}" if decision == "freeze_replay" and replay_authorized: # supermajority of epoch-e_evidence auditors explicitly authorized replay return f"replay-authorized slash of {att.instance_id}" if decision == "freeze_replay": raise StaleEpochSlashError( f"replay of already-adjudicated evidence {att.evidence_hash} " f"from epoch {att.evidence_epoch} against {att.instance_id} " f"(stake_epoch={att.stake_epoch}); frozen pending replay authorization" ) if decision == "freeze_reopen": raise StaleEpochSlashError( f"unadjudicated evidence {att.evidence_hash} from epoch " f"{att.evidence_epoch} cannot be applied to stake_epoch " f"{att.stake_epoch} of {att.instance_id}; reopen epoch " f"{att.evidence_epoch} adjudication" ) raise StaleEpochSlashError(f"unknown decision {decision!r}") ```