CIRIS Kernel: the causal kernel of the CIRIS Constitution

How can people and AI agents that don't trust each other act together, with no one in the middle?

Today that takes a middleman: a company's server, or a blockchain that makes the whole world agree on one shared ledger.

The kernel is neither. It is not a blockchain, and it is not a server. It is something new: a closed set of statements that strangers can make to each other in any order, and that comes out fair. The same rules apply to everyone, the order things arrive in never changes the result, and nobody can bind anyone who didn't sign. It runs on the devices people already have, each over its own copy of the group's signed messages. There is no ledger, no global order, and no miners, validators or tokens. Each device works out for itself what the messages mean, and any two devices holding the same messages reach the same answer.

With the rest of CIRIS, that lets a group do what it does on the internet today (talk, share, decide, vote, moderate, hand out roles) directly between its members, with no server, no company in the middle and no tech person to keep it running. No data center required.

BitcoinProof-of-stake chainsCIRIS kernel
Is there one shared list?Yes: one ledger for the worldYes: one ledger per chainNo. Each group's signed messages, held by its own members
What puts things in order?Mining racesValidators taking turnsNothing. A message only names the earlier ones it builds on
Who agrees?Miners, worldwideValidators, worldwideOnly the members involved
When is it final?By convention, after about an hour of new blocksBy the chain's own rule, once validators sign offWhen enough members have signed
Cost to take partFees and mining energyFees and staked tokensNo fees, no tokens

Backed by 602 machine-checked Lean theorems in 26 files, the figure ./check.sh prints at kernel-v0.2.0. Not validated by an independent implementation or by a deployment under partition.

Device m4's own copy

Try it: a co-op of seven makes a decision, each member on their own phone or laptop in a different place (m1 to m7). m1 proposes; each device that keeps the proposal signs a receipt. Messages arrive late and out of order. Each device decides for itself, and they all land on the same result. This page's own illustration, not the kernel's code.

Why this is not a blockchain, and what it is instead

A blockchain solves one hard problem: getting strangers all over the world to agree on a single order of events, so that nobody can spend the same coin twice. To do that, everyone has to see everything, and a costly race or a stake decides whose turn it is to add the next block.

Most groups don't have that problem. A co-op, a union, a family, a board or an online community needs to know who its members are, what it decided, and who may act for it. Only its own members need to agree on that, and they don't need to agree on an order of events, only on the outcome. The kernel answers exactly that question, so it needs no global order at all.

What it does instead is new, though each piece rests on known results (listed at the foot of the page):

  • A closed set of statements. There is a fixed list of the kinds of thing anyone can say: admit, remove, vote, acknowledge, license, halt, and the rest. A statement outside the list means nothing, so no one can invent a new power for themselves.
  • A web, not a chain. Every message is signed and names the earlier messages it builds on. Two people can write at the same moment and neither waits for the other.
  • The rules are part of the data. Who may admit, remove, moderate or halt is itself written in signed messages that the group agreed to, and every device applies the same rules to them.
  • Final without a referee. "Is this decision final?" becomes "do I hold enough members' receipts that no group able to block it is left?" Any device can check that alone.
  • Consent, not lists. A seat, a role or an authority stands only where everyone it binds has signed. No one is handed authority by appearing on someone else's list.

Eight terms, in plain words

The shape it is taking

This is the design being built and attacked for kernel 0.5.0, the release the CIRIS store will be rebuilt on. In progress None of it is released yet. The proofs and figures further down this page describe the released kernel-v0.2.0.

Groups decide for themselves

Each group, or room, keeps its own roster. Admitting someone, removing them, or giving them a role is counted among the members it affects, under the rule the group chose for itself. No outsider can do it for them.

People count, not keys

A person may have a phone, a laptop and a backup key. Every count is over people: many keys are still one member and one vote. An AI agent's key can act for its owner where no vote is needed. It never votes.

What you accepted stays accepted

When your device acknowledges something, the acknowledgement is itself a message you signed. Later messages can't argue you out of it, and nothing you set aside comes back. That is how a device that was offline catches up safely.

