What it is, in plain words
Many votes are only valid if enough people took part. A shareholder resolution may need a quorum of the shares to vote. A UK strike ballot is not lawful unless at least 50% of those entitled turn out (Trade Union Act 2016). A works council, an HOA, a pension-trustee board, a standards committee — each has a floor: below it the result does not count, however the votes fell.
That floor is a percentage, and percentages are where hand-counting quietly goes wrong. Someone computes "55 of 95 is… 57.9%, clears 50%" on a calculator, or a spreadsheet does decisive/total*100 in floating-point and a vote that is exactly on the line comes back as 49.99999% and is wrongly thrown out — or 50.00001% and wrongly let through. On a contested resolution, that rounding is what gets challenged.
QuorumFloor removes the arithmetic from the argument. You give it the votes — yes, no, and abstain weights — and the floor as a whole-number percent. It counts yes + no as the decisive votes, counts everyone (abstentions included) as present, and compares them with the single cross-multiplied test decisive × 100 ≥ floor × present — entirely in integers. No division, no float, no drift. The boundary is exact, the tie-break is stated, and the empty ballot is handled on purpose. The code that a mutation gate proves is the code running under your clicks.
Start here — how to use it
On this page (no install)
- Scroll to Try it.
- Enter the weight behind each of
yes,noandabstain(use head-counts for one-person-one-vote, or share counts for weighted votes). - Set the floor — the percent of those present that must cast a decisive (yes/no) vote.
- Read the verdict and the exact margin. Try a preset to see the boundary and the empty-ballot rule.
In your own system (3 lines)
import { quorumFloor } from './kernel.mjs';
const r = quorumFloor(
[ {weight:30, choice:'yes'},
{weight:25, choice:'no'},
{weight:40, choice:'abstain'} ],
50);
// r.value.clears === true (55 decisive of 95 present
// → 5500 ≥ 4750, margin +750)
One file, zero dependencies. Copy kernel.mjs into any JS/TS runtime, a CI step, a serverless function, or an agent tool.
Try it — the live kernel
This panel calls the exact quorumFloor function the witness gate proves. Nothing is sent anywhere. Weights must be whole non-negative numbers — the kernel rejects anything else cleanly, without throwing.
The count
What the kernel returned
—
—
How it works — traced from a real run
Take the exact 50/50 boundary preset: yes 25, no 25, abstain 50, floor 50%. Decisive turnout is exactly 50% of those present — right on the line, the hardest case to settle. QuorumFloor cross-multiplies in whole numbers, so it clears by the stated rule (equality passes) with a margin of exactly zero. This particular ratio, 50/100, a float can represent cleanly — but the same whole-number method keeps a boundary like one-third or two-sevenths exact too, and those a float cannot represent, so a floating-point tally can land a hair under the line and fail a vote that actually met its floor. Integers never do. These are the numbers from the live run.
Every edge of that comparison is what the mutation gate attacks: it rewrites >= to > (which would fail the exact boundary), drops the zero-present guard, swaps decisive for present — and each of the 21 rewrites is caught by a test. "21/21 killed" means no mutant among the 21 the tool tried survives the tests — a hard bar on the tests, not a proof the logic is complete.
The blueprint — organ by organ
| Organ | File | What it does |
|---|---|---|
| The kernel | kernel.mjs | Two pure functions: tally(votes) sums yes/no/abstain weights; quorumFloor(votes, thresholdPercent) returns {clears, margin}. No I/O, no clock, no randomness, no floats. Malformed input returns {ok:false, why} instead of throwing. |
| The contract | kernel.test.mjs | Tests pinning the behaviour: the exact boundary clears, the empty ballot never clears, abstentions are present-not-decisive, bad weights and out-of-range floors are refused. |
| The gate | witness.mjs | Mutates the kernel 21 ways and demands every mutant die under the tests. A survivor means the tests have a blind spot. Re-run on every push. |
| The proof | .github/workflows/gate.yml | CI re-runs tests + gate on GitHub's own runner. Green there proves the gated code is the code shipped and that the tests kill the 21 mutations tried — not that every claim on this page holds. |
| This page | index.html | Inlines the kernel byte-for-byte, so the logic you can audit in CI is the logic running under your clicks. A parity test fails CI if the two ever drift. |
Why integers, not percentages? Because decisive / present × 100 ≥ floor compares two floating-point numbers, and floating-point cannot represent most fractions exactly. The cross-multiplied form decisive × 100 ≥ floor × present uses only whole-number multiplication, which is exact for every input that fits — the boundary cannot wobble.
For buyers — what QuorumFloor does for your business
A turnout rule you compute by hand is a rule you can be forced to re-compute in front of a challenger. QuorumFloor turns "the ballot met quorum" from a figure on a calculator into an exact, reproducible verdict with a re-runnable proof. Here is what that means for each role.
For the Company Secretary / Governance
Resolution quorums, AGM turnout floors and trustee-board thresholds become exact and reproducible. The margin is explicit, so a contested "did it carry?" is settled by whole-number arithmetic anyone can re-run — not by whose spreadsheet rounded which way.
For the Returning Officer / Ballot runner
Statutory turnout floors (a strike ballot's 50%, a referendum threshold) are judged on the exact line — feed the whole eligible roll as "present," with non-voters as abstain, and decisive/present is turnout-of-electorate. The kernel never throws on ordinary data, so a malformed entry returns a clean refusal rather than crashing a results run, and the empty and all-abstain cases are handled on purpose.
For the CTO / Eng lead
Drop it into a voting service, a DAO contract's off-chain pre-check, a governance tool or an agent's tool-belt. Zero dependencies, no network, no secrets. It is deterministic, and exact-or-refuse: weights beyond JS's safe-integer range are rejected, not silently rounded (a port to a fixed-width-integer language must keep that guard to stay exact).
For the Risk / Audit lead
The quorum decision is a 60-line pure function with a mutation gate, re-run in public CI — the artefact an auditor can inspect in a sitting. "Passing tests" is cheap; "no mutant survives the tests" is the harder, honest bar you can show a regulator.
Security & compliance, answered straight
| Question | Answer |
|---|---|
| Where does our ballot data go? | Nowhere. The kernel runs in the page. There is no network call in the whole file — read it to confirm, or run it fully offline. |
| Can we self-host? | It is one static HTML file and one .mjs. Host it on your own intranet, or import the kernel into your own service. No licence server, no phone-home. |
| How do we know it's correct? | Unit tests plus a 21/21 mutation gate, both re-run in public CI. The exact-boundary and empty-ballot cases are pinned by test, not left to chance. |
| What's the licence? | MIT. Use it, fork it, embed it in a product. Authored by Kar for AI Native Solutions; licence holder Simon Gant. |
| What are the limits? | See Risks, answered below — QuorumFloor judges turnout against a floor honestly; it does not decide the outcome (majority), verify a voter's identity, or check they were eligible. It is the referee for the floor, and composes with a tally and a signer. |
The cost case — computed here, change the inputs
Where a human currently computes and defends a turnout or quorum percentage for each vote — tallying the groups, working the percentage, confirming it clears, and being ready to show the working if challenged — that is the time a provable floor removes. Put your own numbers in; the figure is computed live by a small model on this page.
Illustrative. The default £38/hr loaded rate is a mid-range UK figure for a company-secretarial / governance officer (≈£30k–£40k base, grossed up ~1.3× for employer NI, pension and overhead; source: ONS ASHE 2024 median gross pay, business/finance-associate occupations, loaded). The minutes-saved figure is the computing and defending of the floor, not the decision itself. Compare against per-seat governance / board-portal SaaS, which typically runs £10–£40 per user per month; QuorumFloor's kernel is MIT and self-hosted, so the per-seat line is £0.
Adoption — how you roll it out
1 · Try (today)
Open this page, run a real past vote through Try it, and check the verdict matches your record. No sign-up, nothing installed.
2 · Embed (an afternoon)
import { quorumFloor } into the one place your vote is certified — a results service, a governance tool, a DAO pre-check, an agent tool. Feed it your existing vote counts.
3 · Prove (ongoing)
Keep the witness gate in your own CI. Every time the kernel changes, 21/21 must still kill. Pair it with your outcome tally and your eligibility/identity layer so each vote is from a verified, entitled voter.
White paper — the short version
The problem. A turnout or quorum floor is a percentage threshold, and percentage thresholds are computed with division. Division forces a choice of representation, and the usual choice — floating-point — cannot represent most fractions exactly. On a vote that lands on or near its floor, the rounding direction decides the result, and on a contested vote that rounding is exactly what gets litigated.
The claim. The floor check should be a pure, deterministic, integer-only function with no I/O, so it can run anywhere, be re-run identically by anyone, and be proven. QuorumFloor sums the yes/no/abstain weights, takes yes + no as decisive and the whole as present, and settles the floor with one cross-multiplied comparison, decisive × 100 ≥ floor × present. No division, no float, no drift within the exact range — and beyond it (weights past 2^53, or products that would overflow) it refuses rather than drifting. Equality clears; a zero ballot never clears. The result is total, honest, and deterministic.
Why a mutation gate, not just tests. Passing tests prove the code works on the cases you thought of. A mutation gate proves the tests work: it rewrites the kernel 21 ways — >=→>, the zero-present guard removed, decisive and present swapped, the safe-integer guard loosened — and demands the tests catch every one. 21/21 killed means the suite catches those 21 rewrites — a hard bar, not a proof of completeness. This is the estate's one defensible idea: trust comes from a gate that survives attack, not from a green checkmark.
What it is not. QuorumFloor judges the floor — whether decisive participation reached the required share of those present. It does not decide the outcome: it does not tell you whether yes beat no (that is a separate majority tally, and its sibling QuorumGate weighs a winning choice against a threshold). It does not verify that a voter is who they claim (a signer's job) or that they were eligible to vote (policy). It is designed to compose with those — the referee for the floor, not the whole election.