docs: the group's inbox is built, and what it chose differently (group-inbox, Phase 10)

Marks the plan built behind its flag, with a what-the-plan-said table:
the kinds moved to 30410-30416, one publication table, announcements
that wait for a ceremony still finishing, watchers who learn the key,
wraps routed by key as well as by npub, rotation read off what every
device holds with crossing ceremonies settled the same way everywhere.
The README row says so, and confederation.md's D5 gets a since note:
something can now be encrypted to a group that has an inbox.

Not done: the device run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-22 02:11:47 +02:00
1 parent 8bc7ab3e33
commit 31bcb3a3ff
3 files changed
+41 -3

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ the [retired](./retired/) notes now.
| [dependency-update.md](./dependency-update.md) | moving everything else in the catalogue to its newest stable release, phased and built but for a mac, devices and pushing the submodule branches — why the libraries go first and need no newer Kotlin, why AGP and Kotlin can only move down the whole submodule chain at once, the material3 alpha that was built for an older Compose than the app's, and what has to keep opening on a device afterwards |
| [giza-wallet-removal.md](./giza-wallet-removal.md) | taking every wallet out of Giza, phased and built but for moving off the wallet library (7b). Covers why a Giza member declines a Bennu peer's wallet proposal instead of ignoring or signing it, why the wallet's kinds are retired rather than freed, why a recovery phrase stays as a key backup that has to derive the same npub and id byte for byte, and why the threshold crypto keeps the build tied to the wallet library until the last phase |
| [group-nostr-profile-and-posts.md](./group-nostr-profile-and-posts.md) | bringing back the group's nostr profile and its posts, ported from Curare, phased and built but for its device run: why it is a port and not a revert of `b21f4c4d`, what Giza does today with a peer's kind:0 or kind:1, why relay lists stay out, why the group's lightning address is kept but never offered, why a broadcast never writes a `NostrEvent` row and sends nothing but those two kinds, and declining what no reader would show |
| [group-inbox.md](./group-inbox.md) | a group that can be written to privately: a phased plan, not built, for NIP-4E on a group's npub. A ChillDKG ceremony at threshold 1 leaves every admin holding the same inbox key, the group announces it in a signed 10044, admins read the NIP-17 messages sent to it, and a reply is a batch of seals the quorum signs before the proposer's device wraps and sends them. Covers why the key is its own ceremony and never a signing key, why the proposal hides the reply from members who are not admins, what every signer checks before signing a seal, and the rotation on every admin change with what it cannot undo |
| [group-inbox.md](./group-inbox.md) | a group that can be written to privately: a phased plan, built but for its device run and behind a flag that is off in release, for NIP-4E on a group's npub. A ChillDKG ceremony at threshold 1 leaves every admin holding the same inbox key, the group announces it in a signed 10044, admins read the NIP-17 messages sent to it, and a reply is a batch of seals the quorum signs before the proposer's device wraps and sends them. Covers why the key is its own ceremony and never a signing key, why the proposal hides the reply from members who are not admins, what every signer checks before signing a seal, and the rotation on every admin change with what it cannot undo |
| [giza-app-icon.md](./giza-app-icon.md) | the sphinx icon on iOS, desktop and in the app, phased and built but for the checks on a mac, a phone and Windows — one master SVG and one generator for every raster, why the iOS light icon must carry no alpha channel, why its dark icon is transparent and its tinted one grayscale, the desktop installers and window that show Java's icon today, and why the mark's cutouts need no fill rule |
| [member-admin-promotion.md](./member-admin-promotion.md) | making a member an admin and back, phased and built, promotion with a share and demotion with a refresh under the experimental enrollment, under three rules: every admin holds a share, every commit in a keyed room is a proposal until the group's threshold signature is on it, and a robust group keeps at least three admins. Covers why the commit rides inside the group's signature and the rule inside the group's state, which lets every device refuse an unsigned commit with the libraries as they are, why a member's own leave stays exempt, and why a removed admin comes back as an admin when re-invited today |
| [admin-change-rotation.md](./admin-change-rotation.md) | an admin change carries its rotation with it: a phased plan, built but for its device session, in which the rotation that follows removing an admin, and the one before a first promotion, asks nobody, because the group's signature on the change already decided who is withheld, and in which admin changes and rotations take turns. Covers the five ways the two overlap today, a removed admin who keeps a live share among them, and the one check a device makes to take part unasked |
+6
View File
@@ -258,6 +258,12 @@ everything else, and D7 makes sure they cannot substitute a roster.
### D5. Encrypting the admin list: a seal every signer can recompute
> **Since [group-inbox.md](./group-inbox.md):** something *can* now be encrypted to a group,
> through the inbox key its admins make and its quorum announces (NIP-4E), and from one, by
> sealing with that key and signing the seal as the group. Only for a group that has set up an
> inbox, and the seal below is unchanged. Whether a confederation should use the inbox is its
> own question.
Nobody holds a group's secret key. So an acceptance **cannot** be NIP-44-encrypted *from*
the group in the usual way, because NIP-44's conversation key is an ECDH between the
sender's secret and the recipient's pubkey. For the same reason, nothing can be gift-wrapped
+34 -2
View File
@@ -31,8 +31,40 @@ change already runs, which D14 adds to; and
[marmot-direct-messages.md](./marmot-direct-messages.md), for the last time this app built
a gift wrap by hand.
**Planned, not built.** Written against `5ac4c053`, on 2026-11-22. Paths starting `K/` are
under `composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
**Built** on `claude/nip4e-group-profiles-38d2ac`, against `5ac4c053`, on 2026-11-22, one commit
per phase (`ccc439b2` to the commit that adds this header), plus one test commit in Phase 8.
Behind `ExperimentalFeatures.groupInbox`, on in development builds and off in release.
jvmTest 1,706, all passing; `m3Audit`, `brandAudit` and `walletAudit` at their budgets;
`compileDebugKotlinAndroid` builds. The phases are kept as written, because they are the
reasoning. Where the build chose differently:
| what the plan said | what it turned out to be |
|---|---|
| D3: candidate kinds 30390–30396 | **30410–30416**. quartz 2.20.1 has 30392–30395 (experimental trusted lists); Phase 0 found the collision |
| Phase 3: a `GroupInboxOutbound` table for wraps | `GroupInboxPublication`, one table for everything owed to relays: the 10044 and 10050 (D7) and the reply wraps (D10). Phase 5 folded `InboxSigning` (a reply's manifest and a refusal's reason, kept past arrival) and `InboxKeyCeremony.announceRelays` into schema 45, which has not shipped |
| Phase 4: `InboxKeyRitualScreen` | the settings screen's ceremony card (Phase 7): who it waits on, and Abandon |
| Phase 4: transcript lines that say what each step does | three lines a ceremony (started, made, ended). Nobody is asked anything in it, so a ladder per step names nobody whose door to knock on; the ceremony card names them when it stalls |
| (not in the plan) | **an announcement that arrives before this device has finished the same ceremony waits** instead of being declined as a key nobody made. The coordinator asks for the signature the moment its own copy is made, which is routinely before anyone else's; `FrostSigningManager.resumeInboxAnnouncements` looks again when the ceremony finishes here |
| (not in the plan) | **a member who only watches the ceremony learns the key**, by running the coordinator's two aggregations over the public messages, which need no secret. That is what lets a share-holder who is not an admin check a 10044 before signing it |
| Phase 6: catch-up from the newest wrap less two days | no `since`, as the personal inbox has none, and no negentropy pass: the live subscription's `limit` covers reconnection. A device away longer than that window misses mail; the same is true of the personal inbox today |
| Phase 6: the subscription asks for `#p` = the group's npub | and for `#p` = each inbox key this device holds, routing a wrap by its key when it is not tagged with the group. An app that knows only the announcement, and builds its wrap with quartz's `GiftWrapEvent.create`, tags the key it encrypts to |
| Phase 6: `indexNostrEvent` skips a wrap tagged with a group | not needed: the personal subscription asks only for `#p` = the identity, so a group's mail never reaches `storeNostrEvent` |
| Phase 6: the wipe | in `MarmotInboundManager.processGroupMembershipChanges`, and it deletes the inbox's messages and ledger too, with a transcript line said once |
| D10: any admin can **Send again** | offered on the proposer's device, the only one that knows a relay never took the wrap. `InboxReplies.sendAgain` works on any device holding the session's manifest; nothing else offers it yet |
| Phase 8: `FrostSigningScreen` shows the decrypted reply | through the notes the confederation already used, renamed `proposalNotes` (`FrostSigningRepository`, `FrostSigningUIState.notes`). `ProposedEvent` says only "A private reply from the group's inbox", since it has no key to read with |
| Phase 9: `GovernanceFollowThrough` owes an inbox rotation after each change | a rule every device reads off what it holds, `InboxRotation.isOwed`: the newest key was made over admins the room no longer has. The admin whose key sorts first starts it. Run from the governance follow-through and the sweep |
| (not in the plan) | **crossing ceremonies**: two admins who start one at once end in the one whose session id sorts first, on every device, the other ended out loud. A proposal for a generation a device already has is dropped |
| Phase 9: a test that no inbox ceremony starts during a share rotation | the refusal reads `RotationHold` as planned, but the inbox harness runs no share refresh, so it is not tested |
| Phase 0, check 4 in `SignedGroupKeyStateTest` | moved: Phase 8 made a seal nobody can read a decline, so that test now pins the decline, and `InboxReplyJvmTest` checks the premise end to end |
| (not in the plan) | the worktree's build needed `lightning-kmp-app` and its nested submodules initialised from the main checkout's copies, with their `local.properties` and the prebuilt native secp256k1 |
**Not done:** Phase 10's device run. Nothing here has run on a device or a desktop client: no
inbox has been set up across real devices, no stranger's NIP-17 client has written to one, and no
reply has been opened by a client that follows nostr-protocol/nips#2361 -- or by one that does
not, which is the case D13 warns about and nobody has watched happen.
Written against `5ac4c053`, on 2026-11-22. Paths starting `K/` are under
`composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
---