What it is, in plain words
Lots of decisions are supposed to need more than one person to agree: releasing to production, granting admin access, approving a payment, merging a sensitive change, a board vote. The rule is usually written as "needs N of M" — two of three leads, a majority of the board, any threshold you like.
The weak point is never the rule. It's the counting. In practice the tally lives in a chat thread or an inbox, and it quietly breaks: the same person approves twice from two accounts, an approval from someone with no authority gets counted, a heavier vote is treated the same as a light one, or nobody actually checks that the threshold was met before the action went ahead.
QuorumGate is the referee for that count. You hand it the approvals and the threshold; it collapses duplicate voters to a single vote, drops malformed entries, tallies the real weight behind each choice, and returns one honest verdict: met or not met, with the winning choice and the full breakdown. It is a tiny pure function — the same code that is proven by a mutation gate is the code that runs on this page.
Start here — how to use it
On this page (no install)
- Scroll to Try it.
- Add each approver: a name, their weight (use
1for one-person-one-vote), and what they approved (the choice, e.g.release). - Set the threshold — the total distinct-voter weight that must be cast for the count to clear (
metcompares the threshold to the total participating weight, not the winning choice alone). - Read the verdict. Try a preset to see a double-vote attack get caught.
In your own system (3 lines)
import { tallyQuorum } from './kernel.mjs';
const r = tallyQuorum(
[ {voter:'ada', weight:1, choice:'release'},
{voter:'ada', weight:1, choice:'release'} ], // ada again — not two people
2);
// r.met === false (ada collapses to one vote → total 1, below the threshold of 2)
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 tallyQuorum function that the witness gate proves. Nothing is sent anywhere.
Weight behind each choice
What the kernel returned
—
—
How it works — traced from a real run
Take the double-vote attack preset: three approvals, but two of them are ada voting twice. The rule needs 3 distinct approvers. A naive count of the three rows reads 3 and would wave it through. Here is what the kernel does instead, step by step — the numbers below are the actual run.
Every edge of the threshold is what the mutation gate attacks: it rewrites >= to >, flips the dedupe, lets a negative weight through — and each of the 19 rewrites is caught by a test. That is what "19/19 killed" means: no mutant among the 19 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 | One pure function, tallyQuorum(entries, threshold). No I/O, no clock, no randomness. Malformed top-level input returns {ok:false, why} instead of throwing. |
| The contract | kernel.test.mjs | 13 tests pinning the behaviour: dedupe-to-last, weight filtering, threshold edges, the empty case, garbage in. |
| The gate | witness.mjs | Mutates the kernel 19 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 19 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. No server, no build step. |
Why inline the kernel instead of importing it? So there is one logic, not a demo that drifts from the proven code. The copy in this page and the copy the gate proves are identical; a test in CI guards that they stay identical.
For buyers — what QuorumGate does for your business
A quorum rule you cannot prove was met is a control that exists only on paper. QuorumGate turns "two people approved this" from a claim in a chat log into a verifiable tally with a re-runnable proof. Here is what that means for each role.
For the CISO / Head of Risk
Separation-of-duties and four-eyes controls become evidence, not trust. Every gated action carries a tally showing the distinct voters and the weight behind each choice — the artefact an auditor asks for. (It does not itself check a voter is authorised; pair it with your roster/signer for that, as the white paper states.) The logic is a 40-line pure function you can read in a sitting, not a black box.
For the CTO / Eng lead
Drop it into CI, a merge check, a deploy step, or an agent's tool-belt. Zero dependencies, no network, no secrets to manage. It never throws on bad input, so it can't take your pipeline down — malformed data returns a clean {ok:false}.
For the COO / Ops
The approvals that gate releases, access and payments stop living in someone's inbox. The count is automatic, the double-vote and the junk entry are rejected by construction, and the verdict is the same every time anyone re-runs it.
For the Board / CFO
Weighted votes are first-class: a director with a larger stake carries more weight, and the tally reflects it. Governance decisions get a reproducible record. Nothing is sent to a vendor cloud, so there is no new data-processing agreement to sign.
Security & compliance, answered straight
| Question | Answer |
|---|---|
| Where does our data go? | Nowhere. The kernel runs in the page. There is no network call in the whole file — you can 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? | 13 unit tests plus a 19/19 mutation gate, both re-run in public CI. "Passing tests" is cheap; "no mutant survives the tests" is the harder, honest bar. |
| 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 — QuorumGate tallies and judges a threshold honestly; it does not by itself verify a signature or that a voter is on the authorised roster. It is the referee for the count, and composes with a signer for identity. |
The cost case — computed here, change the inputs
Where a human currently chases and tallies multi-party approvals — collecting them, checking each is a distinct authorised person, confirming the threshold — that coordination time is what a gate removes. Put your own numbers in; the figure is computed live by a small model on this page.
Illustrative. The default £32/hr loaded rate is a mid-range UK figure for an operations/coordinator role (≈£22k–£30k base, grossed up ~1.3× for employer NI, pension and overhead; source: ONS ASHE 2024 median gross pay for administrative occupations, loaded). The minutes-saved figure is the coordination this tool removes, not the decision itself — a decision still needs a human. Compare against per-seat GRC/approval-workflow SaaS, which typically runs £8–£25 per user per month; QuorumGate'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 your real approval scenario through Try it. No sign-up, nothing installed.
2 · Embed (an afternoon)
import { tallyQuorum } into the one place your action gates — a CI job, a merge check, a deploy approval, an agent tool. Feed it your existing approval records.
3 · Prove (ongoing)
Keep the witness gate in your own CI. Every time the kernel changes, 19/19 must still kill. Pair it with your identity/signer layer so each voter is a verified, rostered person.
White paper — the short version
The problem. N-of-M approval is the most common integrity control in an organisation, and the most quietly broken. The rule is sound; the counting is done by hand, in channels that don't enforce distinctness, weight, or the threshold. An attacker — or an honest mistake — pads the count, and the action proceeds as if the quorum were real.
The claim. The count should be a pure, deterministic function with no I/O, so it can be run anywhere, re-run identically by anyone, and proven. QuorumGate collapses duplicate voters to a single vote, discards malformed weights without throwing, tallies weight per choice, and compares the total participating weight to the threshold (met = total >= threshold; the winner is reported separately as the plurality choice). The result is total, honest, and reproducible.
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 19 ways — >=→>, dedupe removed, negative weights admitted — and demands the tests catch every one. 19/19 killed means the suite catches those 19 rewrites — a hard bar on the tests, not a proof the logic is complete. 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. QuorumGate judges the tally. met measures distinct participating weight against the threshold; the winner is the plurality choice, ties broken by the order votes arrive — it does not compute a majority. In the common sign-off case you feed it only the approvals of one action, so participation is the approval weight and met means "N distinct approvers cleared the bar". It does not verify that a voter is who they claim (a signer's job) or that they are on the authorised roster (policy). It is designed to compose with those — the referee for the count, not the whole stadium.