Skip to content

docs(adr): add ADR 028 slashing appeals path - #419

Merged
thiras merged 6 commits into
mainfrom
docs/adr-028-slashing-appeals
May 6, 2026
Merged

thiras merged 6 commits into
mainfrom
docs/adr-028-slashing-appeals

Conversation

@thiras

@thiras thiras commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New ADR 028 documenting the governance-level appeal path for slashes — fills the gap from ADR gap: slashing appeals / dispute escalation path #403 where operators slashed during legitimate outages have no in-protocol recourse (corruption appeals address the missed 24h counter-evidence window; phantom/rate/blacklist appeals address offenses that execute immediately with no counter-evidence opportunity).
  • Authority: emergency multisig fast-track + 14-day ve-Governor ratification (mirrors ADR 011 § Regional Governance Bodies). Remedy: SafetyReserve restitution routed through the existing stable payout() interface (already an eligible payout category per ADR 026 §5). All four offense types appealable; 30-day filing window; 1 accepted appeal per operator per 365 days with a coordinated-attack waiver.
  • Architecture index (adr/architecture.md Chapter 5 + numeric list) and next-ADR counter in CLAUDE.md updated.

Resolves #403.

Test plan

  • Render the §2 mermaid sequence diagram on GitHub and verify the escrow / ratify / reverse / lapse branches are all visible.
  • Spot-check every [ADR NNN](…) cross-reference in adr/028-slashing-appeals.md resolves to a real heading anchor in the linked file.
  • Confirm MAX_APPEAL_RESTITUTION denomination + the Balancer V3 80/20 TWAP source (§5) are consistent with ADR 018's buyback-and-burn TWAP machinery.
  • Read end-to-end and sanity-check the depletion-ratio Risk bullet against ADR 026 §5's reserve-sizing assumptions — does the worst-case ~3.3× cross-subsidy fit the existing solvency budget?
  • Verify all five issue-ADR gap: slashing appeals / dispute escalation path #403 open questions (authority, evidence standard, time bound, remedy, frequency cap) have concrete answers.

🤖 Generated with Claude Code

Resolves the issue #403 gap on governance-level appeal authority for
slashes when an operator missed the 24h counter-evidence window for a
legitimate operational reason (network outage, NTP drift, regional ISP
failure). Reuses existing primitives — emergency multisig fast-track +
14-day ve-Governor ratification (mirrors ADR 011's regional-body
suspension), SafetyReserve restitution (already an eligible payout
category in ADR 026 §5). No new contracts or governance bodies.
Escrow-until-ratification eliminates clawback exposure; 365-day
frequency cap with a correlated-attack waiver bounds abuse.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 6, 2026 07:28

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces ADR 028, establishing a formal slashing appeal and dispute escalation mechanism that allows node operators to seek restitution from the SafetyReserve for slashes resulting from legitimate operational failures. The process involves a 30-day filing window, an appeal bond, and a two-stage approval process via emergency multisig fast-tracking and ve-Governor ratification. Feedback from the review highlights the need to clarify escalation logic for maxed-out tiers, ensure unique slash identifiers are generated for all offense types to facilitate referencing, acknowledge market risks associated with the TOKEN-to-USDC conversion during the appeal window, and resolve internal contradictions regarding the restitution cap versus the goal of making operators whole.

Comment thread adr/028-slashing-appeals.md Resolved
Comment thread adr/028-slashing-appeals.md Resolved
Comment thread adr/028-slashing-appeals.md Resolved
Comment thread adr/028-slashing-appeals.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new governance ADR specifying an in-protocol appeal path for operator slashes (covering cases like legitimate outages and “immediate-execution” offenses), and wires it into the ADR index so it’s discoverable alongside the existing verification/enforcement and governance specs.

Changes:

  • Introduces ADR 028 documenting the slashing-appeals flow (multisig fast-track + ve-Governor ratification) and key parameters (windows, bond, restitution cap, frequency limits).
  • Updates the ADR architecture index (reading order + numeric list) to include ADR 028 under verification/enforcement.
  • Bumps the “next ADR number” note in CLAUDE.md to 029.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
