Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Design: identity, directory, groups and delegation

This chapter covers 56 design records, the largest design theme in the book after the knowledge layer. It describes identity, the directory, groups and delegation as designed in the programme’s design archive. The final section states what runs today.

The thread runs through the core epic #2056, Phase 2 (membership, auth frontier and delegation) and Phase 4 (groups, encryption and history) of the phase records, and a set of named trackers: #2380 (keyset authorization log), #2382 (guardian recovery), #3231/#3232 (the receipt contract and its audit), #8750 (block-list lookups), #9141 (peer trust classes) and the federation cluster #9129–#9148.

Accounts, groups, contacts and delegation

The founding record is 2026-10-09T12-00-00Z_feature_directory_accounts_groups (2026-10-09): accounts, groups, contacts and delegation as one feature design. The directory is the programme’s answer to a concrete question: how does a node know who someone is, which groups they belong to, and what they may do, without a central account server.

The largest single record in the archive belongs to this chapter: 2026-10-11T03-44-33Z_design_groups_events_delegation (2026-10-11), a 407-file bundle covering events, groups, delegation, removal and history, together with a connectivity record and relay, range and BeeKEM spike code, logs and certificates. Group membership in this design is event-sourced: membership changes are signed events, removal is an event with a history, and delegation is a signed narrowing of authority. The removal semantics are made explicit in 2026-11-02T04-44-00Z_design_group_remove_modes (2026-11-02), “Explicit group removal modes”: removal has named modes instead of one ambiguous remove.

2026-10-10T07-00-00Z_feature_petnames_invites (2026-10-10) designs petnames and invite links: local names for people, assigned by the namer, plus invites as the entry path into groups and worlds. Petname safety gets its own record: 2026-11-02T12-47-00Z_design_petname_unicode_confusable_skeleton (2026-11-02) designs petname anti-mimicry using the Unicode UTS #39 confusable skeleton, so a look-alike name is detected by its skeleton, not by eye. Invites get a second, deeper design in 2026-11-14T18-50-00Z_design_id_invite_delegation (2026-11-14): generic invite delegation — encoding, depth, leakage, and group live-set semantics. Invite depth is a designed quantity: an invite can be re-delegated only within its stated depth, and the record treats information leakage through invites as a design constraint.

