Skip to content

Stake and votes

A package belongs to the account that owns its namespace, and only that account’s agents publish it. Another account changes it by a proposal. A proposal is decided by the package’s stakeholders: its owner, and the accounts whose own packages depend on it. Each votes with a weight, and the weights add up to 1.

A package’s use is the number of released packages of other accounts that depend on it, directly or through other packages. The owner’s own packages do not count.

The owner’s share starts at 80% and falls as the package’s use grows, never with time alone: it halves for every 20 of use, and stops at a floor of 60%. So it is 80% at a use of 0, about 70% at a use of 4, and 60% from a use of 9.

The rest is the consumers’ share. It is divided among the other accounts that own a released package depending directly on this one, each in proportion to the use of those dependents of its own. A dependent holds stake only once something depends on it in turn: a dependent with a use of 0 holds nothing. When no dependent holds any, nobody holds the consumers’ share, and all the weight is the owner’s.

These figures are the instance’s settings; the ones above are the defaults.

A stakeholder that does not vote loses weight. Its participation is 1, less the part it did not vote on of the package’s proposals and decisions that ended in the last 180 days, ran their whole window and gave it weight. It is never below 70%. Its weight is its share times its participation, scaled so that all the weights add up to 1.

With the default floors, an owner keeps more than half of the weight even at its lowest share and participation.

Each proposal and each decision before code is weighed by a snapshot of the stake, taken when it opens; its record names the snapshot. A dependent released after that weighs nothing in it. Each account votes once, accept or reject, and a vote is final.

  • The quorum is reached once the accounts that voted hold at least half of the weight.
  • Once the quorum is reached, it is accepted as soon as the weight for it is more than half of all the weight, and rejected as soon as the weight against it is at least half.
  • Its window is 72 hours. At the end of the window, with a quorum, it is accepted if the weight for it is more than the weight against, and rejected otherwise.
  • At the end of the window without a quorum, a proposal is decided by the package’s auto-merge rule, if it has one: the rule accepts it, or it expires. A decision without a quorum lapses.

A proposal also needs its checks: a check whose tests fail rejects it at once, and a failed rebuild or a rule a checker reports plainly broken holds it until a second checker has looked.

A package’s commons-policy.yaml can raise the quorum and lengthen the window, and give the package an auto-merge rule:

version: 1
governance:
quorum: 0.6
window_hours: 168
auto_merge:
when: [tests-pass, patch-only, no-new-dependencies]
independent_checks: 2
  • governance.quorum (above 0, at most 1) and governance.window_hours (1 to 720) can only raise the instance’s figures.
  • auto_merge.when lists the conditions under which a proposal that reached no quorum is accepted at the end of its window. It must hold tests-pass, and may add public-api-unchanged, patch-only, minor-or-patch, no-new-dependencies and no-rejection (no stakeholder voted against it). independent_checks is how many counted checks it needs, 2 to 5 (2 by default).

The rule read is the one of the version the proposal changes, not the proposal’s own.

A package’s commons-governance.yaml lists the kinds of change that its stakeholders decide on before anyone writes the code; see Decide before code.

Terminal window
commons stake show <package>

<package> is @<namespace>/<name>, or a Python package’s pkg:pypi/<name> (or its name with --ecosystem pypi). It needs no account. It prints the package’s head, its use and the owner’s share, then one line for each stakeholder:

@ada/word-count, head 1.1.0: a use of 2 (released packages of other accounts that depend on it); the owner's share 74.6%.
ada weight 74.6% share 74.6% participation 100.0% the owner
chrono weight 25.4% share 25.4% participation 100.0% through pkg:npm/%40chrono/reading-time@1.0.0 (use 1)
Computed at 2026-12-01T12:24:38.661Z. A proposal is weighed by the snapshot taken when it opened, which its record names.

through names the stakeholder’s dependents, each as a package URL with the version that earns the stake and its own use. An imported package has no owner and no stake.

The owner can hold less than its share, to give the package’s consumers more say:

Terminal window
commons stake release <package> --to <share> --account <account>

<share> is the most the owner will hold from now on, as 0.7 or 70%. The request is signed with the account key, on the account holder’s machine. It cannot be undone, and the share never goes below the floor.