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.

29 changes: 29 additions & 0 deletions crates/ciris-kernel/ADOPTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,35 @@ yours (see above) and you gather the Commits of a group.
leaf's door, checked by whoever reads the tree"; a vouch cannot be a cited row, since "A row that vouches for several
rooms is placed at `self`, and each room sees only its presentation"): the vouches are the `mls:leaf_vouch` rows you
hold, which you present in `c` from the leaf credentials of the tree you read.
- **`also.voice` on the four MLS families, and the vouch's link (0.6.20, M10, ruled 2026-12-04).** An `mls:commit`,
`mls:key_package`, `mls:welcome` or `mls:leaf_vouch` row signed by a self-roster key that is not the roster's genesis key
names in `refs.also.voice` (exactly one) the newest head of that self's key roster in which the signing key is seated
(as a consent row does, ruling C2.2; it is one of `Row::names`, so the roster sits in the row's past). The kernel reads:
(i) the signer's party in the row's own past (unchanged, C1.8); (ii) in `mls::members_for_commit` each VOUCH's
member-to-device link in the VOUCH's own causal past (it was read in the Commit head's past, where a device's self-roster
add never is), through `seat::author_person_at`; evictions of the device and device revocations are still read in the
Commit head's past too. So present each vouch with the voice head it names among its `names()`; a vouch naming no voice
has no member-to-device link and its leaf is not live. `members_at` and `leaf_vouch_live` are unchanged (the vouch is in
the head's past there).
- **The party of an authored row: `seat::author_person_at`, `seat::author_revoker_at` or `seat::person_at` (0.6.20, M10.5,
M10.6, M10.6').** `seat::author_person_at(c, at, law, spec, k) -> Option<Key>` is the party of a GRANT (or vote, or a
vouch's member-to-device link) the key `k` SIGNED, and what `consent::Reading::person` must give for
`consent_state::party_of`. It is the voice `k` speaks as over the concluded rows in `at`'s past, `at` included
(`Persons::over(..).voice(k)`, as Persist reads it: the person's genesis key; `k` itself for a key of no roster, an agent's
key too; none for a key of two persons or one revoked in that past), THEN none unless EVERY end of `k`'s voice the reader
holds (a landed self-roster eviction of `k`, or a revocation of `k` in either lane) reaches row `at`: the row is among the
end's ancestors, or the end names it (or a row with it in its past) in `trusted_through` (`SeatRow::trusted_through`, the
end's `refs.trusted_through`, at most 64: the newest rows of the ended key held good; for consent, the newest row of each
consent series, the `prev` chain putting the rest in the end's past). No instant. A key with no held end passes through
unchanged. A grant the end does not reach counts for no one.
**M10.6' (CC):** a consent REVOCATION by an ended key that the end does not reach still blocks. `seat::author_revoker_at`
gives it the voice read in its OWN past (no end read), via `Reading::revoker` and `consent_state::revoker_party_of`, for
one purpose: that person's later grant from a live key, with the revocation in its past, lifts it. It never grants, counts
as the person for nothing else, and nobody else lifts it (the crate keeps this as the one `revoking` branch of
`author_party_at`). A `Reading` implementor that reads `author_person_at` MUST override `revoker` with
`author_revoker_at`. Call `seat::person_at` for a COUNT over persons: it keeps its head-wise rule 4 (an eviction
concurrent with the row cuts the key only for a row that has every head the eviction names in its past); counts are
unchanged.
- **`mls::branch_standing(&c, &law, &spec, &who, &room, &commit) -> Result<bool, Wait<Id>>`**: the Commit STANDS where every
row it cites (head, prev, further_prev) is held, every Commit it names stands, it states a head and a tree, and its tree
holds no leaf that is not a leaf at its roster head (`mls::members_for_commit` of the Commit, new in 0.6.12: `members_at`,
Expand Down
9 changes: 9 additions & 0 deletions crates/ciris-kernel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog — ciris-kernel

## [0.6.20]

Pins Constitution `v1.0-rc23-pre13` (tag object be5a2d4, commit 835509a, family_model sha256 d57f63dd, 193 families), moved from pre12. It carries M10 and M10.5/M10.6′ ("A key that has ended", CC 4.4.3.30), the corrected `mls:welcome` signer cell (`RosterMember`, not_subject), and wider placements for `holon:claim`, `key:*`, `mls:*` and ownership, with new blind cells for the MLS families. Does NOT read the charter `suites` member.

- **Added: `also.voice` on the MLS families, and the vouch's link read in the vouch's past** (M10, Constitution session 2026-12-04). `mls:commit`, `mls:key_package`, `mls:welcome` and `mls:leaf_vouch` rows signed by a self-roster key that is not the roster's genesis key name in `refs.also.voice` the newest head of that self's key roster in which the signing key is seated (WIRE_MAP.md, ADOPTING.md). `mls::members_for_commit` reads each vouch's member-to-device link in the VOUCH's own causal past (through `seat::author_person_at`), where it read it in the Commit head's past, in which a device's self-roster add never is; evictions of the device and device revocations are still read in the Commit head's past. `members_at` and `leaf_vouch_live` are unchanged. Cases M10.1, M10.2 in `check_commit.py`; the old cases state each vouch's voice (`also.voice`) in its names and the device's revocation names the vouch in `trusted_through`, so no old answer changed. Plant `vouch_link_in_head_past`.
- **Added: `seat::author_person_at`, `seat::author_revoker_at`, `SeatRow::trusted_through`, `Reading::revoker`, `consent_state::revoker_party_of`** (M10.5 scoped, M10.6'). `author_person_at -> Option<Key>` is the party of an AUTHORED grant (and a vouch's member-to-device link): the voice the key speaks as over the rows in the row's past, row included (`Persons::voice`, as Persist reads it: a key of no roster, an agent's too, reads as itself), then none unless every end of the key the reader holds (a landed self-roster eviction, a revocation in either lane) neither has the row among its ancestors nor names it in `trusted_through`. No instant. Counts over persons keep `person_at` (head-wise rule 4), unchanged: M10.10. `Reading::person` documents that an implementor reads `author_person_at`. Cases M10.3 to M10.11b in `check_key_person.py` (fixture `key_person.json`, `author`), the consent outcomes M10.5 to M10.8 in `check_consent_state.py`; plants `end_in_past_only`, `trusted_through_ignored`, `counts_take_author_end`.
- **Added: an end names the ended key's newest rows held good** (M10.6): `trusted_through` on an eviction or a revocation (for consent, the newest row of each series; the `prev` chain puts the rest in the end's past, which `author_person_at` reads). A GRANT of the ended key that the end does not reach counts for no one.
- **Added: M10.6' (CC ruling): a revocation an end does not reach still blocks.** `seat::author_revoker_at` gives such a revocation the voice read in its own past, for one purpose: that person's later grant from a live key, with the revocation in its past, lifts it. It never grants and counts as the person for nothing else; nobody else lifts it. `Reading::revoker` (default: `person` at the row; an implementor reading `author_person_at` must override it) and `consent_state::revoker_party_of`. Cases M10.6', M10.6'c (fixture `key_person.json` `revoker`; the consent outcomes in `check_consent_state.py`); plant `softened_revocation_grants`.

## [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.
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.19"
version = "0.6.20"
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
4 changes: 3 additions & 1 deletion crates/ciris-kernel/VECTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ below that the schema cannot state is marked **(prose)**; a minter checks it and
```json
{
"form": "ciris-kernel-cases/1",
"constitution": "CIRISConstitution rc23-next d5d42bf",
"constitution": "CIRISConstitution v1.0-rc23-pre13 835509a",
"cases": [ ... ]
}
```
Expand Down Expand Up @@ -73,6 +73,8 @@ The founding inputs MUST equal the first `group:roster` version's members of the
places itself by its own payload members (`cohort_scope`, `community_id`, `family_id`), written with
`{"$group": "g"}`.

**MLS on a roster version (0.6.20, CC M4).** Every `group:roster` version, the founding and each later one, carries `mls = {gen, suite}` in its payload; the neutral cases write `{"gen": 0, "suite": 77}` (the room's first group, the classical suite). The schema leaves payload members open, so it is unchanged.

**Placement (0.6.11).** Every row states `cohort_scope`, paired with its group id (`family_id` at `family`, `community_id`
at `community`), except an accord row (closed payload) and a row a genesis bundle names (the minted root's holder and seat
records and binding, which the minter supplies), and `kernel_vectors.py` asserts it. A `group:roster` is at its own group
Expand Down
2 changes: 1 addition & 1 deletion crates/ciris-kernel/WIRE_MAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ statement over the same payload, counted; never a payload member"). A store does
| `also.cites` | a set | a cited row: a widening's acceptance, a keeps row's end, a landing's counted rows, a bundle's key records and bindings, an eviction's voices' key records | `ContentRow::extends`; the standing acceptance a widening names |
| `also.under` | a set of exactly one | the edge a deputy's edge hangs from; on a node's row in a private room, the in-room owner-binding | `SeatRow::under`, `ConferralRow::via`, `StandingRow::via` |
| `also.stands_on` | a set of exactly one | the acceptance a row under a root grant stands on | `StandingRow::on` of an act |
| `also.voice` | a set of exactly one | the head of the key roster of the voice a room key signs for; on a `consent:state:*` row signed by a roster key of a self, the newest head of that self's key roster the signer holds in which the signing key is seated (the Constitution's ruling C2.2, 2026-12-04) | the private-room door (`roomkey.py`); a store reads it before presenting the row as its voice's. No accessor of its own: it is one of `Row::names`, and so puts the voice's roster in the row's past, where the person map reads it (section 6.4). A voice-roster row names its head in `head` instead [G35] |
| `also.voice` | a set of exactly one | the head of the key roster of the voice a room key signs for; on a `consent:state:*` row signed by a roster key of a self, and on `mls:commit`, `mls:key_package`, `mls:welcome` and `mls:leaf_vouch` rows signed by a self-roster key that is not the roster's genesis key (M10, 2026-12-04), the newest head of that self's key roster the signer holds in which the signing key is seated (the Constitution's rulings C2.2 and M10, 2026-12-04) | the private-room door (`roomkey.py`); a store reads it before presenting the row as its voice's. No accessor of its own: it is one of `Row::names`, and so puts the voice's roster in the row's past, where the person map reads it (section 6.4). A voice-roster row names its head in `head` instead [G35] |

**A `consent:state:*` row's `refs`** (the Constitution's ruling C2, 2026-12-04; read by `consent_state::consent_read`):
`head` names the owner-binding on an owner's row for a key it owns, and nothing on a key's own row; `also.voice` as
Expand Down
26 changes: 13 additions & 13 deletions crates/ciris-kernel/src/audience_table.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @generated by tools/family_placement.py from the Constitution's manifests/family_model.json
// (branch v1.0-rc23-pre12, commit 8bf8e0d98156bb157e80cc65fa1bc1e3ecbc95a6, sha256 cc147cd284d08cf82dc933ad2f4e8b2f6f972ca610a0db3b6d4aada5bc7db94f). Do not edit: re-pin with that script.
// (branch v1.0-rc23-pre13, commit 835509a21d1fed916596778384b462461477e51a, sha256 d57f63dd46130d1e7f06dca48f441b0c54b359ab13467c561b3c0bc0b977fad2). Do not edit: re-pin with that script.

use super::{Blind, FamilyPlacement, Follows, Placement};

/// The family model's sha256, the pin of [`FAMILIES`].
pub const FAMILY_MODEL_SHA256: &str = "cc147cd284d08cf82dc933ad2f4e8b2f6f972ca610a0db3b6d4aada5bc7db94f";
pub const FAMILY_MODEL_SHA256: &str = "d57f63dd46130d1e7f06dca48f441b0c54b359ab13467c561b3c0bc0b977fad2";

/// The cohort scope a row states, with the placement it is (the table's `scopes`, CC 5.2), and `addressed`.
pub const SCOPES: &[(&str, Placement)] = &[
Expand Down Expand Up @@ -125,7 +125,7 @@ pub const FAMILIES: &[(&str, FamilyPlacement)] = &[
("hard_case:{kind}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("hardware_custody:{platform}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("health:liveness:{version}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("holon:claim", FamilyPlacement::Allowed(&[Placement::Commons])),
("holon:claim", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("identity:canonical_binding:{canonical_hash}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("identity:occurrence", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons, Placement::Addressed])),
("identity:occurrence_revocation", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons, Placement::Addressed])),
Expand All @@ -135,8 +135,8 @@ pub const FAMILIES: &[(&str, FamilyPlacement)] = &[
("integrity:{aspect}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("judge_model:verdict:{model_id}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("justice:{aspect}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("key:record", FamilyPlacement::Allowed(&[Placement::TargetedRoom, Placement::Commons])),
("key:revocation", FamilyPlacement::Allowed(&[Placement::TargetedRoom, Placement::Commons])),
("key:record", FamilyPlacement::Allowed(&[Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("key:revocation", FamilyPlacement::Allowed(&[Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("key_boundary:{scope}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("key_grant:{axis}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom])),
("lawful_order:release", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
Expand All @@ -150,9 +150,9 @@ pub const FAMILIES: &[(&str, FamilyPlacement)] = &[
("membership:{stage}", FamilyPlacement::Allowed(&[Placement::TargetedFamily, Placement::TargetedRoom])),
("mesh_config:{key}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("method:{approach_id}:{substrate_rung}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("mls:commit", FamilyPlacement::Allowed(&[Placement::TargetedRoom])),
("mls:key_package", FamilyPlacement::Allowed(&[Placement::TargetedRoom])),
("mls:leaf_vouch", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedRoom])),
("mls:commit", FamilyPlacement::Allowed(&[Placement::TargetedFamily, Placement::TargetedRoom])),
("mls:key_package", FamilyPlacement::Allowed(&[Placement::TargetedFamily, Placement::TargetedRoom])),
("mls:leaf_vouch", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom])),
("mls:welcome", FamilyPlacement::Allowed(&[Placement::Addressed])),
("model_3d:*", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("moderation:{allegation_type}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
Expand All @@ -164,7 +164,7 @@ pub const FAMILIES: &[(&str, FamilyPlacement)] = &[
("objection:{state}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("observation:access_assumption", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("observation:reachability", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("ownership:{relation}:{target_kind}:{version}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("ownership:{relation}:{target_kind}:{version}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons, Placement::Addressed])),
("partner_role:{role}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("peer_reachability:{network}", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
("preserve_request", FamilyPlacement::Allowed(&[Placement::SelfCollective, Placement::TargetedFamily, Placement::TargetedRoom, Placement::Commons])),
Expand Down Expand Up @@ -348,10 +348,10 @@ pub const BLIND: &[(&str, Blind)] = &[
("membership:{stage}", Blind::Members(&["body.note"])),
("mesh_config:{key}", Blind::Members(&["body.note"])),
("method:{approach_id}:{substrate_rung}", Blind::Members(&["body.note"])),
("mls:commit", Blind::Members(&["body.note"])),
("mls:key_package", Blind::Members(&["body.note"])),
("mls:leaf_vouch", Blind::Members(&["body.note"])),
("mls:welcome", Blind::Members(&["body.note"])),
("mls:commit", Blind::Members(&[])),
("mls:key_package", Blind::Members(&[])),
("mls:leaf_vouch", Blind::Members(&["leaves"])),
("mls:welcome", Blind::Members(&[])),
("model_3d:*", Blind::Members(&["body.note", "body.sealed"])),
("moderation:{allegation_type}", Blind::Members(&[])),
("moderation_track_record:{community_key_id}", Blind::Members(&[])),
Expand Down
Loading
Loading