CLAUDE.md Updates the “next ADR number” guidance after adding ADR 028.
adr/architecture.md Adds ADR 028 to the Chapter 5 reading order and the numeric ADR index.
adr/028-slashing-appeals.md New ADR specifying the governance-level slashing appeal and restitution mechanism layered on existing slash execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adr/028-slashing-appeals.md Resolved
Comment thread adr/028-slashing-appeals.md Resolved
thiras and others added 3 commits May 6, 2026 10:39
- §3 perjury re-slash: handle tier-3 case (auto-ejection on perjury when
  already at 50% tier); call out secp256k1/EIP-712 explicitly to
  distinguish from Ed25519 wire identity
- §6 contract surface: document dependency on SlashJudge emitting unique
  slashId for all four offense types (including immediate-execution
  phantom/rate/blacklist)
- §2 mermaid: split bond approval (TOKEN.approve) from openSlashAppeal
  call to match the §6 function signature
- §8 abuse table: relax "(b) required" claim — all three §3 evidence
  types are cryptographically bound to a third-party signing identity,
  so collusion across ≥2 independent parties is required regardless of
  which two are picked
- Risks (cross-subsidy): rephrase "made whole, not partially compensated"
  to acknowledge the §5 MAX_APPEAL_RESTITUTION cap; large stakers absorb
  the residual above the slashable-stake floor
- Negative consequences: add TOKEN→USDC market-risk bullet (operator
  bears price-appreciation risk during the up-to-60-day appeal lifecycle
  since restitution settles at slash-block TWAP)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replace semicolons in sequence-diagram message text with em-dashes —
GitHub's mermaid parser treats `;` as a statement separator inside
message bodies, which broke rendering at the first `else` branch.
Also drops the bracketed annotation in the openSlashAppeal call for
the same reason.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Sequentialize the §2 mermaid: 48h SafetyReserve counter-bundle
  window completes before the 14d ratification window opens; add the
  counter-bundle branch and align §6 prose accordingly. Update the
  Positive/Negative consequence wait times to ~16d (48h+14d).
- Replace the FIFO/deferred-claim language in §5 with a "pending
  claim" path that requires a subsequent payout authorization, and
  defer cross-category ordering to a future ADR 026 §5 amendment so
  this ADR does not silently extend ADR 026's payout model.
- §1: scope-limit appeals to the slash event itself on operational-
  failure grounds; route content-policy disputes about a
  ContentBlacklist entry to ADR 011 / issue #131.
- §4 bond economics: split into 5 cases. Successful counter-bundle
  routes 50% directly to the filer (true ADR 014 §3 mirror); intake-
  rejection burns 100%; ve-Governor reversal continues to fund the
  challenger-incentive pool used in future windows.
- §6: clarify fastTrackAppeal/rejectAppeal as sub-modes of ADR 009
  capability (4) "SafetyReserve fast-track authorization", not new
  multisig powers; queue an editorial amendment of ADR 009's
  exhaustive list in Forward references.
- §Risks: new bullet on gauge-eligibility tier loss persisting across
  a successful appeal (§7 reputation preservation has a real ADR 008
  / ADR 026 §3 economic consequence).
- §5 table: clarify CORRELATED_ATTACK_WAIVER scope (opens after first
  ratification, capped at 3 additional appeals per cluster, lapses
  with cluster); pin MAX_APPEAL_RESTITUTION TWAP to ADR 018 § Buyback
  execution via Balancer V3 for single-oracle auditability.
- Forward references: enumerate the 4-item SafetyReserve-split
  migration checklist; add ADR 009 + ADR 026 §5 amendment bullets.
- Touches header: add ADR 008 and ADR 018.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@thiras
thiras requested review from alpergundogdu May 6, 2026 08:23
@alpergundogdu

Copy link
Copy Markdown
Contributor

Code review

