refactor: packages, classes and Res under mobi.giza (fork, Phase 3b)

docs/scripts/giza-rename.sh, run over the moves of Phase 3a:

- com.machankura.bennu.{compose,android,desktop} -> mobi.giza.{...}, in
  package lines, imports, fully qualified references, the manifest, mainClass,
  the Android namespace (one value with applicationId again), the m3Audit
  source path, the six docs/scripts tools, and the source links in docs/;
- Res moves from bennu.composeapp.generated.resources to
  mobi.giza.compose.resources, now pinned with packageOfResClass so a later
  rename of the root project leaves the imports alone;
- BennuDatabase, BennuTheme and the other eleven Bennu identifiers are Giza*.

The script's search is now the same pattern as its sed expressions, so on a
renamed tree it finds nothing and changes nothing.

Checked against the Phase 0 baseline: jvmTest 1643 run (1642 + AppDirJvmTest),
0 failed, 2 skipped; compileDebugKotlinAndroid passes; m3-audit prints the
baseline report line for line. iOS is not compiled on this Linux host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-18 10:40:27 +02:00
1 parent 30d5feaf87
commit 34e802ce6f
921 files changed
+7627 -7613

No files matched your search

+15 -15
View File
@@ -57,20 +57,20 @@ the standing notice above the composer, and lines for what the operator says.**
| fact | where | what it means here |
|---|---|---|
| A Marmot inner event is held back from the transcript only if its kind is in `DkgRitualEvents.ALL` or `FrostSigningEvents.ALL` | [ChatMessage.kt:946](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/model/ChatMessage.kt) `isProtocolMessage` | `GroupLightningEvents` is in neither, so every Lightning kind goes on to `applyInnerEvent` |
| `applyInnerEvent` handles the three group-signed kinds (30355, 30356, 30363) and sends everything else to `unsupported()`, a bubble of `event.toJson()` | [ChatMessage.kt:1224, 1530](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/model/ChatMessage.kt) | the ceremony's 30350–30354, the co-signing 30358–30361 and the wallet traffic 30357, 30362, 30364–30366 each leave a raw-JSON bubble, attributed to whoever sent it |
| The same events are *also* acted on, after the line is written | [NostrDao.kt:1585–1648](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/dao/NostrDao.kt) | the managers already work; only the transcript is wrong. A ceremony therefore shows its readable lines *and* a JSON bubble beside each |
| `IcebergRitualManager` writes `TYPE_ICEBERG_*` lines, request lines included, and `ChatTranscript` renders them as `RitualNotice`s that open `IcebergCeremonyScreen` | [IcebergRitualManager.kt:464–506](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/IcebergRitualManager.kt), [ChatTranscript.kt:285](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/widgets/chat/ChatTranscript.kt) | the readable half of the ceremony is built; it is buried, not missing |
| The co-signing traffic is high-volume: a nonce batch per pool window per member, an echo per member per signing request, a share per member per label | [GroupIcebergTransport.kt](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/GroupIcebergTransport.kt), [GroupLightningCoSigner.kt](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/GroupLightningCoSigner.kt) | a room with a running node fills with JSON faster than anyone talks in it, and the room list's preview reads the newest row's `content` (`ChatRoomDao`), so it shows JSON too |
| `ProtocolKindDispatchJvmTest` asserts "no chat line" for `DkgRitualEvents.ALL` and `FrostSigningEvents.ALL` only | [ProtocolKindDispatchJvmTest.kt:120, 169](../composeApp/src/jvmTest/kotlin/com/machankura/bennu/compose/database/model/ProtocolKindDispatchJvmTest.kt) | nothing caught this. The third family needs the same test |
| `MIGRATION_26_27` deleted the `unsupported` rows written for the ChillDKG kinds, found by the kind of the inner event behind them | [RemoveDocumentsMigration.kt](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/migrations/RemoveDocumentsMigration.kt) | the exact precedent for cleaning rooms that already hold the bubbles. The schema is at 32 |
| The standing notice above the composer is fed by `ceremoniesAwaitingYou`, which observes `dkgRepository` only, and its card always calls `onOpenSharedKey` | [ChatMessageListViewModel.kt:112–140, 267–291](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/view/model/ChatMessageListViewModel.kt), [ChatTranscript.kt:203, 613](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/widgets/chat/ChatTranscript.kt) | an Iceberg gate never reaches it. The member has to scroll to the request line, which the JSON is burying |
| `IcebergRitualManager.pendingApproval` and `GroupLightningRepository.pendingApproval` / `observeCeremonies` / `hasUnusedKey` exist | [IcebergRitualManager.kt:402](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/IcebergRitualManager.kt), [GroupLightningRepository.kt](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/repository/GroupLightningRepository.kt) | everything the notice needs is already exposed, the same way the ChillDKG notice reads `pendingApproval` |
| No Lightning manager writes a chat line. A co-signer's refusal and an operator's equivocation are `logger` calls | [GroupLightningCoSigner.kt:193, 232](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/GroupLightningCoSigner.kt) | the wallet doc promises both as transcript lines ("A person only sees a refusal, as a transcript line"); neither is |
| The operator line says "The group chose who runs its Lightning wallet" without saying who | [ChatMessage.kt:1464–1483](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/model/ChatMessage.kt) | the one fact the line exists for is missing. The member-wallet lines already name people with `memberName` |
| A ceremony abandoned by somebody else is recorded as `"Abandoned by ${sender.take(8)}: ${content}"`, and a local fault as the exception's message; the screen shows `failureReason` verbatim | [IcebergRitualManager.kt:280, 365](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/managers/IcebergRitualManager.kt), [IcebergCeremonyScreen.kt:200](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/IcebergCeremonyScreen.kt) | a key prefix and an exception string where ChillDKG shows a name and a sentence |
| The Iceberg gates are an inline card on the ceremony screen; ChillDKG's each have a screen of their own on `DkgApprovalScaffold` | [IcebergCeremonyScreen.kt:210–233](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/IcebergCeremonyScreen.kt), [DkgApprovalScaffold.kt](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/DkgApprovalScaffold.kt) | a difference in shape, not a defect. Decision D5 |
| `RitualNotice`'s chevron says "Open the shared key ceremony" for every family it draws, signing lines and Lightning lines included | [ChatTranscript.kt:972](../composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/widgets/chat/ChatTranscript.kt) | a screen reader is told the wrong destination |
| A Marmot inner event is held back from the transcript only if its kind is in `DkgRitualEvents.ALL` or `FrostSigningEvents.ALL` | [ChatMessage.kt:946](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/model/ChatMessage.kt) `isProtocolMessage` | `GroupLightningEvents` is in neither, so every Lightning kind goes on to `applyInnerEvent` |
| `applyInnerEvent` handles the three group-signed kinds (30355, 30356, 30363) and sends everything else to `unsupported()`, a bubble of `event.toJson()` | [ChatMessage.kt:1224, 1530](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/model/ChatMessage.kt) | the ceremony's 30350–30354, the co-signing 30358–30361 and the wallet traffic 30357, 30362, 30364–30366 each leave a raw-JSON bubble, attributed to whoever sent it |
| The same events are *also* acted on, after the line is written | [NostrDao.kt:1585–1648](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/dao/NostrDao.kt) | the managers already work; only the transcript is wrong. A ceremony therefore shows its readable lines *and* a JSON bubble beside each |
| `IcebergRitualManager` writes `TYPE_ICEBERG_*` lines, request lines included, and `ChatTranscript` renders them as `RitualNotice`s that open `IcebergCeremonyScreen` | [IcebergRitualManager.kt:464–506](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergRitualManager.kt), [ChatTranscript.kt:285](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/widgets/chat/ChatTranscript.kt) | the readable half of the ceremony is built; it is buried, not missing |
| The co-signing traffic is high-volume: a nonce batch per pool window per member, an echo per member per signing request, a share per member per label | [GroupIcebergTransport.kt](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupIcebergTransport.kt), [GroupLightningCoSigner.kt](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt) | a room with a running node fills with JSON faster than anyone talks in it, and the room list's preview reads the newest row's `content` (`ChatRoomDao`), so it shows JSON too |
| `ProtocolKindDispatchJvmTest` asserts "no chat line" for `DkgRitualEvents.ALL` and `FrostSigningEvents.ALL` only | [ProtocolKindDispatchJvmTest.kt:120, 169](../composeApp/src/jvmTest/kotlin/mobi/giza/compose/database/model/ProtocolKindDispatchJvmTest.kt) | nothing caught this. The third family needs the same test |
| `MIGRATION_26_27` deleted the `unsupported` rows written for the ChillDKG kinds, found by the kind of the inner event behind them | [RemoveDocumentsMigration.kt](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/migrations/RemoveDocumentsMigration.kt) | the exact precedent for cleaning rooms that already hold the bubbles. The schema is at 32 |
| The standing notice above the composer is fed by `ceremoniesAwaitingYou`, which observes `dkgRepository` only, and its card always calls `onOpenSharedKey` | [ChatMessageListViewModel.kt:112–140, 267–291](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ChatMessageListViewModel.kt), [ChatTranscript.kt:203, 613](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/widgets/chat/ChatTranscript.kt) | an Iceberg gate never reaches it. The member has to scroll to the request line, which the JSON is burying |
| `IcebergRitualManager.pendingApproval` and `GroupLightningRepository.pendingApproval` / `observeCeremonies` / `hasUnusedKey` exist | [IcebergRitualManager.kt:402](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergRitualManager.kt), [GroupLightningRepository.kt](../composeApp/src/commonMain/kotlin/mobi/giza/compose/repository/GroupLightningRepository.kt) | everything the notice needs is already exposed, the same way the ChillDKG notice reads `pendingApproval` |
| No Lightning manager writes a chat line. A co-signer's refusal and an operator's equivocation are `logger` calls | [GroupLightningCoSigner.kt:193, 232](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt) | the wallet doc promises both as transcript lines ("A person only sees a refusal, as a transcript line"); neither is |
| The operator line says "The group chose who runs its Lightning wallet" without saying who | [ChatMessage.kt:1464–1483](../composeApp/src/commonMain/kotlin/mobi/giza/compose/database/model/ChatMessage.kt) | the one fact the line exists for is missing. The member-wallet lines already name people with `memberName` |
| A ceremony abandoned by somebody else is recorded as `"Abandoned by ${sender.take(8)}: ${content}"`, and a local fault as the exception's message; the screen shows `failureReason` verbatim | [IcebergRitualManager.kt:280, 365](../composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergRitualManager.kt), [IcebergCeremonyScreen.kt:200](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/IcebergCeremonyScreen.kt) | a key prefix and an exception string where ChillDKG shows a name and a sentence |
| The Iceberg gates are an inline card on the ceremony screen; ChillDKG's each have a screen of their own on `DkgApprovalScaffold` | [IcebergCeremonyScreen.kt:210–233](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/IcebergCeremonyScreen.kt), [DkgApprovalScaffold.kt](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/DkgApprovalScaffold.kt) | a difference in shape, not a defect. Decision D5 |
| `RitualNotice`'s chevron says "Open the shared key ceremony" for every family it draws, signing lines and Lightning lines included | [ChatTranscript.kt:972](../composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/widgets/chat/ChatTranscript.kt) | a screen reader is told the wrong destination |
## Decisions
@@ -340,7 +340,7 @@ Phase 4 for the family and on D8. Phase 6 depends on Phase 4 for the family only
| phase | touches | rough size |
|---|---|---|
| 1 | `ChatMessage`, a migration, `BennuDatabase`, one test file | small |
| 1 | `ChatMessage`, a migration, `GizaDatabase`, one test file | small |
| 2 | `ChatMessageListViewModel`, `ChatTranscript`, `ChatRoomMessagingScreen`, strings | medium |
| 3 | `IcebergRitualManager`, `IcebergCeremonyScreen`, `ChatTranscript`, strings | small |
| 4 | `ChatMessage`, `GroupLightningWalletManager`, `GroupLightningReports`, `GroupLightningOperatorManager`, `NostrDao`, `ChatTranscript` | medium |