A split heals by a merge, not a winner

If a group is split while its members are cut off from each other, each side carries on. When they meet again, a merge restores one roster. It is counted separately on each side, and it states everyone either side had, less anyone either side properly removed or who left. One side can't do it alone, and a merge can't be used to purge anyone.

Founding charters held by people

A community's root is a charter held by named holders. Changing it takes a majority of them. Two competing changes cancel each other rather than race, and a holder who signs both loses their say on that choice. A lost key comes back only by a route committed to in advance.

Authority you can trace

Whether a licence or a moderator stands is worked out from signed messages, back to an authority the reader itself chose to accept, and never from a list someone hands over. A body with nobody left to act for it can sign nothing new.

Each message reaches the right people

Every kind of message has a stated audience: only you, your group's current members, or everyone. Someone who has been removed receives nothing further. Someone new receives older history only if the group allows it.

Devices can forget, safely

A device may set aside the details of decisions that are settled and keep only what the rules still need. No later message can make that change an answer.

The limits are written down

Where no rule can do better, the design says so in plain words: a side that won't sign a merge stays separate, a brand-new device that has only seen one side can be misled, and a deadline read on two different clocks can differ.

Every answer is computed locally from what the device holds

Aᵢ = K(Rᵢ, kᵢ, tᵢ; C)

The kernel owns no network and reads no shared clock. Its Rust crate, crates/ciris-kernel, is pure functions over an abstract row graph: no_std, no dependencies, and unsafe forbidden. The caller checks signatures, decodes bytes, and passes in the clock and the tables. Implemented

Its one question: given these records, this key and these rules, what follows, and could a later row change it?

The specification an implementation builds to is KERNEL.md; the normative text is TEXT.md.

A function of the set Proved Run

Two nodes holding the same rows reach the same answers in every arrival order. A row waits for what it names and is never refused because of another row. Run over 6,606 sets of up to six rows in 2,182,671 arrival orders.

Causal.door_any_order, conclOf_unique in Causal.lean; run by check.py

Monotone where it can be Proved

Whether a row is kept, and what it concludes, only grow. Whether an act still counts doesn't: a concurrent cut can arrive later. That's the non-monotone half of CALM, and it's why counting needs receipts.

Settled.Rows.count_not_monotone in Settled.lean

Each reader, waiting Proved

Meaning is traced through live consents starting from the reader's own key, so two readers differ only through rows of their own. When an answer can't be given yet, the node waits and names the rows or receipts it's missing.

Causal.two_readers in Causal.lean

Which questions need anyone else at all

The kernel doesn't make coordination free. It narrows coordination to the one question that needs it, and it says which kind of answer each device is holding.

This is finality of an act's authorisation against later cuts. It is a different thing from a vote's count being met, and it says nothing about whether the act was carried out.

An act is final once n − t + 1 members have given clean receipts

n is the number of members at the act's head. t is how many of them it takes to block the act with cuts. A receipt gives away its signer's power to cut and agrees to nothing else. Click members to toggle their receipts.

7
2

This is quorum intersection (Gifford 1979; Malkhi and Reiter 1998). It's proved exact in both directions (Settled.three_ways_final, ack_blocking_quorum in Settled.lean). No bound on dishonest acknowledgers is needed, because a receipt gives away only its signer's own voice. The cost: if t members withhold receipts, the act never becomes final. Withholding costs liveness, not safety. The proof that the threshold is necessary assumes each member who could cut can still sign.

Removals act forward and never rewrite what counted

A cut is a row on a slot by someone allowed to decide it. Removing a member is a cut on their key, and a deciding row is a cut on a contest. Once a cut counts:

  • Rows on that slot that are concurrent with the cut stop counting from the head the cut names.
  • Rows in the cut's own history stand.
  • Rows that name the cut are judged at the head they name.

A cut by a member seated at a later head acts from that head forward. Takedown, moderation and the halt act forward too.

Run by check_cut.py over 4,898 sets in 440,291 orders; the forward rule is proved (later_head_changes_nothing, Rows.later_seat_is_forward).

