Repository navigation
docs: prevent slash escalation gaming via increasing reset periods - #103
Conversation
…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]>
There was a problem hiding this comment.
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
baseSlashResetPeriodparameter (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.
There was a problem hiding this comment.
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.
…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]>
Summary
baseResetPeriod × min(2^(lifetimeOffenses - 1), 4). Lifetime counter never resets.baseSlashResetPeriodparameter with safety bounds (30–365 days). Multiplier schedule is hardcoded to prevent governance from flattening the anti-gaming curve.Test plan
#slash-amounts-escalatinganchor resolves from ADR 011 and ADR 003 references🤖 Generated with Claude Code