Mathematics
A company is a sum. Every hour of work, every fixed bug, every school won adds to it. The question the share economy answers is the one most companies never write down: who added what, and what is it worth? This page is the arithmetic. The share-economy contract is the law it obeys.
Every form of contribution is measurable, owned, and compensated; the value of the company is the sum of those contributions — never extracted from them.
1. Evidence is the single source of truth
Nothing counts that is not on the record, and the record is public.
| What | Where it is recorded | Why it can be trusted |
|---|---|---|
| The task and its price | A GitHub issue in databayt/*, with a rate:<n> label | Priced before the work begins; anyone can read it |
| The work | Commits on main, signed (git commit -S) | Authorship cannot be denied or taken |
| The acceptance | Review, CI, the issue closed by Closes #N | Accepted means the gate passed, not that someone liked it |
| The run | The run ledger on each machine | Which agent did what, when, at what cost |
One task, one issue, one price, one closing commit. If it is not on GitHub, it did not happen.
2. The arithmetic of fair compensation
Contribution Units (CU) are the accounting unit. A task's CU is fixed on the issue before anyone starts:
CU(task) = points × quality multiplier × impact factor
- points — the size of the task, from its rate label.
- quality multiplier — what review and CI say about the result (reworked, clean, exemplary).
- impact factor — the value the work touches: a fix in a paying school counts more than a demo.
A contributor's share of a month is their CU over everyone's:
share(person) = CU(person) / Σ CU(all)
and the money the month can pay is split by that share, after two commitments come off the top:
| Commitment | Rate | For |
|---|---|---|
| Community Pool | 5% of revenue | Open infrastructure, scholarships, emergencies; becomes a waqf when MRR ≥ $10K for 12 months |
| Needs Fund | 2.5% of net profit | Contributors in conflict zones, emergencies, newcomers below the floor |
| Pay floor | $45/hour | No accepted hour is worth less |
The rule already runs: node .claude/scripts/ledger.mjs scores (accepted tasks per person from rate:<n>
issues), split --money <n> (the waterfall), statement (pool, needs fund, split and scores for a month).
3. Added value, measured after
The price is set before the work; the value shows after it. A task that brought a school online, kept one from leaving, or cut a cost is traced to the revenue it touched, and the impact factor for that kind of work is re-tuned from the evidence — publicly, by the governance in the contract (proposal, simulation, discussion, supermajority). The hard core never moves: justice is fair access by evidence of contribution. The weights do.
4. On-chain — the direction
Vision — not yet built. Decided 2026-11-29 (decision record). Nothing below holds money today.
Today the rules are enforced by license, ledger and custody. The direction is to let them enforce themselves:
- The ledger on a public chain. Each closed issue — task, price, contributor, closing commit, CU awarded — is written to a public chain, so the record can be checked by anyone and rewritten by no one.
- Smart contracts that keep the arithmetic. The Community Pool and the Needs Fund are held by contracts whose code is the formula above; payouts go out by CU share when a month closes, without a person deciding.
- Contributor-as-owner, literally. Accrued CU becomes a verifiable claim on the pool, held in the contributor's own wallet.
What has to be true first, in this order:
- The decision reviewed against the contract, which today says not on-chain.
- The legal entity and jurisdiction for holding and paying money on-chain (Rwanda first), tax and reporting, and Sharia review of the instrument.
- Custody: who holds keys, how a lost key is recovered, how a contract is upgraded.
- An independent audit of every contract before it holds a single payment.
- A pilot with the ledger only (proofs, no money), then the pools, then payouts.
The specification is tracked on GitHub, in the open, like every other task: databayt/kun#199.
See also
- Share economy — the contract · العقد بالعربية
- Doctrine · CU spec
- GitHub workflow — issues and
Closes #N, the way work enters the record - الرياضيات بالعربية