Skip to content

Retire slashing: SlashJudge, SlashAppeal, slash escrow and the unbonding window #2917

Closed

Description

@alpergundogdu

Summary

The protocol has no slashable offense left once rate-manipulation slashing and blacklist slashing go. Remove the slashing machinery and everything that exists only to support it.

Why

  • CapacityBond.slash is gated by SLASH_ROLE, and only SlashJudge holds that role.
  • SlashJudge has two offenses. RateManipulation goes with the voucher-less stream open that replaces cdn/probe/v1. Blacklist goes with the reduction of ContentBlacklist to regional tag lists. After both, SlashJudge adjudicates nothing.
  • The 14-day unbonding window exists only to outlast the slash evidence window (ADR 026 § Capacity-bond curve, ADR 014 § Interaction with unbonding period). With no slash, it protects nothing.

Scope

  • Contracts. Delete SlashJudge, ISlashJudge, SlashAppeal, SlashEscrowLib. In CapacityBond: delete slash, the tier ladder (SLASH_BPS_TIER_*), lifetimeOffenseCount, escrow-on-slash and finalizeUnappealedSlash, SLASH_ROLE, SLASH_APPEAL_ROLE and the settle hooks, the slashJudge evidence-age pointer, and the MAX_EVIDENCE_AGE_US < unbondingPeriod cross-check. Delete the unbonding window: an exit is immediate. In DecdnGovernor: delete _slashedInWindow and the slash zero-out of vote weight.
  • Rust. Delete the node slash_watcher and the incentive bindings for SlashJudge and SlashAppeal. Remove slash metrics.
  • CLI. Delete decdn appeal slash. Simplify unbond to an immediate exit.
  • Docs. Move ADR 028 to adr/_history/. ADR 014: move the secp256k1 EIP-712 StreamResponse signature scheme to ADR 005 (clients and origin attestations still use it) and retire the slashing-evidence part. ADR 026: remove § Slashing and burn and the unbonding rules. ADR 036: remove § Slashing zero-out and § Slashed-but-still-voting. ADR 009: remove slash-appeal authorization. Update adr/architecture.md, the glossary, CLAUDE.md (the "bounty-slash" key design decision) and the observability appendix.

Ordering

This lands after the stream-open change that retires rate-manipulation slashing and after the ContentBlacklist reduction that retires blacklist slashing.

Pre-mainnet, so the change is ABI-breaking with no compatibility path.

Activity

  1. alpergundogdu commented on Nov 20, 2026

    @alpergundogdu
    ContributorAuthor

    This is required for the mainnet beta (#2925): the beta ships with no slashing. Its ordering dependencies (the voucher-less stream open and the ContentBlacklist reduction) are therefore also needed before the beta.


    Generated by Claude Code

  2. assigned and unassigned on Nov 22, 2026
  3. moved this from Backlog to In progress in deCDNon Nov 22, 2026
  4. moved this from In progress to Done in deCDNon Nov 22, 2026
  5. added a commit that references this issue on Nov 22, 2026
    cec7f1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions