Mathematics

The arithmetic of a fair company — evidence as the single source of truth, contribution priced before work, value shared by rule, and the rules moving on-chain.

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.

WhatWhere it is recordedWhy it can be trusted
The task and its priceA GitHub issue in databayt/*, with a rate:<n> label. The label is set when the issue is created: the sprint mirror and work orders stamp it from the task's points or the formula's weightPriced before the work begins; anyone can read it
The workCommits on main, signed (git commit -S)Authorship cannot be denied or taken
The acceptanceThe issue closed as completed by a named closer (engine.json → ledger.closers)Accepted means a person said yes. A machine that closes its own issue does not count, and issues labelled dispatch, long or queue never score
The runThe run ledger on each machineWhich agent did what, when, at what cost
The proofOne line per accepted issue in ledger/<year>.jsonl, each carrying the hash of the line before it. Read it with node .claude/scripts/ledger.mjs proof, check it with proof --verifyA changed or removed line breaks the chain

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.

The ledger counts in whole units, never fractions: 1 point is 1000 units (milli-points), and a task's rate is that many units. A task shared by n people is split so the parts add up exactly to the whole: each person gets the whole divided by n and rounded down, and the leftover units go one at a time to the contributors in ascending login order (1 point shared by three is 334, 333 and 333).

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:

CommitmentRateFor
Community Pool5% of revenueOpen infrastructure, scholarships, emergencies; becomes a waqf when MRR ≥ $10K for 12 months
Needs Fund2.5% of net profitContributors in conflict zones, emergencies, newcomers below the floor
Pay floor$45/hourNo accepted hour is worth less

The rule already runs: node .claude/scripts/ledger.mjs scores (accepted tasks per person from rate:<n> issues), scores --json (the same scores as data), split --money <n> (the waterfall), statement (pool, needs fund, split and scores for a month), proof (the hash-chained record of accepted issues) and proof --verify (replays the chain).

summary --json gives the same scores for three windows in a single run: the current sprint, the current month and all time since ledger.since (default 2026-01-01). The Points view in the Machine app reads it.

The contributor is the assignee. For a teammate with no GitHub account, it is the login in a holder:<login> or for:<login> label.

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 — being built

Not deployed. Nothing below holds money today. The direction was set on 2026-11-29; on 2026-11-30 the founder chose to build it now (decision record).

Today the rules are enforced by license, ledger and custody. The work under way lets them enforce themselves:

  • The ledger on a public chain. Each month, the root of that month's proof lines and its total are written to a public chain, so the record can be checked by anyone and rewritten by no one. The lines themselves stay in the public repository.
  • 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 share of the month's points when a month closes.
  • Contributor-as-owner, literally. Points become a claim that cannot be traded, held in the contributor's own wallet. A point is a share of that month's money, never a fixed price.

The first contract, Ledger (the roots only), exists in contracts/ with its tests, and ledger.mjs close --month builds the root it records. It is not deployed.

What each contract does, how a month is closed and what is still open: Contracts.

It is built in this order, and each step waits for the one before: the ledger of roots (no money, no addresses), then points, then the pools, then payouts.

What stands in for the gates of the first decision:

  1. Every contract is owned by a multi-signature wallet of the founders, never one key.
  2. A deposit cap on every contract that can hold money, raised only by the owners. It starts small.
  3. A pause switch, and no upgrade proxies: a new version is a new deployment.
  4. Payouts to a country open only after the legal and Sharia review for that country.
  5. No key ever enters an agent session, a file or the repository. The owners create the wallets and sign.

Still open, and settled before the step each one blocks: whole units and one rounding rule (payouts), how a claim is made without joining a person to a wallet in public (points and payouts), a month's close signed by the owners (payouts), and which chain (any deployment).

The specification is tracked on GitHub, in the open, like every other task: databayt/kun#199.

See also