9
Switch language to العربية

Shared Economy

PreviousNext

Fair contribution valuation framework for Hogwarts - ensuring every contributor is recognized and compensated justly through a trustful, immutable open ledger.

Justice = Fair Access to Resources Based on Evidence of Contribution

Our shared economy framework ensures every contributor is recognized fairly and compensated justly. It's not just a payment system; it's a transparent, evidence-based valuation engine that treats all forms of contribution—code, documentation, community work—with equal respect. Contributors own their contribution value forever through immutable records.

Core Principles

  1. Measurable Value – Every contribution has quantifiable impact
  2. Equal Respect – Code, docs, and community work are valued equally
  3. Gaming Resistance – The system detects and prevents manipulation
  4. Transparent Valuations – All calculations are public and contestable
  5. Immutable Ownership – Contributors own their contribution value forever

Contribution Matrix

Technical Contributions (40% weight)

CategoryPoints
Lines of codeLOC × language weight (TS: 1.0, CSS: 0.3, Config: 0.1)
Complexity multiplierSimple: 1x, Complex: 2.5x
New feature10 points × complexity
Bug fix5 points × severity (critical: 5x, minor: 1x)
Refactoring3 points × files affected
Test coverage2 points × coverage increase %
PRD/technical docs50 points × scope (feature: 1x, module: 3x, system: 10x)
Architecture decisions100 points (tracked in ADR)
Performance optimization20 points × % improvement
Code review5 points per substantive comment
Mentoring in review10 points if reviewer teaches
Catch critical bugs50 points per security/data loss bug

Quality Multipliers: Tests pass first try (1.2x) · Zero review iterations (1.3x) · Includes tests (1.5x) · Includes docs (1.4x) · Zero regressions in 30 days (1.5x) · Max: 3.9x

Community Contributions (30% weight)

CategoryPoints
First response3 points (encourages newcomers)
Issue clarification5 points (reduces noise)
Issue resolution10 points × unblocked users
Duplicate detection2 points (saves maintainer time)
Tutorial written100 points × depth (quick: 1x, comprehensive: 5x)
API docs20 points × endpoints documented
Translation50 points × language + 0.5 points/key
Video/visual content150 points × length (quality-adjusted)
Onboarding contributors50 points per successful first PR
Forum/Discord support2 points per helpful response (upvote-weighted)
Public presentation200 points per talk/article
Community events100 points per event

Strategic Contributions (20% weight)

CategoryPoints
Feature proposals (accepted)50 points
User research30 points × users interviewed
Competitive analysis40 points
Business model innovation100 points if implemented
Release coordination100 points per release
Dependency maintenance20 points × critical deps updated
Security audits200 points + 50 per vulnerability found

Ecosystem Contributions (10% weight)

CategoryPoints
Blog posts20 points × reach (1k views = 1x)
Integration/plugin creation150 points × users
Educational content50 points × students reached
Case studies100 points

Anti-Gaming Mechanisms

Detection Systems

MechanismRule
Sybil preventionGitHub account > 6 months, verified email required
Velocity limitsMax 100 commits/day reviewed
Peer validationLarge contributions need 2+ maintainer reviews
Commit splittingIf 10+ commits could be 1, apply 0.5x multiplier
Code churn taxCode deleted within 30 days = retroactive -50% points
Test qualityTests that mock everything = 0 points
Collusion detection80%+ review overlap flagged for human review
Circular endorsementA↔B mutual reviews = 0.7x multiplier

Transparency Layer

FeatureDescription
Public ledgerEvery contribution → permanent record with hash
Formula visibilityPoint calculation in src/contribution-engine/formulas.ts
Monthly reportsAuto-generated contribution reports (Markdown + PDF)
Dispute processAny contributor can challenge valuation via issue
Audit trailAuto-generated breakdown in commit metadata
Historical changesAll formula changes tracked in git with rationale
Maintainer overrideRequires 2/3 vote + public justification

Valuation Formula

Hourly Rate Floor

Based on 2024 research: $45 USD/hour minimum (COCOMO standard)

Contribution Value = (Base Points × Quality Multiplier × Impact Factor) / Effort Hours

If Contribution Value is below $45/hour → Adjusted Value = $45 × Effort Hours

Effort EstimationMethod
Self-reportedHonor system + peer validation
Auto-detectedCommit timestamps via GitHub API
Code contributionsCOCOMO II formula (industry-standard)
Outlier detection100 lines claimed as 20 hours → flagged

Underpayment Prevention

ProtectionDescription
Market rate adjustmentQuarterly review vs Upwork/Toptal rates
Cost-of-living indexHigh-COL contributors not penalized
Skill premiumSenior developers get 1.5-2x multiplier
Minimum wage alertEarnings below local equivalent → alert
Profit redistribution40%+ margin while under $30/hr pay → redistribution
Satisfaction surveyAnnual anonymous contributor review

