Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 40 additions & 3 deletions crates/ciris-kernel/ADOPTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -1720,9 +1720,10 @@ ids]))`. A store reads nothing through the reference while it is `Rivals`; a ref

MLS keys only addressing and live call media (CC 5.1, CC 5.4.4). A leaf is a seated member's DEVICE key, never a node
key; its door is the `mls:leaf_vouch` check. The crate answers three questions over the concluded rows, and computes no
group id: the chat group's id is `SHA-256` over the deterministic encoding of `["CEG-mls-group/2", room]` and a call
group's of `["CEG-mls-call-group/2", room, call]` (CC 2.6.1.11); the crate has no crypto, so you compute them and a door
recomputes from a group id that the group is of the room the vouch names.
group id: the chat group's id is `SHA-256` over the deterministic encoding of `["CEG-mls-group/3", room, gen]` and a call
group's of `["CEG-mls-call-group/3", room, call, gen]` (CC 2.6.1.11; `gen` is the group generation of the room's
`mls`, 0.6.19); the crate has no crypto, so you compute them and a door recomputes from a group id that the group is of
the room the vouch names.

- **Present the vouch** by `mls::LeafVouchRow` (beside `SeatRow` and `KeyEndRow`; every default fails closed):
`is_leaf_vouch`, `vouch_member` (the row's `author`: the person, the agent, or in a private room the voice; the
Expand Down Expand Up @@ -1805,6 +1806,42 @@ yours (see above) and you gather the Commits of a group.
of roster heads along a branch is not checked (the model does not either); RULE.md's "a Commit that arrives before what it
names does not stand until it arrives" is read as written: the Commit is no candidate, and `Waits` is returned only when
nothing stands (a first reading, `Waits` over any unheld name, would let one stranger's Commit freeze a room's head).
### A room's MLS group and suite change (`mls`, 0.6.19; Constitution rulings M4, M5', M6)

A `group:roster` version row carries `mls = {gen, suite}`; an `mls:commit` row carries `mls` always, and a call group's
Commit also `call` (32 bytes, the call id; not a ref, in no `Row::names`, nothing waits on it); a KeyPackage states `suite` (M9, required). A higher `gen` is the successor group. `suite` is `mls::SUITE_CLASSICAL` (77) or `mls::SUITE_COMPOSITE`
(0xF04D, 61517), nothing else. The 32-byte `group` member of a Commit is gone: the group id is derived, as above. The crate
always applies these rules and does not gate them: a row that states no `mls` fails closed.

- **Present** by `mls::CommitRow`, each default `None`: `commit_mls() -> Option<Mls>` (the `mls` a Commit
states; `Mls { gen, suite }`), `commit_call() -> Option<[u8; 32]>` (the call id; none is the room's chat group)
`version_mls() -> Option<Mls>` (the `mls` of a `group:roster` version row; none on every other row),
`key_package_suite() -> Option<u64>` (a KeyPackage's `suite`) and `commit_names_tree() -> bool` (a Commit's
`evidence_refs` is non-empty).
- **A Commit stands** (`branch_standing`, `commit_head`, `key_package_spent_by`) only where, beside the readings above:
its `mls` equals its head version's (a Commit stating none, or a head version stating none, does not stand); its head
version is well-formed (its suite is one of the two; no version in its past states a higher gen; a version in its
past of the same gen states the same suite, so no suite change in place; the classical suite is not stated once a
version in its past states the composite); the Commits it names (`prev`, `further_prev`) state the same gen and the
same `call` (none equals none); and (M9) every KeyPackage it cites states a `suite` equal to the Commit's `mls.suite` (one stating
none: the Commit does not stand). `key_package_spent_by` counts only such Commits.
- **A successor group ends the Commits of the group it leaves**: where a held concluded version of another gen has the
Commit's head version in its past, the Commit stands only if it is in that version's causal past. A reader not holding
that version reads the Commit as before.
- **Two concurrent successors wait**: two held versions of a different gen or suite from one fork point, neither in the other's past,
with no held version descending from both: a Commit of either version is `Wait` (on the least id that is the lesser of such
a pair), never one picked; a version descending from both of the higher gen ends the wait. No instant, arrival order,
digest or ranking decides.
- **`mls::welcome_counts(&c, &law, &spec, &who, &room, &welcome) -> Result<bool, Wait<Id>>`**, with the trait
`mls::WelcomeRow: CommitRow` (`is_welcome`, `welcome_commit`, `welcome_joiner`, each default none): a Welcome counts only
where the Commit it cites stands (a wait propagates; a Commit not held is a wait on it), the Welcome's signer is the
Commit's signer, its joiner is seated at the head the Commit names (`seat::members_at_row` of the Commit), and, where the Commit's suite
is 61517, the Commit names its tree (`commit_names_tree`: `evidence_refs` holds exactly the tree-blob digest, at most
one entry and only under 61517; admission refuses anything else, so non-empty means it names the tree). Under 77
nothing changes. It is read
at read time, not at admission: a Welcome may arrive before its Commit.
- **The door checks that stay yours**: a message's group id and suite against the row; a vouch's suite equal to its group
head's; a call group's suite the room head's. The crate has no crypto and reads no MLS bytes.
### Location proofs and geographic admission (Server 0.6.0, persist K37 to K40; `location`, 0.6.11)

A geographic community admits a member only on a location proof (CC 3.3.3, family `location_proof:v1`: placement
Expand Down
11 changes: 11 additions & 0 deletions crates/ciris-kernel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog — ciris-kernel

## [0.6.19]

Pins Constitution `v1.0-rc23-pre12` (8bf8e0d, family_model sha256 cc147cd2, 193 families), unchanged from 0.6.18. Does NOT read the charter `suites` member. The MLS rulings M4, M5′ and M6 (2026-12-04) are read from the Constitution session, ahead of their text.

- **Added: a room's MLS group and suite change** (Constitution rulings M4, M5', M6; `models/causal_kernel/mls.py`, `check_commit.py` Part 6). `mls::Mls { gen, suite }`, `SUITE_CLASSICAL` (77), `SUITE_COMPOSITE` (0xF04D); `CommitRow::commit_mls`, `commit_call` (32 bytes) and `version_mls`, each default `None`. Always applied, no gate: a Commit stands only where its `mls` equals its head version's (none stated on either: it does not stand), its head version is well-formed (gen never lower than one in its past, the same gen the same suite, the classical suite not after the composite, suite one of the two), the Commits it names state the same gen and `call`, and a KeyPackage it cites that states `mls` states an equal `mls` and `call`; a successor group ends the Commits not in its causal past; two concurrent versions of a different gen or suite make a Commit of either `Wait` (never one picked). `key_package_spent_by` counts only Commits a KeyPackage's `mls` and `call` match. Cases M2 in `check_commit.py`, fixture `mls_m2.json`, test `the_group_and_suite_change`, fourteen plants.
- **Added: `mls::welcome_counts` and `mls::WelcomeRow`** (M4.5): a Welcome counts only where the Commit it cites stands (a wait propagates), its signer is the Commit's signer and its joiner is seated at the Commit's head (`seat::members_at_row`). Read at read time, not at admission.
- **Changed: a KeyPackage's suite** (Constitution ruling M9). An `mls:key_package` states `suite` (77 / 61517), required; the KeyPackage `mls`/`call` matching is removed. `CommitRow::key_package_suite` (default none). A Commit stands only where every cited KeyPackage states a suite equal to the Commit's `mls.suite` (one stating none: it does not stand); `key_package_spent_by` counts only such Commits. Cases M2.9, M2.9b, M2.9c, M2.9d; plant `key_package_suite_unread`.
- **Added: a composite Welcome needs the tree digest.** `CommitRow::commit_names_tree` (default false): an `mls:commit`'s `evidence_refs` holds exactly the tree-blob digest, at most one entry and only under 61517 (admission refuses anything else), so non-empty names the tree. `welcome_counts`: a Welcome citing a Commit of suite 61517 that names no tree does not count; under 77 nothing changes. Cases M2.12f, M2.12g; plant `welcome_tree_unread`.
- **Changed (docs): the group ids are `["CEG-mls-group/3", room, gen]` and `["CEG-mls-call-group/3", room, call, gen]`**; the `group` member of a Commit is gone; WIRE_MAP 6.5 states the `mls:commit`, KeyPackage and Welcome members and the `mls` member of a `group:roster` version row.
- **Fixed: `seat::owner_at_rows` read no owner on the wire** (Constitution, T1 clarification, 2026-12-04). It read each row's owner over that row's concluded causal past, but an owner-binding names no row on the wire (WIRE_MAP 4), so the owner's person registration was never in a trace's past and every trace read no owner (and `one_owner` gave `NoOwner`). Now which owner comes from the row's own past (the binding, its withdrawal, every key end), and ONLY the person-registration gate (a registration of the owner key as a person is HELD) is read from the whole concluded set beside each row's cut. The gate reads no end of anything, so it moves a reading only from no owner to the one owner the binding names, never to another owner and never back; readers holding different sets differ only as none and an answer. Crate: `Seats::with_gate`, a `gate` argument to `owner_qualifies_in`/`owner_is_person`/`binding_of` (all others pass `None`: `live_owner`, `live_binding`, `live_binding_at` and the duty seat are unchanged). The 0.6.18 fixture hid it: its binding `b1` named the registration `ru~W1`, which the wire never does. The O9 cases now state their rows with no presentation (the binding names no row) and add `reg_a` and `reg_end`; plants `gate_in_past_only`, `gate_reads_end_whole`.

## [0.6.18]

Pins Constitution `v1.0-rc23-pre12` (8bf8e0d, family_model sha256 cc147cd2, 193 families), unchanged from 0.6.17. Does NOT read the charter `suites` member.
Expand Down
2 changes: 1 addition & 1 deletion crates/ciris-kernel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ciris-kernel"
version = "0.6.18"
version = "0.6.19"
edition = "2021"
rust-version = "1.89"
description = "The CIRIS causal kernel as pure functions over an abstract row graph (no I/O, no clock, no crypto)"
Expand Down
Loading
Loading