A relation stands only when everyone it binds has signed Proved

A seat takes two consents. Where a count asks for two or more, one signature never removes anyone, and no key admits itself. Consent.lean, RosterHead.lean

The say rule Proved

A member who both acknowledged an act and voted to cut it, in two rows that don't name each other, loses their say on that slot at that head. They still count as a member. Settled.lean

A split is settled by each reader, and healed by a merge

If two versions of the same roster appear, nobody on the network picks a winner. Each device reads them for itself. A version it has acknowledged stays acknowledged, and what that sets aside stays set aside, for that device alone. Anything that binds other members has to rest on their receipts.

In the released kernel, until a later version names both branches, the roster is the members common to every branch. In the 0.5.0 work, that later version is a merge. It is counted on each side by that side's own members and states the whole roster outright, so both sides read one roster again. In progress

Run by fork_check.py; the reader's line is proved in Reader.lean.

When a deadline binds others, someone signs a landing

The clock is read in only two places: when a window closes, and when a row or key reaches its stated end. If a window's outcome binds others, the member who concludes it signs a landing row, so every node reads the same result. If it binds only the reader, each node reads its own clock, so two readers can differ around a deadline. The text states this as a limit.

Devices can forget settled history and stay correct

A node may fold its state, sign a checkpoint, and drop the bytes of settled acts. A dropped row keeps its digest, the digests it names, the fields the rules read, and its conclusion.

Proved Dropping settled acts changes no answer under any later row (pruned_view_answers). Run Purging is compared with keeping everything by check_purge.py, with eight planted breaks caught.

Proved unsafe Keeping only the bare answer for an unsettled act. The proof exhibits two states that then diverge, a witness pair (Settled.closed_iff_no_witness_pair, count_view_not_closed).

Measured On the authors' machine, at 64,000 rows, building the graph lazily took 12.5 to 16.3 ms and computing every past 204 to 242 ms, over two graph shapes. A whole-set conclusion is quadratic in time and memory. Figures from the crate README.

The kernel leaves cryptography to the layers around it

The kernel assumes only that rows are signed and named by digest. The other components carry the rows, verify signatures and store state. Versions are each repository's latest release tag on 2026-11-18. Statuses follow the Constitution's evidence register at edition 1.0-rc20 and the components' own release notes.

Eight tests the architecture has to pass, and where each stands

TestWhat it asksToday

The kernel's own statement of what is not shown, and what would settle it, is move 8 of OBJECT.md: an independent implementation that agrees with these models, and a deployment under partition, delay, equivocation and crash.

What the kernel does not do

    Every assumption and open problem is listed in REVIEW.md, with how to return a counterexample. What the kernel would and would not mean for governing people and AI agents is in GOVERNANCE.md, including the halt, which the Constitution calls the condition of symmetry between makers and what they make.

    Run the checks yourself

    From the repository root, with Lean 4.14.0 (no Mathlib), Python 3.12, cargo, and Java 11 or later for TLC:

    ./check.sh

    It compiles the 26 proof files, runs ten model checks, counts the divergence list, builds and tests the Rust crate against the models' own cases, and model-checks five TLA+ specs, one line per step. On the commit tagged kernel-v0.2.0 the continuous build printed:

    proofs: 26 files, 602 theorems reported, rc=0
    ciris-kernel: 29 conformance runs (of 29 listed), 7148733 cases, 0 disagreements
    ciris-kernel plants: 49 of 49 caught
    tla: 5 specs, 21780 distinct states, 5 pass with their plant caught
    all 17 steps passed

    602 is the number of theorems the files print with their axioms, not every lemma. The build fails on a sorry or on any axiom beyond the three of core Lean.

    Read further

    Where it comes from

    The Constitution's first commitment is that a person is a person through other persons. Taken as engineering, nothing in the system has a state of its own: every fact about a person, a device, a group or an authority is a signed relation between keys. Standing is then consent between those it binds, authority is never a list, and the function over those relations is the kernel.