Diverse Contribution Recognition

Non-Code Contributions

CategoryPoints
UI/UX mockups100 points × screens designed
Design system500 points (one-time) + 50/component
User testing30 points × tests conducted
Accessibility audit200 points + 20/issue found
Moderation5 points/hour (emotionally taxing work)
Conflict resolution50 points per resolved dispute
Policy creation100 points (governance work)
Onboarding improvements40 points × % completion rate improvement

Invisible Labor

CategoryPoints
Meeting attendance10 points/hour (capped at 4 hours/week)
Email/DM support2 points per substantive response
Emotional supportPeer nomination = 50 bonus points monthly

Skill Development

  • 1.5x – First contribution in new area
  • +20% – Mentor receives 20% of mentee's points
  • 2x – Knowledge transfer guides for complex areas

Transparency & Accountability

Contribution Dashboard

FeatureDescription
Public leaderboardTop contributors (opt-in display)
Personal dashboardYour points, rank, earnings projection
Team viewOrganization total contributions
Historical trendsContribution health metrics

Contestable Valuations

  1. Contributor files issue: "Commit X undervalued because Y"
  2. Auto-tagged for "valuation-review"
  3. 3 maintainers review within 7 days
  4. Vote: Adjust (up/down/no-change)
  5. Outcome recorded publicly with reasoning

Bias Detection: Systematic tracking of undervalued contributor types · Quarterly gender/geography/seniority audit · Corrective retroactive adjustment + policy change

Immutable History (Blockchain)

FeatureDescription
Permanent recordsContributions cannot be erased or devalued
Decentralized proofLeadership changes don't affect contributor rights
Smart contractsAutomated profit distribution
Git timestampingCommit → hash → Ethereum/Polygon (under $0.01/commit)
Contribution NFTMajor contributions = NFT with metadata
Portable reputationProve value across projects

Formula Evolution & Governance

Democratic Formula Updates

  1. Propose formula change via RFC
  2. Simulation on historical data, show impact
  3. Discussion period: 30 days, public comments
  4. Vote: Token-weighted by contribution history
  5. Supermajority required: 67% to change core valuations
  6. Gradual rollout: Test on 10% for 1 month first

Protection Against Capture

SafeguardDescription
Voting capNo contributor > 10% voting power
Power decayFounding team voting power -10%/year
Emergency brake100+ objections pauses change for review
ArbitrationExternal mediator for major disputes (DAO-style)

Example Calculations

Junior Developer First Contribution

Bug fix in authentication flow (50 lines TypeScript)

CalculationValue
Base points50 lines × 1.0 (TS) × 1.5 (bug fix) = 75
Quality multiplier1.2 (tests pass) × 1.5 (includes tests) = 1.8
Impact factorCritical bug = 5x
Total points75 × 1.8 × 5 = 675
Effort4 hours
Raw value$67.50 (675/10 rate)
Adjusted$45/hour floor = $180
First contribution bonus1.5x = $270

Designer Creates Onboarding Flow

5 screens, user testing with 10 users, Figma documentation

CalculationValue
UI mockups100 × 5 screens = 500
User testing30 × 10 users = 300
Documentation20
Total points820
Effort16 hours
Hourly rate$51.25 (above floor)

Community Manager Monthly Work

Forum moderation, onboarded 3 contributors, organized 1 event

CalculationValue
Moderation5 pts/hr × 20 hours = 100
Onboarding50 × 3 = 150
Event100
Discord support2 × 50 responses = 100
Total points450
Effort~25 hours
Adjusted$45/hour = $1,125

Open Questions

QuestionConsideration
Time DecayShould old contributions lose value over time?
Team ContributionsHow to split points for pair programming?
Failed ExperimentsShould exploratory work that doesn't ship earn points?
Competitive DynamicsDoes leaderboard create toxic vs. healthy motivation?
Global EquityHow to balance COL differences without geographic arbitrage?

Next Steps

RFC Template

Build Request for Comments template for community input and transparent decision-making process.

Contribution Tracker

Create contribution tracker using GitHub Actions + SQLite to start measuring and recording contributions.

Simulation

Test formulas on existing GitHub history (6 months data) to validate fairness and identify edge cases.

Pilot Program

Invite 5-10 early contributors to pilot program, gather feedback, and iterate on the system.

Iterate & Improve

3-month iteration cycles based on real-world feedback and contribution patterns.

Documentation

Public documentation of all decisions, formulas, and changes to build trust from day one.

Justice Pillars

PillarDescription
EvidenceObjective, measurable, auditable contribution data
TransparencyPublic formulas, contestable outcomes
DignityNo contributor earns below fair wage, all work is valued

This framework ensures that every contributor is recognized fairly, compensated justly, and empowered to build together.