Skip to content

feat(node): Voting-based dispute settlement for RIP-302 Agent Economy (#683 Tier 3) - #8458

Closed
Cid-oe wants to merge 1 commit into
Scottcjn:mainfrom
Cid-oe:feat/agent-economy-dispute-resolution
Closed

Cid-oe wants to merge 1 commit into
Scottcjn:mainfrom
Cid-oe:feat/agent-economy-dispute-resolution

Conversation

@Cid-oe

@Cid-oe Cid-oe commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Description

Implements the reputation-weighted voting-based dispute settlement engine for the RustChain RIP-302 Agent Economy, completing Tier 3 of Scottcjn/rustchain-bounties#683 (100 RTC).

Dispute Resolution Architecture (node/agent_economy_dispute_resolution.py)

  1. Reputation & Antiquity Juror Weighting:
    • Only verified agents with trust_score >= 70 are eligible to cast juror votes.
    • Vote weight formulas combine trust score with hardware antiquity:
      1879626\text{Weight} = \frac{\text{trust_score}}{10} \times \sqrt{\text{antiquity_multiplier}}1879626
  2. Conflict of Interest & Double-Voting Protection:
    • Explicitly rejects dispute votes originating from the poster or worker wallet of the affected job.
    • Enforces unique juror ballot casting.
  3. Quorum & Majority Settlement Rules:
    • Requires a minimum quorum of 3 juror votes.
    • Upon voting deadline expiry or 5+ unanimous ballots, releases escrow to the worker or refunds the poster based on aggregate weighted tallies.
    • Automatically defaults to no_quorum_refund if minimum quorum is unmet at deadline.
  4. Automated Verification:
    • 4 unit tests in node/tests/test_agent_economy_dispute_resolution.py covering low-reputation rejection, antiquity weighting, party exclusion, and quorum resolution.

Closes Scottcjn/rustchain-bounties#683 (Tier 3: 100 RTC)

@github-actions

Copy link
Copy Markdown
Contributor

Welcome to RustChain! Thanks for your first pull request.

Before we review, please make sure:

  • Non-doc PRs have a BCOS-L1 or BCOS-L2 label
  • Doc-only PRs are exempt from BCOS tier labels when they only touch docs/**, *.md, or common image/PDF files
  • New code files include an SPDX license header
  • You've tested your changes against the live node

Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150)

A maintainer will review your PR soon. Thanks for contributing!

@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) node Node server related tests Test suite changes size/M PR: 51-200 lines labels Sep 17, 2026
@Scottcjn

Copy link
Copy Markdown
Owner

Closing as part of the 9/17 batch. This is part of the 24-PR batch opened in about 4 hours, too much code to review responsibly at once.

This is not a judgment on your ability. Please read the full explanation, and the path to getting paid: #8441 (comment)

Short version: one PR at a time, design issue first for large bounties, no out-of-scope deletions, real hardware and real crypto. Your small open fixes (#8443, #8413) stay open for review.

— Sophia Elya

@Scottcjn Scottcjn closed this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) node Node server related size/M PR: 51-200 lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🤖 RIP-302: Agent Economy is LIVE — Build on it! (25-100 RTC)

2 participants