Worlds consume the directory directly. 2026-10-17T08-00-00Z_feature_world_roles_directory (2026-10-17) designs worlds as places, first slice: role-scoped invites and a machine-readable world list. 2026-11-01_design_id835.md (2026-11-01) designs builder and moderator authority through world-session frames (#835, roles-v2 and moderator wiring under Phase 12). 2026-10-18T04-00-00Z_fix_world_chat_visibility (2026-10-18) records the visibility rule as a fix: world chat is visible only to participants who may chat or read history. 2026-10-16T17-00-00Z_feature_chat_history (2026-10-16) designs server-observed chat history and grantable platform modules.

Signed artifacts, home servers and trust

2026-10-10T04-58-36Z_design_signed_artifacts (2026-10-10) designs signed artifacts, home servers, and cross-world access: a person’s home server holds and serves their signed artifacts, and other worlds accept them on the signature. The trust model that governs acceptance is investigated in 2026-10-30T19-11-04Z_investigation_trust_visibility_model (2026-10-30): accept-all ingest with writer-set views — ingest accepts, and visibility is a projection over writer sets. The writer-set design itself is in Design: sync, replication and FileOps.

Peer-level trust is designed in 2026-11-17T05-15-00Z_design_id9141_peer_trust_classes.md (2026-11-17): peer trust classes plus a signed-data acceptance rule (#9141, in the federation cluster #9129–#9148). The receipt contract binds this chapter to the foundation layer: 2026-11-01_design_id3231.md (2026-11-01) designs one receipt contract for pkgs/id artifacts (#3231), 2026-11-04_audit_id3232_receipt_validation.md (2026-11-04) audits receipt validation (#3232), and 2026-11-17_design_id_sign_time_refusal.md (2026-11-17) designs the sign-time refusal contract: sign only what receipt would accept. Signing mechanics have their own record: 2026-11-08T15-20-00Z_design_sign-request-nonce-domain.md (2026-11-08), the sign_request nonce domain and the fallible signing contract. The legacy boundary is drawn by 2026-11-05T15-10-00Z_architecture_legacy_artifact_receive_cutoff (2026-11-05), the legacy artifact receive cutoff, and blob access by 2026-11-13T09-00-00Z_design_blob_gate_authorization_wiring.md (2026-11-13), blob gate authorization wiring in id serve (#173).

Module trust is an identity question in this design: 2026-11-02T00-31-45Z_design_module_trust (2026-11-02) designs the admin trust list and the install-time signature check. Its runtime side is cross-linked from Design: worlds and the guest runtime.

Key custody and recovery

The design offers key custody as a set of named variants, each with its own record:

  • Variant (a), service-held keys: 2026-11-13_design_id5886.md (2026-11-13).
  • Variant (b), user-held keys: 2026-11-10_design_id5887.md (2026-11-10).
  • Variant (c), recovery codes: 2026-11-08T10-03-00Z_design_id_recovery_codes (2026-11-08), ID recovery codes as a decision record.

Around the variants sit the mechanisms. 2026-11-04T06-07-11Z_feature_local_key_envelope (2026-11-04) designs the local passphrase-wrapped identity key envelope. 2026-11-12T22-55-00Z_design_seed_phrase_recovery (2026-11-12) designs seed-phrase export and restore for the identity key. 2026-11-16T11-00-00Z_design_guardian_recovery (2026-11-16) designs guardian social recovery: record formats, successor-key authority and threshold signing (#2382). 2026-11-12T19-10-07Z_design_keyset_authorization_log (2026-11-12) is the architecture decision record for the keyset authorization log (#2380): the set of authorized keys is itself a signed log. 2026-11-01_design_id2804.md (2026-11-01) designs issuer key rotation and compromise recovery. 2026-11-10_design_id5881_stepup_escrow.md (2026-11-10) designs 2FA step-up gates and org-escrowed credential proxying. 2026-11-16_decision_id5819_owner_override_mechanics.md (2026-11-16) decides owner override mechanics and the encryption boundary (#5819). Encrypted sharing is decided in 2026-11-09T05-06-00Z_decision_id5801_encrypted_shares_key_distribution.md (2026-11-09): share form, key holders, rotation and recipient proofs.

The ceremony that ties delegation to identity is 2026-11-21T04-30-00Z_design_id_delegation_cross_signing_ceremony (2026-11-21): delegation, transfer, and the cross-signed identity ceremony. Delegation in this design is a witnessed, cross-signed act, not a silent key copy.

Grants, permission UX and provider-facing identity

The provider system needs identity at its boundary, and four records surveyed into this chapter carry that half of the #5686 model: 2026-11-09T00-16-56Z_decision_id5900_provider_capability_grants.md (2026-11-09, grant form, sensitivity classes, approval flows, #5900), 2026-11-09_decision_id5905_provider_security_model.md (2026-11-09, the provider security model, #5905), 2026-11-11T00-18-00Z_decision_id5898_provider_declaration_model.md (2026-11-11, the provider declaration model, #5898) and 2026-11-08T09-06-08Z_design_id_permission_ux (2026-11-08, permission UX for worlds: pre-connect disclosure, grant modes, and memory). The capability side of the same records is in Design: capabilities and providers. 2026-11-12T20-58-00Z_research_id_permission_precedents (2026-11-12) records the permission-prompt precedents research: how platforms present, remember and revoke capability grants. 2026-11-23T05-02-30Z_design_id_capability_change_notices (2026-11-23) designs capability-change notices on reconnect: presentation, choices, re-baselining and invite pinning.

2026-11-08T19-52-00Z_feature_groups_page (2026-11-08) designs the local groups and grants page at /groups, the operator’s view of this chapter’s objects. Licensing policy lands here as an account rule: 2026-11-11_design_id5984_licensing_policy.md (2026-11-11) designs the server terms-of-service uploader grant, account-creation defaults and admin license policies; the classifier side is in Design: capabilities and providers.

Governance, moderation and abuse boundaries

  • 2026-11-08T13-45-00Z_design_id_world_governance (2026-11-08) designs world governance: moderation as a library, per-world parameterization, pre-approval (#5973’s thread under #5955).
  • 2026-11-08T12-50-00Z_design_id6004_lambdamoo_governance_arc (2026-11-08) records the reserved-authority lesson from LambdaMOO’s governance arc: what ID must keep off the ballot.
  • 2026-11-09_design_id6005_moderation_pack_format.md (2026-11-09) designs the moderation pack format: data-only packs with a static policy core, feed subscriptions and per-world parameters.
  • 2026-11-10T21-05-00Z_design_id6007_moderation_presets (2026-11-10) designs moderation preset tiers: named presets that compile to concrete rules.
  • 2026-11-08_design_id5861.md (2026-11-08) designs board moderation hooks, and 2026-11-08_design_id5871.md (2026-11-08) designs talk-page semantics: lifecycle, permissions and binding authority.
  • 2026-11-05T13-36-21Z_design_threat_list_feed_protocol (2026-11-05) designs the shared threat-list feed protocol: versioned, signed, subscribable feeds with local override lists (#6006).
  • 2026-11-11T19-15-00Z_design_block_lookup (2026-11-11) designs block-list lookups that can say “the lookup failed” (#8750): a failed lookup is a distinct outcome from a clear lookup.

Records at the chapter’s edges

The survey homes several records here whose primary surface sits in a neighbouring chapter; the book keeps the survey’s mapping and cross-links them. 2026-10-29T10-45-00Z_investigation_ephemeral_live_data_retention (2026-10-29) investigates ephemeral live data against the chained event graph: retention and intermittent signing. 2026-10-30T19-35-00Z_investigation_boards_model (2026-10-30) sketches the boards model on ID identity. 2026-10-31T18-03-36Z_investigation_native_tier_tradeoffs (2026-10-31) investigates the native tier versus Wasm: fuel, trust, and when each is right. 2026-11-01T17-52-12Z_feature_stable_note_revisions (2026-11-01) designs stable note identity and the revision graph. 2026-11-08T08-19-40Z_design_id_knowledge_sharing_permissions (2026-11-08) designs knowledge-layer sharing and permissions. Two input records sit here by survey mapping: 2026-10-14T20-10-00Z_feature_world_keyboard_parity (2026-10-14, browser and SSH keyboard parity for world programs) and 2026-11-01_design_id787.md (2026-11-01, the kitty keyboard protocol on the raw input path, #787), plus 2026-11-01T16-06-00Z_research_in_session_command_toggle (2026-11-01, the in-session command toggle). Their design home in the book’s argument is Design: shells and client surfaces.

What exists today

Grounded in the code surveys, not the design records:

  • The directory ships as an append-only journal: directory.jsonl, one JSON entry per line, replayed through the same apply path as live changes, with 17 entry kinds covering account signup, keying, verification, key add and remove, email confirm and remove, group create, update, visibility and delete, member set, tier set, and the friend request, accept, remove and removal-noted kinds. Levels are access, read, write, manage, moderator and admin; tiers are anonymous, registered and verified. Account secrets enter the journal only as SHA-256 digests.
  • Signed artifacts ship in a legacy profile with a pinned format: signed bytes are compact JSON under the profile name id-artifact-serde-json/v1, hashed with SHA-256 and signed with Ed25519, in four kinds (friend_remove, home_declared, document, tag). Test vectors for the profile ship in pkgs/id/test-vectors/.
  • Keysets ship as JSONL files (.id-keyset.jsonl and .id-keyset-client.jsonl), invites carry the magic string IDINV at version 2, and the key envelope carries the magic string IDKEY.
  • Server provisioning ships in the server config: users and groups can be declared in TOML and are provisioned at startup, idempotently, with group member roles pull, read, write, manage and admin.
  • Still design only, with no shipped counterpart verified in the surveys: guardian social recovery (#2382) as a running flow, the cross-signed delegation ceremony of 2026-11-21, and moderation packs as a distributed format. The surveys verify the journal, artifact and keyset machinery; the recovery and governance layers on top of it remain design. Individual record-to-code correspondence beyond the items above is unverified in the survey material.