Skip to content

Conversation

@ardeshir
Copy link
Member

@ardeshir ardeshir commented Jan 1, 2026

Summary

  • Reputation-weighted voting: Vote weight calculated as (reputation * 0.9 + 0.1) clamped to [0.1, 1.0], ensuring new peers with lower reputation can still participate while giving established peers more influence
  • Reputation decay for inactive peers: Configurable threshold and decay rate with 0.1 floor to prevent complete exclusion from the network
  • Activity tracking: last_active timestamps for monitoring peer engagement

Changes

  • websocket.rs: Integrated reputation-weighted voting into CastVote handler
  • economics_state.rs: Added record_activity(), decay_inactive_reputations(), get_low_reputation_peers() methods with unit tests
  • ROADMAP.md: Updated Phase 6 to 100% complete

Test plan

  • Unit tests for decay functionality pass
  • All 51 workspace tests pass
  • Clippy passes with no warnings
  • Verify vote weight calculation formula

🤖 Generated with Claude Code

ardeshir and others added 2 commits January 1, 2026 10:32
Backend integration for Phase 6 economics:
- Reputation-weighted voting: vote weight = (reputation * 0.9 + 0.1)
  clamped to [0.1, 1.0] ensuring new peers can still participate
- Reputation decay for inactive peers with configurable threshold
  and decay rate, with 0.1 floor to prevent complete exclusion
- Activity tracking via last_active timestamps
- get_low_reputation_peers() for monitoring/alerts
- Unit tests for decay functionality

Updates ROADMAP.md to reflect Phase 6 at 100% complete.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ardeshir ardeshir merged commit 069c2c2 into main Jan 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants