sendChatMessage and the DKG, signing, confederation-ceremony and Welcome
producers stamp the rumor's expiry before hashing its id. The wrap asks
relays to drop it by quartz's formula; the seal stays untagged; a
payload that expired before it could be sent is not sealed; the rumor's
plaintext is no longer logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A conversation's override and one-time notice on ChatRoom, an expiry on
ChatMessage, GiftWrapPayload (read off its own tags) and GiftWrapMessage,
a wrap's link to its payload, and the DisappearingSetting and
ExpiredGiftWrap tables. Nullable columns and new tables only, so Room
generates the migration; a missing setting reads as the one-day default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Written kinds follow the person's policy, Off included; every protocol
kind expires after the longer of the policy and its protocol's floor;
a rumor that already carries an expiry keeps it. The wrap's expiry is
quartz's formula. A test fails on any kind the app sends that nobody
classified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quartz tags the seal, but Giza's own refusals and quartz's mergeWith mean
Giza's seals stay empty; the wrap uses quartz's expiry formula. The DM
relay supports NIP-40, Bennu reads rumor tags by name, and confederation
statements travel through the inbox rather than the payload table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A confederation with no coordinator: its proposal and answers travel between
the groups' inboxes, and its key ceremony is joined by every admin with
nobody opening it (docs/confederation-without-coordinator.md).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notifications took schema 48 first, so the confederation's statements
between inboxes are schema 49, AutoMigration(48, 49).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phases 0 to 8 built, with what each turned out to be; since-notes in
confederation.md where its coordinator, seal and opening no longer describe
the app. The device run has not been done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The roster's people in order: the first makes the room at once, the k-th
after k hours with no room here. A confederation records whose MLS group it
holds as its room, and a welcome from someone earlier in the order replaces
it, so two creators end in one room on every device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The form asks for each group's profile, inbox key and inbox relays, shows a
group with no inbox as out of reach, waits on this group's own inbox, and
stops at twelve groups. A device that hears a proposal asks about every named
group's inbox, and a failed ceremony offers Try again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A proposal and every answer are rumors a group seals to every group's
announced inbox key, its quorum signing the seals; every admin of every group
files them, computes the state and reads every admin list. The key ceremony
is joined by each admin from the statements their device holds: its room is
derived from its people, its seed from everyone's contribution, and every
device computes the broadcast. Schema 48 drops version 1's public statements.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group's direct messages took schema 47 first, so notifications' read
marks and ledger move to 47 -> 48. GizaRuntime builds the new group DM
repository and hands it to the sync engine. TYPE_GROUP_DM_FORGOTTEN is
placed with the classifier's silent types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The proposal, acceptance, rejection and withdrawal as rumors between groups,
a proposal carrying its proposer's own admin list, and the attestation,
ceremony id and session seed every device derives. Beside version 1 until the
switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An opening from anyone but the coordinator is refused, and every device waits
on the coordinator's broadcast. Phase 7 flips both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The broadcast is the same on every device, the ceremony's room id is the set
of its people, and one group's inbox seal opens in another's. A statement's
size grows with the square of the groups: 12 fit, 16 do not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A plan to send the confederation's proposal and answers between the groups'
NIP-4E inboxes, so every admin of every group reads every admin list, and to
compute the key ceremony's coordinator steps on every device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Message notifications carry Mark as read and Reply on Android (a broadcast
receiver, RemoteInput) and iOS (a category with a text input action). A
reply runs as the default profile through BackgroundSyncPass.withProfile,
under the pass's own lock, and is refused rather than sent as a profile
other than the one the notification was for. No Approve action, on purpose.
The iOS half is not compiled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A refresh task runs the quick pass with 25 seconds and a processing task
the full one with eight minutes, both registered by an app delegate that
also forwards notification taps. Written on linux: none of the Swift or
iosMain code has been compiled; it needs a mac before it can be trusted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A specialUse foreground service keeps AppLifecycle.holdConnections true and
activates the default profile when no screen has, so the app's own live
subscriptions deliver within seconds while closed. Off by default, a switch
on the notification settings, started only from the foreground.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A WorkManager worker runs the full pass with a nine-minute deadline,
scheduled from the application behind ExperimentalFeatures.backgroundSync.
The settings screen says what each platform does while closed, and when it
last did it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BackgroundSyncPass activates the default signing profile when no screen
has, holds the connections so the live subscriptions and the foreground
catch-up run as they would on launch, waits for the sync queue to drain
and the outbound queue to stop moving or for its deadline, posts what
arrived, lets go and records the outcome on the ledger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AppLifecycle answers two questions now: whether somebody is looking, and
whether the live subscriptions should be open. Compose Desktop reports a
minimised window as stopped, which closed every subscription; the desktop
holds them for as long as it runs. On iOS a background task holds them for
25 seconds after leaving the screen so queued work can still go out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group sends and receives NIP-17 at its own npub by threshold ECDH
(docs/group-threshold-ecdh.md, Phases 0 to 11), beside the group inbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group inbox (NIP-4E) and confederation Part C landed on giza meanwhile.
Where threshold ECDH meets the inbox:
- schema: the inbox has 45 and 46, so the group's direct messages are v47,
AutoMigration(46, 47);
- the group's 10050 is one event: InboxRefusal declines a bad relay list and
InboxAnnouncements publishes it; GroupDmRelayRefusal and the second
publisher are gone, and the inbox's line and label are the ones shown;
- kind 13 batches split on the seal's n tag, by InboxSeal's own reading:
inbox replies to InboxRefusal and InboxReplies, every other seal to
GroupDmRefusal and GroupDmSender;
- a wrap to the group tries the inbox keys first, and opens a round only for
what they cannot; the inbox's unopened count leaves out what was opened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One dispatcher in common code reads lines above the identity's cursor,
decides, groups per room and category and posts through a platform
notifier: Android channels and MessagingStyle, UNUserNotificationCenter on
iOS (not compiled here), and a desktop sink the tray fills in Phase 12.
A tapped notification opens its room.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The identity's notification switches are folded into NotificationLedger at
schema 47, which has not shipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plan marked built through Phase 10, with what it said against what was
built, and its known gaps; the README row and a since note on confederation.md
D5. The device run has not been done, and the flag stays off in a release
until it has.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 5's round tests put ledger rows on devices that are not admins; since
Phase 10 those devices forget them when partials reach them, so the tests read
the wrap as absent or unopened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A device that sees its member removed as an admin forgets the room's kept
conversation keys, its opened messages and its rounds, and says so in the
room, once. Partials stop reaching it the moment the removal lands. A promoted
admin answers rounds and reads the group's history; a share rotation after a
removal leaves every kept key valid, since the group's key never changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The database, repositories and the sync and notary engines move out of
GizaNavHost's remember blocks into GizaRuntime, made by GizaApplication on
Android, MainViewController on iOS and main() on desktop. Nothing changes
about how they run; there is now one of each, and a process with no
activity can reach them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupDmSender drafts one rumor and a seal per recipient under the kept
conversation key, carries a manifest sealed to the current admins, and
proposes the seals as one batch; a recipient without a key has a round opened
and the composer waits. On completion the proposer wraps each seal for its
recipient and owes it to their 10050; any admin can send again.
GroupDmRefusal runs D13 in the four places: a manifest this device can open,
bare kind 13s by the group, evidence signed by each recipient, the same rumor
in every seal naming exactly the manifest's recipients, words in it, and
NIP-59's dates. A proposal waiting on a key is held and retried when the key
combines. A non-admin signer declines; a room-signed seal draws no line.
Phase 1's kind 13 pin flips: nothing is signed blind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupDmListScreen: conversations with names, the last line and what is unread,
and what is still being opened, naming the admins it waits on and how many are
queued. GroupDmConversationScreen: messages in and out, outgoing ones with
where they have got to. The group's Messages row opens the list; only a
current admin sees anything of the group's mail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
live-group-dm subscribes for kind 1059 p-tagged to every group whose mail this
device reads, on its 10050 relays and the app's own, two days before the
newest wrap. GroupDmReceiver files a wrap in the ledger, opens its round, then
its seal's round or uses the kept key, and files the rumor once. A wrap to such
a group skips the personal inbox and writes no NostrEvent row. New wrap rounds
are capped at 60 per room per hour; the rest queue, newest first.
Partials now say which partials their sender holds, so a device that already
answered re-sends to an admin promoted after a round combined.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A kind 10050 the group signs is its decision to receive: proposed from a setup
screen, named on the signing screen, a transcript line when signed, owed to
relays by the proposer's device through GroupDmPublisher with backoff, and
broadcastable again by anyone. GroupDmRelayRefusal declines a list with a
relay that is not public wss:// in the four places. The group's screen gains
its messages row. Phase 1's 10050 pin flips.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupEcdhManager: a current admin holding the active share answers a round
once it holds the point's evidence, batches its partials into one 30400 per
pass sealed to the other admins, verifies every proof, names a bad one in a
30401, and combines at t. A seal's or recipient's key is kept; a wrap's opens
its wrap. Rounds restart when a refresh overtakes them. Dispatched from the
group room, swept every 20s, behind ExperimentalFeatures.groupDirectMessages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupEcdhRound, GroupEcdhPartial, GroupConversationKey, GroupDmWrap,
GroupDmMessage and GroupDmOutbound, by AutoMigration(44, 45). Redelivery of a
partial, wrap or rumor is a no-op; wiping a room takes its kept keys with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kinds 30400 and 30401; a payload encrypted once under a key sealed to each
admin's host key; partials that name a wrap by id; the manifest a signer
reads; opening NIP-59's layers with a threshold key; conversation ids; and
D5's evidence rule in one function. A seal the group builds opens in quartz's
stock unwrap with the recipient's own key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lagrange coefficients that can only scale a point, the npub's tweak replayed
with its signs, a holder's partial, a Chaum-Pedersen proof of it, and the
combination into NIP-44's conversation key. Every t-subset of a 3-of-5 key
gives quartz's own key; nothing in the package can build x or d.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A wrap to the group's npub is stored and never opened; a peer's kind 13 or
10050 is put to the member as a raw kind; nothing subscribes for the group's
mail. Each is flipped by a later phase, on purpose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group's inbox (docs/group-inbox.md) and the confederation's signing both took
schema 45. The confederation landed first, so it keeps 45 and the inbox moves to
46 with its own AutoMigration(45, 46); ShippedProfileUpgradeJvmTest's current is 46.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The combined point gives quartz's own NIP-44 conversation key for every
3-subset of a dealer key. Check 6 changed the wire: a payload encrypted once
under a key sealed per admin, with wraps and seals carried by reference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>