Skip to content

feat: per-buyer cap on concurrent open disputes #477

Description

@shakurJJ

Summary

set_max_concurrent_disputes caps concurrent disputes contract-wide. This proposes a separate, optional per-buyer cap so one high-dispute buyer can't consume the entire global budget.

Proposed Behaviour

  • Admin can set a per-buyer concurrent open-dispute cap, independent of the global cap.
  • raise_dispute/raise_partial_dispute check both the global cap (existing behaviour) and the buyer's cap (if configured) before allowing a new dispute.
  • A buyer with no configured cap is subject only to the global cap, unchanged from today.

Acceptance Criteria

  • Admin can set/get a buyer's concurrent-dispute cap
  • A buyer with no configured cap is unaffected (today's behaviour)
  • A buyer at their configured cap cannot raise a new dispute even if the global cap has room
  • Tests cover both caps interacting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions