A sovereign trust-rail kernel · by Kar

IsolationGate

Publish one total over 10 people, then another over the same 10 plus one more, and anyone can subtract the two and read the extra person's data. That is the differencing attack, and it has leaked "anonymous" statistics for decades. IsolationGate remembers every cohort you have released and refuses any new release that could be subtracted down to fewer than k people. In your browser, nothing uploaded.

witness mutation gate · 22/22 killed unit tests + parity on every push pure kernel · state in → decision out · never throws the attack killed in code, not policy
What it isStart hereTry itHow it works BlueprintFor buyersCost caseWhite paper

What it is, in plain words

Organisations publish aggregates — "the average salary in this team", "the number of cases in this region", "the total spend by this cohort" — believing a total over many people reveals no one. It does, the moment you publish more than one overlapping total. Release a sum over a group, then a sum over that group plus one new member, and the difference of the two sums is that one member's value. No hacking — just subtraction.

This is the differencing attack. It is the reason official statistics agencies, privacy teams, and federated-analytics systems all need disclosure control — and it is subtle, because each release looks safe on its own. The danger is in the history: which cohorts you have already published.

IsolationGate is the gate that remembers. You give it a quorum k (the smallest group you will ever let be isolable) and the contributor set of each release you want to publish. Before it approves a release, it checks that set against every prior release: if the new set minus a prior one, or a prior minus the new, or their overlap, would leave fewer than k people, it refuses — and names which prior release, and how few people would be exposed. The attack is impossible by construction, not by a reviewer remembering to check. The code a mutation gate proves is the code running under your clicks.

Start here — how to use it

On this page (no install)

  1. Scroll to Try it.
  2. Set k — the smallest group you will allow to be isolable (3 is a common floor).
  3. Propose releases by their contributor lists. Watch IsolationGate approve the safe ones and refuse the one that would let an attacker difference out a person.

In your own system (3 lines)

import { init, propose } from './kernel.mjs';

let { state } = init(3);               // quorum k = 3
({ state } = propose(state, ['a','b','c','d','e']).ok
  ? propose(state, ['a','b','c','d','e']) : { state });
const r = propose(state, ['a','b','c','d','e','f']);
// r.ok === false, r.why === 'refused:difference-isolates …'
//   (the new cohort minus the prior is just {f} — below k)

One file, zero dependencies. The state is a plain value you keep; feed it to the next propose. Drop it in front of any release endpoint, a stats pipeline, a federated-analytics round.

Try it — the live kernel

This panel calls the exact init and propose functions the witness gate proves. Nothing is sent anywhere. Approved releases join the history; a refused one does not.

Presets: the differencing attack safe · disjoint cohort overlap leak below quorum

Release history (approved)

No releases yet.

Propose a new release

—

How it works — traced from a real run

Take the differencing attack preset, k = 3. The history already holds one release over {alice, bob, carol, dave, erin}. Now someone proposes a release over the same five plus frank. Each release passes quorum (5 and 6 are both ≥ 3). But here is what IsolationGate checks — the numbers are the live run.

prior release (already published) {alice, bob, carol, dave, erin} proposed release {alice, bob, carol, dave, erin, frank} new \ prior {frank} — size 1 1 < k (3) → it isolates frank→ REFUSED. The release is blocked. Had both totals been published, subtracting them would reveal frank's value exactly. IsolationGate sees the differencing BEFORE the release, and refuses — automatically, every time.

The gate checks three set operations against every prior release — the difference both ways and the intersection — because each is a way to subtract two totals down to a small group. The mutation gate attacks every edge: it flips < k to <= k, drops the reverse-difference check, lets an empty set through — and each of the 22 rewrites is caught by a test.

The blueprint — organ by organ

OrganFileWhat it does
The kernelkernel.mjsinit(k) opens a gate at quorum k; propose(state, contributors) approves or refuses a release against the whole history. Pure, stateful-by-value (state in → new state or refusal out), never throws. Every refusal is a frozen, exported string.
The contractkernel.test.mjsTests pinning: quorum, the difference both ways, the intersection, the k=2 boundary, bad state and empty contributors all refused as data.
The gatewitness.mjsMutates the kernel 22 ways and demands every mutant die under the tests. Re-run on every push.
The proof.github/workflows/gate.ymlCI re-runs tests + gate on GitHub's own runner — the un-forgeable proof the gated code is the shipped code.
This pageindex.htmlInlines the kernel byte-for-byte; a parity test fails CI if the page and the kernel ever drift.

Why track the whole history, not just the last release? Because the differencing attack can use any pair of releases, in any order, published months apart. The gate's memory is the contributor set of every release — the only state that makes the attack decidable.

For buyers — what IsolationGate does for your organisation

If you publish aggregates — dashboards, statistics, federated-analytics results — you already have a disclosure-control problem, whether or not anyone has named it. IsolationGate turns "we try to remember not to publish overlapping cohorts" into a gate that cannot forget.

For the Head of Privacy / DPO

Differencing is the attack a privacy impact assessment is supposed to catch and usually can't, because it depends on the history of releases, not any single one. Here it is enforced by construction, with a named reason for every refusal — the audit artefact.

For Official Statistics / Research

Disclosure control for published tables, the classic problem. Set k to your minimum cell size; every release is checked against every prior one, so no sequence of publications can be subtracted to a small cell.

For the Federated-analytics lead

Across rounds, cohorts shift as devices join and leave. IsolationGate sits at the release boundary and refuses a round whose cohort differences from earlier rounds would expose a handful of participants.

For the CTO / Eng lead

One pure function, zero dependencies, no network. The state is a plain value you persist. It never throws; a malformed set returns a clean refusal. Drop it in front of any release endpoint.

Security & compliance, answered straight

QuestionAnswer
Where does our data go?Nowhere. The kernel runs in the page / your process. It never sees the aggregate values — only the contributor sets — and there is no network call in the file.
Does it stop every differencing attack?It stops differencing by the set algebra it checks — difference (both ways) and intersection below k — across your full release history. It is a membership-set gate; it does not model attacks that use the values plus outside knowledge. See the limits.
What is k?The smallest group you are willing to let be isolable. Set it to your minimum cell size / cohort floor. k ≥ 2 is required.
What's the licence?MIT. Authored by Kar for AI Native Solutions; licence holder Simon Gant.

The cost case — computed here, change the inputs

Where a human currently reviews each release against prior publications for disclosure risk — or where no one does, and the risk is a breach — IsolationGate removes the manual check. Put your numbers in; the figure is computed live on this page.




Staff hours removed / year
—
Annual saving
—
Cost of IsolationGate
£0

Illustrative. The default £42/hr loaded rate is a mid-range UK figure for a privacy/disclosure analyst (≈£32k–£45k base, grossed up ~1.3× for employer NI, pension and overhead; source: ONS ASHE 2024 median gross pay, business/finance-associate occupations, loaded). The unquantified upside is avoiding a re-identification breach, which is not a line item you should trade away. Compared against disclosure-control / privacy-engineering tooling and services, which run into tens of thousands a year; IsolationGate's kernel is MIT and self-hosted, so the licence line is £0.

White paper — the short version

The problem. An aggregate over a group is assumed to be anonymous. It is not, across releases: publishing a statistic over a cohort and another over an overlapping cohort lets an attacker subtract the two and recover the contribution of the people in the difference. This is the differencing attack, and it is the core problem of statistical disclosure control. Each release looks safe alone; the risk is in the history.

The claim. The decision of whether a release is safe should be a pure, deterministic function of the release's contributor set and the sets of all prior releases, so it can be enforced automatically at the release boundary and proven. IsolationGate refuses a release if, against any prior release, the new-minus-prior set, the prior-minus-new set, or the intersection has a non-empty size below k. These are the three ways two totals can be subtracted to isolate a group. k ≥ 2 is the floor.

Why a mutation gate. Passing tests prove the code works on the cases you thought of. A mutation gate proves the tests work: it rewrites the kernel 22 ways — < k→<= k, a dropped reverse-difference, an empty set admitted — and demands the tests catch every one. 22/22 killed means no mutant of this logic survives the suite.

What it is not — stated plainly. IsolationGate is a membership-set gate: it reasons about who is in each release, not the aggregate values or their noise. It closes the exact-subtraction differencing attack over your release history. It does not add differential-privacy noise, model an attacker who combines released values with external data, or decide your k for you — those are complementary controls. It is the gate that makes the set-differencing attack impossible by construction, to compose with your noise and policy layers.

Risks, answered

"An attacker uses values + outside knowledge."Out of scope — compose with differential privacy; this closes the set-differencing path.
"We set k too low."Policy, and visible — k is in the state and every refusal names it.
"Releases span years / systems."The state is a plain value you persist; the whole history is always checked.
"The code could change silently."CI re-runs the gate + parity; a weakened check fails 22/22 or breaks parity.