docs: the group's nostr profile and posts are built, and the notes they touched say so (group-nostr-profile, Phase 9)

The plan gets its Built header and a table of where the build chose
differently, among them the broadcast screen's refusal of every kind but
0 and 1, which the plan did not have. Four notes that said these features
were gone now say they came back. The device run is not done, and the
header says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-21 20:49:43 +02:00
1 parent 34c8faa497
commit d039daf6de
6 files changed
+41 -10

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ the [retired](./retired/) notes now.
| [quartz-mls-marmot-update.md](./quartz-mls-marmot-update.md) | moving quartz, mls-kmp, marmot-kmp and crypto-kmp to their newest releases, phased and built but for a mac and mls-kmp 1.4.0's release — why almost nothing the app calls has changed while the way the build reaches them has (Nostr + Blossom through Magpie, none of it on Maven Central), the go/no-go that is the owner's, marmot's own pins first and the newest second, and the lock that has to be written on a mac before it can be frozen |
| [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 not yet built: 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 declining what no reader would show |
| [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 |
| [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 |
+4 -2
View File
@@ -25,7 +25,7 @@ build chose differently it did so these times:
| only `DkgRitualRoute.dkgSessionId` becomes required | the three approval routes' too, and `DkgRitualUIState.Loaded.session` is non-null. Every approval was already named by the ceremony screen that opened it |
| the subgroup picker's quorum stepper and the shared-key one are one component | two. The picker's asks a different question ("how many admins have to approve a change"), so the shared-key one is `SharedKeyQuorumStepper`, private to the creation screen |
| `requestIfEmpty` keeps its "holds work" check | it had to change: the check read the dialect and artifact tables. A room now holds work if it holds a `GroupSignedEvent` of a chroniclable kind, and with none chroniclable it never asks |
| the chronicle's tests re-fixture | three of four did, with `TEST_KINDS` (a relay list, a profile, a post -- group-signed kinds whose arrival writes no row of its own, so the `GroupSignedEvent` rows are the observable). `ChronicleRoundTripTest` was entirely the rebuild through document rows and is deleted. The positive invite push could not take a test set -- `deliveryWelcome` calls `sendTo` with the app's kinds -- and became the "sends nothing" case |
| the chronicle's tests re-fixture | three of four did, with `TEST_KINDS` (a relay list, a profile, a post -- group-signed kinds whose arrival writes no `GroupSignedEvent` of its own, so those rows are the observable; since [group-nostr-profile-and-posts.md](./group-nostr-profile-and-posts.md) a room-signed profile or post writes a transcript line, which changes nothing here). `ChronicleRoundTripTest` was entirely the rebuild through document rows and is deleted. The positive invite push could not take a test set -- `deliveryWelcome` calls `sendTo` with the app's kinds -- and became the "sends nothing" case |
| `SignedGroupKeyStateTest` and `GroupSignedEventDaoJvmTest` re-fixture in Phase 8 | Phase 7: they failed at runtime the moment document arms stopped writing rows. They sign posts now, and "the row a signed event becomes points back at it" is deleted -- no kept kind writes a row |
| a migration test with tables copied from `26.json` | built from the exported `26.json` at run time and compared with `27.json`, so it cannot drift from what Room expects |
| `CLAUDE.md`'s literal count goes to 20 | 19, after Phase 5 took another |
@@ -441,7 +441,9 @@ with a grep.
deletes any rows of them.
- **`text/ProposedEvent.kt`**: the seven nip30303 arms of `summaryOf`. The rest
(key state, subgroup certificate, metadata, text note, relay lists, wallet)
stays.
stays. *(Later: metadata, text note and relay lists went with the group's nostr
profile in `b21f4c4d`; metadata and text note came back with
[group-nostr-profile-and-posts.md](./group-nostr-profile-and-posts.md).)*
- **`MarmotInnerEventDao.deleteByPayloadEventId`**: deleted; it has no callers.
The `payloadEventId` column goes in Phase 8.
- **`strings.xml`**: the 61 keys only the deleted files use (59, plus
+31 -4
View File
@@ -17,10 +17,37 @@ read [member-chronicle.md](./member-chronicle.md), for why a group-signed event
`NostrEvent`, and [giza-wallet-removal.md](./giza-wallet-removal.md), for the fail-closed
rule that D5 extends.
**Not built.** Written against `d0437d6c`, on 2026-11-21. The reference implementation is
Curare at `dc1895ee` (`databending/curated-kmp`, package `to.curare.compose`). Below,
paths starting `K/` are under `composeApp/src/commonMain/kotlin/mobi/giza/compose/`, and
paths starting `C/` are the same tree in Curare under `to/curare/compose/`.
**Built** on `claude/nostr-group-proposal-plan-95ace6`, against `d0437d6c`, on 2026-11-21,
one commit per phase (`bdb0b3f0` to the commit that adds this header), plus one fix in
Phase 7. jvmTest 1,447 → 1,511, all passing. `m3Audit`, `brandAudit` and `walletAudit`
are at their budgets, and `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 |
|---|---|
| Phase 1: pin `ProposedEvent` saying "Event of kind 0/1" | already pinned (`a profile, a post and a relay list are no longer described`). Phase 2 split it into three: a profile, a post, and a relay list still said by its number |
| Phase 1: the premise test in `FrostSigningRoundTest` or `ShareRefreshRitualJvmTest` | in `SignedGroupKeyStateTest`, whose harness already signs a post in a keyed room: `a post the group signs verifies as the room's own statement`. It passed, so the plan went on |
| Phase 2: rework the profile template tests for quartz 2.20.1's tag mirroring | not needed: they read the content, which is unchanged. That the tags agree with the content is **not** asserted |
| D4: a Marmot room, a share, not disbanded, and `LocalCanSign` | also **not left**: a member who left cannot send the proposal into the group. The room's half is `GroupStatementCapability.roomIsOpen`, shared by the five view models that gate on it |
| Phase 4: decline in `acceptProposal`, the `approve` backstop and `publishDecline` | as planned. The redelivery path (`declinesAsWallet` on a repeated proposal) was not extended: a session filed before Phase 4 is declined when its owner approves |
| Phase 4: tests in the signing harness | `GroupStatementDeclineJvmTest`, on `WalletDeclineJvmTest`'s harness, where a real proposal crosses the inbound path |
| Phase 5: edit `ChatRoomDetailWithoutWalletsJvmTest` | the absence test moved to a new `GroupSignedWorkRowsJvmTest` (Curare's name), which checks the rows are there, open their screens, and stay out of a NIP-17 room |
| D8: the empty state says the device holds nothing | a new string, `this_device_holds_no_profile_for_this_group` (and `…_no_posts_…`), in place of Curare's "hasn't said anything" |
| Phase 6: the composer says a post cannot be taken back | added to Curare's `the_group_signs_a_post_so_it_takes_a_quorum`. The composer's blank check is `GroupStatementRefusal.isBlankPost`, the same predicate the signer declines on |
| Phase 7: `defaultRelaysFor` is the publish set | as planned; the screen's hint string says the app's relays are filled in, not the group's. The screen test empties the seeded list through the UI, since there is no Blocked list to seed nothing with |
| (not in the plan) | **the broadcast screen refuses every kind but 0 and 1.** The id is a navigation argument, and the wallet removal kept every `GroupSignedEvent`, Bennu-era wallet statements included, whose xpub on a relay is the group's history on chain. Curare refused the wallet's kind; this refuses all others. `BroadcastLeavesNoRowJvmTest` pins it beside D7 |
| Phase 8: a "Propose event" `TextButton` when `canProposeAsGroup` | and when the identity can sign. `LocalCanSign` is read at the top of `ChatRoomDetailScreen`, since a `LazyColumn`'s DSL is not composable |
| (not in the plan) | the worktree's build needed `lightning-kmp-app` and its nested submodules initialised from the main checkout's copies, and their `local.properties` copied in |
**Not done:** Phase 9's device run. Nothing here has run on a device or a desktop
client. No profile has been proposed, signed and broadcast across real devices, no
public client has shown the group's name, and nothing has been tried against a Curare
peer.
The reference implementation is Curare at `dc1895ee` (`databending/curated-kmp`, package
`to.curare.compose`). Below, paths starting `K/` are under
`composeApp/src/commonMain/kotlin/mobi/giza/compose/`, and paths starting `C/` are the same
tree in Curare under `to/curare/compose/`.
---
+1 -1
View File
@@ -48,7 +48,7 @@ of the code:
| Phase 7: leaving is `leaveGroup` behind a `LEAVING` gate; an admin commits the proposal "on receipt, or behind a confirmation" | on receipt (`commitStagedProposals` from `ProposalStaged`), and an admin is refused before anything is raised or dropped: the library refuses an admin's SelfRemove, so the app says "hand over admin first", or, for the only admin, "make another member an admin, or disband the group" |
| Phase 7: captions from `MarmotGroupSnapshot` against a `marmotSnapshot` column | from the diff `processGroupMembershipChanges` already made against the participants table, on every device that applies a commit, and without a `TYPE_MEMBER_REMOVED`: the tree does not say whether a member left or was removed, so `TYPE_MEMBER_LEFT` covers both. No snapshot column |
| Phase 7: rename is `stageAppDataUpdate` and "the button is small" | not built. There is no rename for either profile today; the subject on the detail screen is display only |
| Phase 7: a received 1210 or 1009 gets no bubble, "and neither does any other unknown kind" | those two only, in a follow-up. The bubble stays for the rest: the kind:1 arm reaches it on purpose, and it is the only trace an unrecognised payload leaves |
| Phase 7: a received 1210 or 1009 gets no bubble, "and neither does any other unknown kind" | those two only, in a follow-up. The bubble stays for the rest: the kind:1 arm reaches it on purpose, and it is the only trace an unrecognised payload leaves. (A kind:1 the room's own key signed is now a line instead: [group-nostr-profile-and-posts.md](./group-nostr-profile-and-posts.md)) |
| Phase 8: four scenarios in one test | spread over four: `CurrentProfileInteropJvmTest` (the join, both directions, envelope included), `GroupLifecycleJvmTest.roomWithMember` (the app's room, the stand-in joining, routing id not room id), `ConvergenceForkJvmTest` (the fork) and `PublishBeforeApplyJvmTest` (the restart). The wire-vector test is `MarmotAppPayloadTest` and `MarmotPayloadBoundsTest` in `commonTest` |
| Phase 8: the fork -- "whichever branch won, they agree" | proven for the case the app depends on and pinned for the case it cannot yet have. Two *other* members fork; the app and a second observer are handed both commits in opposite orders and settle on the same state byte for byte. A fork *this device authored* does not: see below |
+1 -1
View File
@@ -96,7 +96,7 @@ Almost all of it. The preview is a new screen over pieces that exist.
| a kind 0 arriving overwrites the placeholder row | [NostrDao.kt:424](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/dao/NostrDao.kt) | the observed flow emits it |
| the stack shape for "a profile becomes a chat": push the room, pop the profile | [GizaNavHost.kt:1706](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/navigation/GizaNavHost.kt), `NostrEventDetailRoute`'s DM exit | copied |
| `ProfileAvatar`, `humanReadableNameOrPubkey()`, `staticIdentifier()`, `hexToNpubHrp()` | `Profile.kt`, `Credentials.kt` | built |
| a constant app bar with the state transition inside it | `GroupNostrProfileScreen`, since removed with the group's nostr profile | the layout to copy |
| a constant app bar with the state transition inside it | `GroupNostrProfileScreen`, removed with the group's nostr profile and since brought back ([group-nostr-profile-and-posts.md](./group-nostr-profile-and-posts.md)) | the layout to copy |
| `LoadingDataIndicator(text = …)`, `EmptyState(message, icon, action)`, `ErrorState(onRetry)`, `NavigateBackButton`, `LocalCanSign` | `widgets/` | built |
| strings: `profile`, `try_again`, `start_chat`, `send_message` | `strings.xml` | present; the new ones are listed per phase |
+3 -1
View File
@@ -455,7 +455,9 @@ address out of it.
chain, to anyone. `BroadcastGroupSignedEventScreen` refused this kind, and a test
said it refused it. That screen has since been removed with the group's nostr
profile, relay lists and posts, and nothing in the app now sends a group-signed
event to a relay.
event to a relay. *(Later: Giza brought the screen back with the group's profile and
posts, and it sends those two kinds and refuses every other, this one included --
[group-nostr-profile-and-posts.md](../group-nostr-profile-and-posts.md), D7.)*
`GroupWallet` is a read model over `GroupSignedEvent`, in the shape the
since-removed `GroupRelayList.of`/`newestAmong` had. There is no table: a wallet is a signed event