GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: group-encryption sessions consume keyset device sets (#2380 packet 3) by developing-today-fleet[bot] · Pull Request #15030 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 25, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Refs #2380, Refs #13955 — packet 3 of the keyset ADR (§7): group-encryption per-device sessions consume the folded keyset device set.

Summary

The DataScheme adapter's roster is no longer the group view's raw member keys. Membership binds to an identity (its genesis admin key, ADR Decision 1); the roster is the expansion of each member identity into its active keyset device keys — one session per device, enrolment and revocation living in the keyset log, not in the encryption layer (ADR §6).

  • id-groups (encryption): new DeviceSets — member identity → its folded active device keys, with the single-key fallback (a member with no recorded set is its own only device; a member recorded with an empty set holds no session). Session::create / add / add_with_history / add_from_join / remove / recover take &DeviceSets; the preconditions and the roster check in change work on the expansion. No new crate dependencies: id-groups' design-map dependencies (id-core, id-store, id-events) are unchanged — the adapter consumes plain key sets.
  • id-directory (keyset): KeysetState::active_device_keys() — the folded active (unrevoked) device keys as raw key bytes.
  • id-cli (commands::keyset): device_sets() builds the adapter's DeviceSets from folded keysets keyed by member identity — the composition a session host calls.

Evidence

Test-first: a0662f679 lands the tests with the API threaded but not yet consumed; 3e3512a69 consumes it; b881b39a7 is rustfmt only; f72e167f7 fixes a delivery mistake in one new test (below).

  • Red, id-groups (run 45590234701, Linux, ref a0662f679): encryption suite 84 passed / 3 failed / 1 ignored — the failures are exactly the three new session tests, at their create/add/remove expectations: test_keyset_create_gives_every_device_of_a_member_a_session, test_keyset_newly_enrolled_device_is_added_without_a_membership_change, test_keyset_revoked_device_is_removed_while_its_member_stays. The DeviceSets expansion unit test already passed (the type was complete; the adapter ignored it).
  • Red, id-directory + id-cli (run 45599479970, macOS, ref a0662f679): keyset suite 26 passed / 1 failed — active_device_keys_excludes_revoked_devices; cli filter 0 passed / 1 failed — device_sets_cut_each_member_to_its_active_devices. (These legs cannot build on the Linux executor image — it cannot execute the ring/aws-lc build scripts, known defect fleet-command executor: ring/aws-lc-sys build-script binary fails to execute (os error 2) — native build-script dependency trees unbuildable dezren39/fleet#111 — so they run on the macOS target.)
  • Green, id-groups (run 45601129836, Linux, ref f72e167f7): 87 passed / 0 failed / 1 ignored, GROUPS_EXIT=0; all four keyset tests ok by name. First green attempt (run 45597499857, 86/1) failed only the enrolment test: the test had not delivered the create envelope to the joining device, which the cast convention requires ("a joiner needs the control history to take the welcome") — a test delivery fix, no adapter change.
  • Green, id-directory + id-cli (run 45606537652, macOS, ref f72e167f7): keyset suite 27 passed / 0 failed (DIRECTORY_EXIT=0, active_device_keys_excludes_revoked_devices ok); cli filter 1 passed / 0 failed (CLI_EXIT=0, device_sets_cut_each_member_to_its_active_devices ok).
  • No new test files — all tests live in existing suites (id.rust.unit venue: cargo test --lib in pkgs/id), so no registry row is owed.
  • Evidence level: not built on the seat; verified on GitHub Actions via the fleet-command workflow (remote-only build rule).

Merge danger

  • Session membership methods gain a parameter. There are no production callers yet — the adapter is exercised only by its tests (grep over pkgs/ finds none) — so nothing else compiles against the old signatures.
  • With DeviceSets::new() the expansion equals the old model exactly; every pre-existing encryption test passes with only the call-site parameter added. The roster-mismatch poison behaviour is preserved.
  • What remains for id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380: criterion 2 (QR pairing enrolment/revocation) is covered by open PRs id: enrol a second device key via QR pairing (#2380 packet 2) #14581 and id-directory: keyset enrolment and revocation by QR pairing (#2380 packet 2) #14460; criterion 3's tail is a production session host passing real folds via commands::keyset::device_sets — no session caller exists yet. id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380 stays open.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
felix added 3 commits November 25, 2026 09:56
felix
test(id): keyset device-set tests for the encryption adapter (#2380 p…
a0662f6
…acket 3, red)

New tests name the packet-3 behaviour: a group session's roster is the
expansion of member identities into their folded keyset device sets.
- id-groups encryption: DeviceSets type added and threaded through
  Session create/add/add_with_history/add_from_join/remove/recover;
  the adapter still cuts the roster from the raw view in this commit,
  so the three new session tests fail by assertion.
- id-directory: KeysetState::active_device_keys added; it does not yet
  exclude revoked devices, so its test fails by assertion.
- id-cli: commands::keyset::device_sets added; it does not yet read the
  folded states, so its test fails by assertion.
All pre-existing call sites pass DeviceSets::new() (the single-key
fallback), so existing behaviour is unchanged.
felix
feat(id): encryption sessions consume keyset device sets (#2380 packe…
3e3512a
…t 3)

The DataScheme adapter now cuts its roster from the folded keyset
device sets: Session create/add/add_with_history/add_from_join check
the target device key against the expansion of the view's members,
remove checks it is gone from the expansion, and the roster check in
change compares against the expansion. A member identity with no
recorded set is its own only device, so single-key behaviour is
unchanged. KeysetState::active_device_keys now excludes revoked
devices, and commands::keyset::device_sets builds the adapter's
DeviceSets from folded keysets keyed by member identity.
felix
style(id): rustfmt the keyset device-set changes (#2380 packet 3)
b881b39
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 059d5a65-90ec-404f-8405-aa52db836008

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

felix
test(id): deliver the create to the whole cast in the keyset enrolmen…
f72e167
…t test (#2380 packet 3)

A joiner needs the control history to take its welcome (the tests.rs
module convention): device 12 must hear the create before the add, or
its session takes no roster from the welcome. The adapter was right;
the test's delivery was not.
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 25, 2026
id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380
Closed
4 tasks
@developing-today-fleet
developing-today-fleet Bot merged commit feb00b8 into main Nov 25, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the felix/2380-keyset-device-sessions branch November 25, 2026 12:21
This was referenced Nov 27, 2026
id: finish QR revoke and pairing payload validation #14688
Merged
id keyset log (#2380) implementation: enrolment/revocation, device-key consumption, migration #13955
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

0 participants

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.