Skip to content

docs: prevent slash escalation gaming via increasing reset periods - #103

Merged
thiras merged 2 commits into
mainfrom
fix/slash-escalation-gaming
Apr 1, 2026
Merged

thiras merged 2 commits into
mainfrom
fix/slash-escalation-gaming

Conversation

@thiras

@thiras thiras commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix: The 90-day fixed offense counter reset in ADR 004 allowed nodes to misbehave once every 91 days, always receiving the minimum 5% slash and never facing escalation or auto-ejection
  • Solution: Replace with increasing reset periods per lifetime offense (90 → 180 → 360 days) using formula baseResetPeriod × min(2^(lifetimeOffenses - 1), 4). Lifetime counter never resets.
  • ADR 009: Add governable baseSlashResetPeriod parameter with safety bounds (30–365 days). Multiplier schedule is hardcoded to prevent governance from flattening the anti-gaming curve.

Test plan

  • Verify #slash-amounts-escalating anchor resolves from ADR 011 and ADR 003 references
  • Grep for stale "90 days without incidents" / "30 days without incidents" references across all ADRs
  • Confirm ADR 009 safety bounds table renders correctly with the new row
  • Review worked example in ADR 004 for correctness

🤖 Generated with Claude Code

…DR 004, 009)

The 90-day fixed offense counter reset allowed nodes to misbehave once
every 91 days, always receiving the minimum 5% first-offense penalty and
never facing escalation or auto-ejection. Replace with increasing reset
periods per lifetime offense (90 → 180 → 360 days) so repeated gaming
becomes progressively more expensive in time-locked capital. Add
governable base reset period to ADR 009 safety bounds (30–365 days).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings April 1, 2026 22:20

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

Updates the protocol’s slashing escalation documentation to prevent “once per reset period” gaming by making the tier-reset clean period increase with a node’s lifetime offenses, and adds a governable base reset period parameter with safety bounds in the governance ADR.

Changes:

  • Replace the fixed “reset after X days” concept with increasing reset periods (90 → 180 → 360 days) based on lifetime offense count, including formula + worked example.
  • Introduce a governable baseSlashResetPeriod parameter (30–365 days) and document why only the base is governable (multiplier schedule is hardcoded).
  • Update cross-references/anchors to point at the revised escalating slashing section.

Reviewed changes

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

File Description
adr/004-tokenomics.md Documents the new increasing reset-period model for slashing tier decay, with formula, example, and storage notes.
adr/009-governance.md Adds baseSlashResetPeriod safety bounds and explains the anti-gaming rationale and non-governable multiplier schedule.

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

Comment thread adr/004-tokenomics.md Resolved
Comment thread adr/004-tokenomics.md Resolved
Comment thread adr/009-governance.md Resolved

@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 updates the tokenomics and governance ADRs to introduce a dynamic slashing escalation reset mechanism. It implements increasing reset periods based on a node's lifetime offense count to prevent periodic 'gaming' of the slashing tiers, where the StakingRegistry tracks lifetime offenses and the last offense timestamp to calculate effective tiers. Feedback was provided regarding the slash() function logic, suggesting that it must calculate the current decayed tier before incrementing to ensure the escalation level is updated correctly.

Comment thread adr/004-tokenomics.md Resolved
…rder

- Guard formula with max(lifetimeOffenses, 1) to avoid 2^(-1) underflow
  when lifetimeOffenses = 0
- Make the 4× multiplier cap explicit in the opening sentence
- Clarify that 365-day safety bound is on the base period; effective max
  is 1,460 days (4 × 365) at 3+ lifetime offenses
- Fix slash() logic: compute currentTier() before incrementing to apply
  decay before escalation, preventing stale tier increments

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit fe6c5e8 into main Apr 1, 2026
@thiras
thiras deleted the fix/slash-escalation-gaming branch April 1, 2026 22:29
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.

2 participants