docs: the record of disappearing messages (disappearing-messages, Phase 8)
Status, the notes under each phase, a CLAUDE.md rule for stamping every NIP-17 payload, and the docs index. The device run is not done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ada9586720
commit
d30cea7875
3 files changed
+34
-2
No files matched your search
@@ -221,6 +221,23 @@ Bennu still has them, and a Bennu member can put one to a group Giza is in, so:
|
||||
`./gradlew check` runs `docs/scripts/wallet-audit.sh --check`, which fails on a retired kind in
|
||||
the app's code, a lightning-kmp import, a file named for a wallet's pieces, or sats in a string.
|
||||
|
||||
## Everything sent in a NIP-17 wrap expires
|
||||
|
||||
[docs/disappearing-messages.md](docs/disappearing-messages.md). What a person writes expires
|
||||
after their policy, a day by default; a protocol round expires after the longer of that and its
|
||||
protocol's floor, and always does. The rumor's `expiration` is part of its id, so a producer of a
|
||||
`GiftWrapPayload` stamps it before hashing:
|
||||
|
||||
```kotlin
|
||||
val tags = DisappearingSettingsStore(database).stamp(chatRoomId, userPublicKey, kind, createdAt, baseTags) // yes
|
||||
val id = EventHasher.hashId(userPublicKey, createdAt, kind, tags, content)
|
||||
```
|
||||
|
||||
A new kind gets a class in `DisappearingMessages.classOf`, with the reason for its floor;
|
||||
`DisappearingMessagesTest` fails on a kind the app sends that fell through to the unclassified
|
||||
week. A session that reads its rounds back from `GiftWrapPayload` answers in `ProtocolRetention`,
|
||||
or the sweeper will delete them once they expire. Seals stay untagged.
|
||||
|
||||
## Checking your work
|
||||
|
||||
```bash
|
||||
|
||||
@@ -30,6 +30,7 @@ the [retired](./retired/) notes now.
|
||||
| [mls-skipped-keys.md](./mls-skipped-keys.md) | why a group event that arrives a moment late was dropped for good, which flows triggered it, the fix as it landed in mls-kmp, and the one word of the diagnosis that was wrong |
|
||||
| [long-running-sync.md](./long-running-sync.md) | the chat subscriptions that stay open instead of pulling once per screen — why the request queue could not simply hold one, and how the group filter follows the room list |
|
||||
| [notifications-and-background-sync.md](./notifications-and-background-sync.md) | notifications, and the background sync they need: a phased plan, built on Android and desktop but for its device run, written but not compiled on iOS, with the background half behind a flag that is off in release. Read state per room, then notifications for as long as the process lives, then a bounded background pass on WorkManager, BGTaskScheduler and the desktop tray. Covers why notifications come from the table rather than the wire, why the cursor is a row id and never a timestamp, why the object graph has to leave the composition first, what each platform can honestly offer, and real-time push (MIP-05) as the owner's decision rather than a phase |
|
||||
| [disappearing-messages.md](./disappearing-messages.md) | every NIP-17 message Giza sends expires, a day by default: a phased plan, built but for its device run and not behind a flag. What a person writes follows their policy, which they can change for everything or one conversation; a ceremony's rounds always expire, after a floor their protocol can live with, and leave the device only once their session is done. Covers why the seal stays untagged though quartz tags it, why the wrap's expiry is pushed later at random, how a payload's wraps and seals are deleted with it and never before it, the room a cascade would have taken with its first message, and what a group signs when it sends |
|
||||
| [dead-code.md](./dead-code.md) | code in the sync and relay stack that nothing calls, why each piece is still there, and which of it is a bug rather than a leftover |
|
||||
| [nsec-sign-in.md](./nsec-sign-in.md) | signing in with an existing nostr key — why an nsec can never have a wallet behind it, the ten call sites that make it small, and the sign-in machine that was already built and unreachable |
|
||||
| [npub-sign-in.md](./npub-sign-in.md) | signing in with only a public key — what a key that cannot sign can still see here, why that is a preview rather than a browser, and the four decisions the word settles |
|
||||
|
||||
@@ -9,8 +9,12 @@ on a clock that is never shorter than the protocol needs (D2). A person can chan
|
||||
for what they write, or turn it off. They can do this for everything they send, or for one
|
||||
conversation.
|
||||
|
||||
Written against `3b0b3c9a` on 2026-11-22. **Plan, not built.** Revised the same day: protocol
|
||||
messages were first left out, and now expire too.
|
||||
Written against `3b0b3c9a` on 2026-11-22. **Built, Phases 0 to 7**, on
|
||||
`claude/disappearing-messages`, one commit per phase. The device run (Phase 8) has not been done.
|
||||
It is **not behind a flag**: a build with this in it stamps a one-day expiry on what everyone
|
||||
writes in NIP-17 from the first message after the upgrade. Revised the same day as it was written:
|
||||
protocol messages were first left out, and now expire too. Each phase says what was built and
|
||||
where it differs from the plan.
|
||||
|
||||
Read [marmot-direct-messages.md](./marmot-direct-messages.md) before changing anything on the
|
||||
send path. It explains why a `GiftWrapPayload` row with a null seal id leaves the device, and
|
||||
@@ -701,6 +705,16 @@ where it differs from the plan, and add a short CLAUDE.md rule: *every NIP-17 pa
|
||||
through `DisappearingMessages.stamp`, and a new kind gets a class in `classOf` with the reason for
|
||||
its floor.*
|
||||
|
||||
**Partly done.** The record is done: the status line, the notes under each phase, the CLAUDE.md
|
||||
rule ("Everything sent in a NIP-17 wrap expires") and a row in the docs index. **The device run
|
||||
has not been done**, so none of its eight steps has been seen working on a phone. Two points from
|
||||
the earlier phases bear on it:
|
||||
|
||||
- The DM relay describes itself as `nak serve`, "a local relay for testing" (Phase 0). Step 4
|
||||
shows what that relay does, which may not be what a production relay does.
|
||||
- Steps 6 and 7 cover what the JVM tests cannot: a person told that their message expired before
|
||||
it could be sent (not built, Phase 6), and ceremonies finishing across a real expiry.
|
||||
|
||||
## What this does not do
|
||||
|
||||
- It does not stop a recipient, another client or a relay from keeping a copy (D7).
|
||||
|
||||
Reference in new issue
Block a user