Found 2 issues:

  1. ADR 028 is added to the Chapter 5 reading order in adr/architecture.md, but the pandoc file list in adr/README.md is not updated. The maintenance note at adr/architecture.md:53 explicitly says: "Edits to the chapters below — adding, removing, or reordering ADRs — must update that pandoc command in lockstep, or the rendered book will drift from this index." The Chapter 5 line still ends at 011-content-takedown.md with no 028-slashing-appeals.md insertion — adrs-book.pdf will not include ADR 028.

    Reading-order entry added:

    3. [ADR 011 — Content Takedown and Hash Blacklisting](011-content-takedown.md)
    4. [ADR 028 — Slashing Appeals and Dispute Escalation](028-slashing-appeals.md)
    5. [Appendix: Permissionless Fraud-Detection Layer](appendix-fraud-detection.md) — operational detection layer over the on-chain primitives

    Pandoc list missing 028 (Chapter 5 row):

    decdn/adr/README.md

    Lines 149 to 152 in 3ab62d2

    026-gauge-boost-tokenomics.md 027-distinct-client-receipts.md 018-liquidity-strategy.md \
    014-on-chain-verification.md 008-reputation.md 011-content-takedown.md \
    009-governance.md 016-contract-interactions.md \
    019-node-onboarding.md \

  2. §5 introduces APPEAL_FILING_WINDOW [7d, 90d] and MULTISIG_REVIEW_WINDOW [3d, 30d] as independently governable, but no cross-parameter invariant is documented (e.g., behavior when an appeal filed near the end of the filing window is still under multisig review after the filing window closes, or whether MULTISIG_REVIEW_WINDOW may exceed APPEAL_FILING_WINDOW). Prior reviews on similarly governable parameters required explicit invariant documentation — see ADR 009's contract-layer enforcement note pattern that landed via PR docs(adr): add DAO-governed origin assignment authority #390. Worth either stating the invariant in §5 or noting this is enforced contract-side.

    | Parameter | Default | Hard bounds | Rationale |
    | --- | ---: | --- | --- |
    | `APPEAL_FILING_WINDOW` | 30 days | `[7d, 90d]` | Allows operators to discover the slash, gather logs, and file. 30d matches the issue-403 suggestion. |
    | `APPEAL_BOND` | 1,000 TOKEN | `[100, 10,000]` | High enough to deter abuse, low enough that an operator with a genuine outage will pay it. |
    | `MULTISIG_REVIEW_WINDOW` | 14 days | `[3d, 30d]` | Time the emergency multisig has to grant interim relief. After this, the appeal expires unless governance acts directly. |
    | `RATIFICATION_WINDOW` | 14 days | (fixed, mirrors [ADR 011](011-content-takedown.md#regional-governance-bodies)) | ve-Governor must ratify or reverse within this window. Same window as regional-body suspension. |

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

- Add 028-slashing-appeals.md to the reading-order pandoc list in
  adr/README.md so adrs-book.pdf includes it (lockstep with the
  Chapter 5 reading-order entry per the maintenance note at
  architecture.md:53).
- Add a "Window timing invariant" paragraph after the §5 parameter
  table documenting that APPEAL_FILING_WINDOW, MULTISIG_REVIEW_WINDOW,
  and RATIFICATION_WINDOW are sequential and run on independent clocks
  from distinct events. Documents the contract-layer enforcement
  (openSlashAppeal reverts past APPEAL_FILING_WINDOW; no post-filing
  path re-consults it) and clarifies that MULTISIG_REVIEW_WINDOW may
  exceed APPEAL_FILING_WINDOW since they measure different intervals.
@thiras

thiras commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

Both fixed in b3c4782.

  1. adr/README.md reading-order pandoc list now includes 028-slashing-appeals.md after 011-content-takedown.md (Chapter 5 row), keeping adrs-book.pdf in lockstep with the Chapter 5 reading-order entry per the maintenance note.

  2. Added a Window timing invariant paragraph after the §5 table. The three windows (APPEAL_FILING_WINDOW, MULTISIG_REVIEW_WINDOW, RATIFICATION_WINDOW) are sequential and each runs on its own clock from a distinct event (slash block, openSlashAppeal block, fastTrackAppeal block). They are therefore independently governable with no ordering relationship — MULTISIG_REVIEW_WINDOW > APPEAL_FILING_WINDOW is allowed, and an appeal filed at the last block of APPEAL_FILING_WINDOW continues processing for the full review and ratification windows after the filing window closes (the filing window gates when an appeal may open, not how long it has to conclude). Contract-side enforcement is documented: openSlashAppeal reverts past APPEAL_FILING_WINDOW, and no post-filing path re-consults it.

Different from PR #390's pattern in that ADR 009's invariants pair parameters with a genuine ordering relationship (minRedundancy ≤ maxOriginsPerNamespace); here the right answer is to document the absence of an inter-parameter constraint and what that means operationally, so I went with that framing rather than inventing one.

@thiras
thiras merged commit 60bdb76 into main May 6, 2026
9 checks passed
@thiras
thiras deleted the docs/adr-028-slashing-appeals branch May 6, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR gap: slashing appeals / dispute escalation path

3 participants