docs: Phase 0's checks, and what the room leaves behind (confederation-room-removal, Phase 0)

Six of the seven checks: a stranger's seal to an inbox is already pinned,
the bundle sizes are far under MAX_STATEMENT_BYTES, 30398 is free, the live
inbox filter has no since, and the hops are counted. Deleting a room's row
cascades most of its state, but MarmotGroupEvent, MarmotInnerEvent and
MarmotCommitResult name a room without a key onto it and need deleting by
hand. No emulator was reachable, so check 6 is not done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-23 01:24:35 +02:00
1 parent bcb3c4d483
commit 27f8387d51
1 file changed
+6 -2
+6 -2
View File
@@ -20,8 +20,12 @@ room), and [confederation-profile.md](./confederation-profile.md), whose D5 to D
of the room this plan takes apart. Read [group-inbox.md](./group-inbox.md) for the inbox the bridge
writes to.
Written against `9db986c1`, on 2026-11-23. **Not built.** Paths starting `K/` are under
`composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
Written against `9db986c1`, on 2026-11-23. **Being built**, one commit a phase. Paths starting
`K/` are under `composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
| phase | result |
|---|---|
| 0 | done but for check 6. (1) `GroupInboxReadJvmTest` already pins a stranger's seal opening on every admin's device with the stranger as the rumor's author. (2) by arithmetic, checked again in Phase 4's tests: a signed event is about 400 bytes before its content, a per-person nonce message for one seat about 600, a group's bundle of ten selected roles about 6 KB, and a 30390 carrying a 1.1 KB kind:0 and twelve vouchers about 8 KB, against `MAX_STATEMENT_BYTES` (60,000). (3) 30398 appears nowhere in the code, `RetiredKinds` or quartz; 30397 was only ever written in confederation.md. (4) `MarmotRouting`, `MarmotRetainedEpochSecret`, `MarmotSenderRatchet`, `Participant`, `GroupKeyState`, `GovernanceProposal`, `ChatMessage`, `GroupSignedEvent` and `ConfederationSigningAttempt` cascade from `ChatRoom`, and `ChatRoom.mlsGroupState` is a column of the room's row. Four tables name a room without a key onto it and must be deleted from by hand: `MarmotGroupEvent` (keyed onto `NostrEvent`), `MarmotInnerEvent` (onto `MarmotGroupEvent`, and an outbound one onto nothing), `MarmotCommitResult`, and `GiftWrapPayload`, which a Marmot room never holds. (5) `LiveSubscriptionManager.groupInboxFilters` asks with a `limit` and no `since`, so a wrap dated two days back is heard live. (6) **not done**: no emulator was reachable from this session. (7) five rounds, each room → carrier → inbox, and → room again for a group with a seated member who is not an admin: four relay legs at worst beside today's one, plus `k × 20` seconds when the first carrier is away |
---