Repository navigation
docs(adr): drop SlashJudge.maxActiveChallengesPerNode — synchronous resolution removed the threat - #501
Conversation
…esolution removed the threat Closes #494. The `##### Challenge rate limit` subsection in ADR 014 and its row in ADR 009's governable-parameters table are stale artifacts of the previous async dispute design. After PR #480 dropped `OffenseType.Corruption` and §2's optimistic challenge-response, all remaining offense types (Phantom, RateManipulation, Blacklist) resolve synchronously at submit time — ADR 014 lines 147–150 and §Bond Handling line 199 already concede this. Spurious challenges revert without bond transfer (line 200) so there is nothing for a defender to monitor or dispute off-chain; valid challenges deserve to slash. Operator-side appeals live in ADR 028 against `SafetyReserve` with their own deterrents and don't motivate a `SlashJudge`-side cap. No contract code is affected — `crates/contracts/` is empty. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Removes documentation references to SlashJudge.maxActiveChallengesPerNode from the ADRs, aligning ADR 014/009 with the post-#480 model where remaining offense types resolve synchronously at submit time and do not accumulate “active challenge” state.
Changes:
- Deleted the “Challenge rate limit” subsection from
adr/014-on-chain-verification.md. - Removed the “Max active challenges per node” governable-parameter table row from
adr/009-governance.md. - Verified no remaining repository references to
maxActiveChallengesPerNode/ “Challenge rate limit” / “Max active challenges per node”.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| adr/014-on-chain-verification.md | Drops the challenge rate-limit subsection under ISlashJudge now that synchronous resolution makes “active challenges” non-applicable. |
| adr/009-governance.md | Removes the corresponding governable parameter row to keep the governance parameter list consistent with ADR 014. |
💡 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 removes the maxActiveChallengesPerNode parameter and its associated rate-limiting logic from the governance and on-chain verification documentation (ADR 009 and ADR 014). I have no feedback to provide as there were no review comments to evaluate.
Pushed harder on whether the cap is genuinely dead weight — yes, it isAfter the initial review I went back and read ADR 014 in full + the diff history. The investigation tightened the case for removal rather than loosening it. Smoking gun: PR #480's own diff retrofitted the justificationDiff of the §Challenge rate limit subsection at PR #480:
The original rationale (counter-evidence response burden) was load-bearing — async dispute meant defenders had operational state to monitor. PR #480 deleted that flow but kept the cap and replaced the rationale with an awkward "although there's no active state, …" hedge. Issue #494 correctly identifies this hedge as exactly the part that fails: with no off-chain dispute path, the defender has nothing to monitor. Threat-modeling sweep — no surviving role
Maximum economic harm is bounded at ~70% by the 5/15/50 escalation + auto-ejection (ADR 026 §8). After the 3rd slash, additional slashes are inert — so the cap can't even reduce attacker damage, only spread it across more blocks, which gives an operator no defense window in the synchronous design. Two adjacent artifacts not in this PR (recommend follow-ups, not blockers)
RecommendationStands as-is. Cap removal is correct; the "per-block transaction-level griefing" defense it claimed is empty in the synchronous-resolution design. |
Summary
##### Challenge rate limitsubsection fromadr/014-on-chain-verification.mdand theMax active challenges per noderow fromadr/009-governance.md's governable-parameters table.OffenseType.Corruptionand §2's optimistic challenge-response, all three remaining offense types (Phantom, RateManipulation, Blacklist) resolve synchronously at submit time. ADR 014 already concedes this twice — the inline interface comment (lines 147–150) and §Bond Handling (line 199). Spurious challenges revert and the bond is not transferred (§Bond Handling line 200), so there is nothing for a defender to "monitor and dispute outcomes off-chain." Valid challenges deserve to slash. Operator-initiated appeals live in ADR 028 againstSafetyReservewith their own bond / frequency-cap deterrents and don't motivate aSlashJudge-side cap.crates/contracts/is empty perdecdn/CLAUDE.md.Closes #494.
Test plan
grep -rn 'maxActiveChallenges\|Challenge rate limit\|Max active challenges' decdn/returns no matches.ISlashJudgeinterface fence at line 152 is followed by a blank line and#### Evidence Verification Per Offense Type(no orphaned#####).Max evidence agerow still sits betweenNamespace transfer timelockandMMR retention buffer).pre-commit run --all-files(markdownlint + trailing-whitespace etc.) passed on commit.🤖 Generated with Claude Code