Skip to content

ADR 014: drop SlashJudge.maxActiveChallengesPerNode — synchronous resolution removed the threat #494

Closed

Description

@alpergundogdu

Proposal (for discussion)

`SlashJudge` has a `maxActiveChallengesPerNode` cap (PoC default 10, governable [1, 50]) that reverts new challenges against a node already at the cap. After PR #480's collapse to synchronous resolution, the threat this defends against doesn't appear to exist anymore.

Affected text

adr/014-on-chain-verification.md:155 — `Challenge rate limit` subsection inside `ISlashJudge`:

`SlashJudge` enforces a maximum number of concurrent active challenges per target node address: `maxActiveChallengesPerNode` (PoC: 10, production safety bound: [1, 50])… Although all three offenses resolve synchronously and do not accumulate "active" state in the dispute sense, the cap still bounds per-block transaction-level griefing where a well-funded attacker batches many simultaneous spurious challenges to force the defender to monitor and dispute outcomes off-chain.

Why it's possibly dead weight

The ADR itself acknowledges offenses "resolve synchronously and do not accumulate 'active' state in the dispute sense." Walking through the cases:

Challenge type Outcome Defender side-effect
Spurious (fails verification) Reverts; no bond transfer None — there's nothing to "monitor and dispute outcomes off-chain" because there's no off-chain dispute path post PR #480
Valid Synchronous slash via `StakingRegistry.slash()` Operator slashed for actual cryptographic offense (signed contradictory messages or signed delivery for blacklisted hash)

Spurious challenges already cost the attacker gas with zero defender side-effect. Valid challenges deserve to slash the operator. The cap doesn't meaningfully slow a wealthy attacker either: bonds are returned on success, so 10 simultaneous valid challenges only cost the attacker gas.

Proposed change

  • Remove the cap, the per-target storage counter, and the subsection
  • Keep the natural defenses: 100 TOKEN bond, gas cost, requirement of valid cryptographic evidence

Caveat / what would change my mind

The strongest defense of the cap is "what about an attacker batching many valid challenges to walk an operator through 5%→15%→50% in one block?" — but that scenario is the operator getting what they earned (each challenge requires real on-chain-verifiable evidence), and slowing it down only helps a still-misbehaving operator.

Confidence / size

  • Confidence: MEDIUM — defensible argument exists for keeping; rationale text in the ADR doesn't quite hold up.
  • Diff size: ~25 lines (subsection removal, storage slot, one revert path), 1 ADR + future contract stub.

Audit pattern

(1) Defense for an already-prevented threat — synchronous resolution removed the off-chain dispute path the cap was meant to throttle.

🤖 Surfaced via internal overengineering audit, 2026-05-08

Activity

  1. added
    design:adr
    on May 9, 2026
  2. self-assigned this
    on May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adr

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions