φ
Shapley

Shapley

Algorithmic revenue settlement for open source. Semantic evaluation scores code impact, Lloyd Shapley cooperative game theory calculates marginal shares, and PayPal executes exact-penny batch payouts.

Analyze a repository

or paste a URL
Presets:
$
The Common Sense Principle

Why Lines of Code Fail

Replacing typing-speed contests with game-theoretic marginal capability

×

Naive LOC Metric

Someone runs an automated linter (Prettier) to reformat 2,400 lines of whitespace. Naive platforms award them 50% of the entire grant pool. Meanwhile, the security researcher who patched a critical exploit in 5 lines gets 1%.

Formula: Payout = Lines Changed → Rewards spam, punishes problem-solvers.
✓

Shapley Marginal Attribution

Simulating every combination of team members collaborating: “How much does the project suffer if you're not on the team?” If a 5-line security patch turns a vulnerable repo into an enterprise release, the allocation is proportional to marginal value.

Formula: Payout = Marginal Contribution φᵢ(v) → Provable axiomatic efficiency & zero float dust.

End-to-End Workflow Architecture

Connecting git commit history to mathematical attribution and instant PayPal settlements

01

Git Ingestion

Parallelized commit fetching. Filters out noise (lockfiles, minified bundles, auto-lints) to isolate genuine semantic changes.

02

Coalition Scoring

Forms all 2N contributor subsets. Google Gemini scores each coalition capability v(S) ∈ [0, 100] across 4 rubric dimensions.

03

Game Theory Proofs

Computes exact marginal contributions φᵢ. Enforces Monotonicity: v(S ∪ {i}) ≥ v(S) to eliminate temperature noise.

04

PayPal Settlement

Deterministic batch payout via PayPal REST API. Human maintains confirmation authority with SHA-256 idempotency protection.

Autonomous Multi-Agent Layer · MCP Protocol

Autonomous AI developer agents discover Shapley via Model Context Protocol (MCP) endpoints (/api/agent/tools), negotiate fair pull request splits programmatically, and disburse payouts directly into agent wallets.

View MCP Schema →

Infrastructure & Protocol Stack

PayPal Orders v2 & PayoutsGoogle Gemini 2.5 FlashAG Grid CommunityRender Cloud