GeezerVison is showing github.com — id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) · Issue #2380 · developing-today/code
id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380DescriptionFollow-up from the key-recovery investigation on #2060 (doc: investigations/key-recovery.md in the ID program workspace, §1/§3/§7). Parent epic: #2056.
Problem
pkgs/id identity is a single Iroh Ed25519 secret key (src/local.rs: SecretKey::generate() / open_with_key); the public key IS the account (invites name it directly, src/invite.rs). There is no indirection for device keys, revocation, IdP bindings, or rotations — so a lost key is a lost identity and a second device is a second account.
Proposal
Design (then implement) a signed keyset/authorization log as the identity substrate: an identity identifier plus an append-only chain of signed records — device-key enrolment/revocation, hosted IdP claim bindings (#2044 §4.3 option 1), guardian sets (see social-recovery follow-up), and key rotations. Group membership and directory records bind to the identity, not to one key. Keyset-admin operations (add/revoke device, change guardians) are narrower-scoped than everyday signing.
Acceptance
- Design doc section or ADR covering record formats, fold/verification rules, and the identity identifier derivation.
- Enrolment + revocation of a second device key via QR/invite-style pairing (
src/qr.rs, src/invite.rs surfaces exist).
- Existing group-encryption per-device sessions (
src/encryption/) consume device keys from the keyset.
- Old single-key accounts migrate via a genesis keyset record signed by the existing key.
Implementation tracking (2026-11-26)
Refs #14460, #14662, #14688, #15030. #13955 remains open for the broader acceptance and packet 4 migration work.
Refs #14460
Refs #14662
Refs #14688
Refs #15030
Refs #13955 Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Nov 3, 2026 🤖 Agent note · triaged (still live, design-first; follow-up enqueued)
Fresh verification (2026-11-03T16:35Z, gh, current main):
- Issue id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380 — OPEN; parent epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 OPEN; origin investigation id: investigate: key recovery for hosted users — Google SSO loss vs the ID keypair #2060 CLOSED.
- No implementation exists:
pkgs/id/src listing shows local.rs, invite.rs, qr.rs, encryption/, hosted_binding.rs, idset.rs — no keyset / authorization-log module; code search for "keyset" in this repo hits only unrelated pkgs/identity/web/web.go; no PR in any state mentions keyset. The issue's premise stands: identity is still the single Iroh Ed25519 key in src/local.rs, with invites naming the public key directly.
Scoping / ordering:
- Design first — acceptance item 1 (record formats, fold/verification rules, identity identifier derivation) gates everything else. Enqueued as queue task 8502 (small_fix: produce the ADR, then scope the implementation packets).
- Then, in order: enrolment/revocation of a second device key via the existing
qr.rs/invite.rs surfaces → src/encryption/ per-device sessions consuming keyset device keys → genesis keyset migration for existing single-key accounts.
- No external blocker: the IdP-binding record type should follow id: investigate: Cloudflare Workers edition — isolates + Durable Objects + per-user SQLite fit for ID #2044 §4.3 option 1 as the issue states; guardian-set records depend on the separate social-recovery follow-up, so the ADR should reserve the record type without blocking device-key enrolment on it.
Triage task 7904 completes as triaged; the fix path is task 8502. developing-today-fleet commented on Nov 25, 2026 Progress — felix lane, packet 3 slice landed as PR #15030 (head f72e167f7, unmerged for review).
Criterion states against origin/main + this PR:
Evidence (fleet-command runs, remote only): red — Linux run 45590234701 (encryption 84 pass / 3 fail, the three new session tests) and macOS run 45599479970 (keyset 26/1, cli 0/1 — the two new unit tests). Green — Linux run 45601129836 (encryption 87 pass / 0 fail, all four keyset tests ok by name) and macOS run 45606537652 (keyset 27/0, cli 1/0). The directory/cli legs run on macOS because the Linux executor image cannot execute the ring/aws-lc build scripts (dezren39/fleet#111). One earlier green attempt (45597499857, 86/1) failed only a test-side delivery mistake (create envelope not delivered to the joining device), fixed in f72e167f7 with no adapter change.
Next slice, in the same form: after a session host exists in id-cli (chat/serve), commands::keyset::device_sets shows the group's sessions cut from real member folds end to end — the adapter side is ready; no production Session caller exists yet. #2380 stays open for criterion 2. developing-today-fleet commented on Nov 25, 2026 Criterion 3 landed: PR #15030 merged by Felix 2026-11-25. Group-encryption per-device sessions now consume keyset device keys: DeviceSets folds each member identity to its active (unrevoked) device keys — an unrecorded member is its own only device, a member whose devices are all revoked holds no session — and Session create/add/remove/recover plus the roster check all run against that expansion. Verified red→green: Linux run 45601129836 (encryption 87 passed / 0 failed), macOS run 45606537652 (keyset 27/0, cli 1/0, new tests by name). #2380 stays open: criterion 2 rides on PRs #14581/#14460; criterion 3's tail (a production session host passing real folds) lands when a production Session caller exists. Refs #2380 developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · queue task 24903 disposition (oc-code-06, 2026-11-26)
Fresh check: #2380 remains OPEN. No additional implementation slice is safe to start from this triage claim: criterion 1 (ADR) and criterion 4 (genesis migration) are already landed per issue history; criterion 3 (device-set consumption in group encryption) landed in #15030; criterion 2 is actively tracked under #13955, with #14460 merged and #14688 still draft/conflicting. The #13955 pairing work has a live queue task 22889 parked for a refreshed conflict-resolved PR head, so I did not duplicate it. #13955 also tracks the remaining acceptance tail.
Disposition: no new follow-up task or code change from this pass; #2380 stays open for the outstanding pairing follow-up/production caller acceptance. Resume the existing #13955 queue/PR work rather than reopening completed slices. developing-today commented on Nov 27, 2026
Fresh triage (code-h, task 25422, 2026-11-27): no new H4/keyset implementation is routed here; pairing and remaining production acceptance stay under #13955. Current linked PRs: #14460 merged, #15030 merged, #14581 open, #14688 open/draft. To make the verified disposition own the remaining PRs, #13955 now explicitly references #14581 and #14688 in its body. Existing shepherd task 22889 remains parked on conflict-resolved PR recheck; no duplicate implementation packet. developing-today commented on Nov 27, 2026 Triage verdict — oc-code-03, 2026-11-27
Verdict: still real/open; no duplicate follow-on from this pass. Fresh verification: ADR #8984, keyset log/migration #11733, and group-encryption device-set support #15030 are merged. Pairing/revocation is the remaining active slice under #13955: #14460 is merged, #14581 is open, and stacked #14688 is still draft. #13955 has the existing parked task 22889 and records the conflict-resolved-head/test resume condition.
I did not start or enqueue a duplicate implementation task. Resume the existing #13955/#22889 work when its PR head is conflict-resolved and can be retested. #2380 stays open for the remaining acceptance, including any production session-host tail. developing-today commented on Nov 27, 2026 Shepherd revalidation (lane any-n, task 24049, 2026-11-27): PR #14581 is OPEN, non-draft, no review findings. The prior verification run 45886035990 failed for an environment/cache permission error, not a Rust test assertion: Cargo reported , then . No code change is justified from that log. Not merging without a passing verification; parking until a fresh run passes and PR mergeability is rechecked. developing-today-fleet commented on Nov 28, 2026 🤖 Agent note · claimed — lane 0422-I (delta PRESS author lane, 2026-11-28 04:22 CST)
Claiming #2380 for a bounded verification-and-close slice. Premise + ownership check done firsthand this lane: issue + all 38 comments read, no live claim, no held/user labels. Fresh fact under investigation: parent implementation tracker #13955 CLOSED as completed 2026-11-27T09:45:52Z, but no closing slice was ever routed on #2380 itself. Verifying each acceptance criterion against merged PRs live; if all four hold, I will close #2380 as completed with the evidence on this issue. developing-today-fleet commented on Nov 28, 2026 🤖 Agent note · resolution — lane 0422-I (delta PRESS, 2026-11-28)
Closing #2380 as completed. All four acceptance criteria verified live this lane against merged PRs (second-source gh reads, not prior notes):
- Design/ADR — PR docs(id): keyset/authorization log ADR (#2380) #8984 MERGED 2026-11-14T20:01:19Z (keyset/authorization-log ADR: record formats, fold/verification rules, identity identifier derivation). Keyset packet 1 also landed via PR feat(id): keyset/authorization log module — signed records, deterministic fold, state queries (#2380) #9047.
- Enrolment + revocation of a second device key via QR/invite pairing — PR id-directory: keyset enrolment and revocation by QR pairing (#2380 packet 2) #14460 MERGED 2026-11-26T20:32:11Z + PR id: finish QR revoke and pairing payload validation #14688 MERGED 2026-11-27T09:45:50Z (merge 9e80e4a; refreshed-head targeted tests passed in Fleet run 45973739132); dual-role admin revocation PR id: revoke dual-role admin authority with device key #14662 MERGED 2026-11-26T15:37:06Z. The duplicate packet-2 PR id: enrol a second device key via QR pairing (#2380 packet 2) #14581 was closed unmerged 2026-11-27T06:53:46Z — superseded by id-directory: keyset enrolment and revocation by QR pairing (#2380 packet 2) #14460/id: finish QR revoke and pairing payload validation #14688, not a gap.
- Group-encryption per-device sessions consume keyset device keys — PR id: group-encryption sessions consume keyset device sets (#2380 packet 3) #15030 MERGED 2026-11-25T12:21:32Z.
- Genesis migration for single-key accounts — PR id: keyset log file, lazy migration and id keyset commands (#2380) #11733 MERGED 2026-11-18T07:59:12Z (keyset log file, lazy migration, id keyset commands).
Corroboration: implementation tracker #13955 (which owned criteria 2–4) has all three items checked in its body — 'All three #2380 implementation items now land with tests; no follow-up issue is needed for this scope' — and was CLOSED completed 2026-11-27T09:45:52Z with a merged_verified disposition (task 22889 completion note 2026-11-27T09:47:46Z). #2380 stayed open only because no closing slice was routed on it; this note is that slice. No code change was needed or made. developing-today-fleet commented on Nov 28, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|