Skip to content

Implement Real Tokenomics based on Network Contributions#804

Draft
iberi22 wants to merge 1 commit into
mainfrom
refactor/real-tokenomics-12662286266512326650
Draft

Implement Real Tokenomics based on Network Contributions#804
iberi22 wants to merge 1 commit into
mainfrom
refactor/real-tokenomics-12662286266512326650

Conversation

@iberi22

@iberi22 iberi22 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

This refactor replaces the mathematical placeholder ProofOfSentience with a data-driven tokenomics system.

Key changes:

  1. Domain Logic: Added NodeContribution and a new RewardEngine in synapse-core that calculates rewards based on weighted metrics: Storage (30%), Bandwidth (40%), Uptime (20%), and Replication (10%), including an inactivity penalty.
  2. Infrastructure: Enhanced LibP2PEmpathyAdapter to measure actual bytes served and stored. Added a bridge method to feed these metrics into the reward engine.
  3. Consistency: Renamed 'Proof of Sentience' to 'Node Score' throughout the codebase (traits, CLI, adapters) to align with the new contribution-based model.
  4. Stability: Updated various mock implementations and test configurations to maintain a clean build environment.

Fixes #797


PR created automatically by Jules for task 12662286266512326650 started by @iberi22

- Remove legacy ProofOfSentience placeholder entity.
- Introduce NodeContribution struct to track storage, bandwidth, and uptime.
- Implement RewardEngine for score calculation and reward distribution.
- Update LibP2PEmpathyAdapter to track real bandwidth and storage metrics.
- Refactor CommercePort to use 'Node Score' instead of 'Proof of Sentience'.
- Update CLI commands and mock adapters to reflect changes.
- Ensure workspace buildability by updating dev-dependencies.
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e4a59d0c-73c7-4fb6-9da5-2041bc299597

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/real-tokenomics-12662286266512326650

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

[REFACTOR-6] Tokenomics Reales — Almacenamiento, Ancho de Banda, Uptime

1 participant