A formed confederation's profile, decided by its groups
(docs/confederation-profile.md, Phases 0 to 8). Disappearing messages
had taken schema 50 first, so the confederation's column is v51,
AutoMigration(50, 51). In GroupInboxManager a profile statement goes to
the confederation before the inbox's NIP-40 expiry check, as the
formation's statements do. Full jvmTest 1,978, all passing; audits at
budget; compileDebugKotlinAndroid builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three groups of three admins, signing by real FROST and holding real
inboxes, form a confederation the real way on nine devices, then decide
its profile: Agora proposes, Polis endorses, the first in the order
starts the signing and all nine finish it without being asked, every
admin reads it, every group's room says so, and a member of Polis who is
no admin hears it from a relay. A change another group objects to and
its proposer withdraws is never signed.
The plan's header and progress table. Full jvmTest 1,903, all passing;
audits at budget; compileDebugKotlinAndroid builds. No device run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The confederation's own room names its groups, each with the people who
hold its roles, labels each member with the groups they hold roles for,
says that admins who joined later are not in it, and opens the
confederation's screen from a member group this device is in.
The key ceremony's NIP-17 room, once the ceremony has made the
confederation, says so and leads to the confederation, and its composer
is hidden: anything typed there would reach the founding people as
people.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The signed kind:0 is owed by every device that signed it and sent to the
public relays and every member group's inbox relays. The live
confederation subscription also asks for each known confederation's own
kind:0, by its key, so a member who is not an admin and holds only the
charter hears the new profile, and each member group's room says so:
"Atlas has a new profile". An older profile heard late changes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group's voucher, signed beside its seals, is carried into the
confederation's room by the group's role holders (kind 30396). Once a
role holder's device holds T groups' vouchers for a change, the first in
the roster's order starts the signing, with ten minutes a place for
those after, and again after a backoff when an attempt fails. Each role
holder's device answers for its seats from what its groups said: yes
where the group vouched, no where it did not. Two attempts at once end
in the one whose id sorts first.
A kind:0 without enough vouchers, or older than one already signed, is
refused, so the confederation's room no longer edits its profile; posts
and the charter keep the direct path. The signed profile is filed under
the confederation and owed to relays by the device that started it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A formed confederation opens its own screen, from its row on each member
group's screen and from its card among the group's confederations: its
signed profile, its groups with who holds their roles, the changes to its
profile and the way to propose one. A member who is not an admin sees the
public part and is told why the changes are missing.
Editing the profile asks the member's group to propose the change (or
the group they pick, when they are an admin of more than one); a change
opens on its own screen with what it would change field by field, every
group's answer, and Endorse, Object or Withdraw. The lines in each
group's room open the change, or the confederation once it is published.
The five profile fields move to a shared NostrProfileFields, used by the
group's form too, with decorative icons beside their labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
A group's direct messages and inbox replies carry the proposer's expiry
inside the rumor the quorum signs; signers refuse a length nobody could
choose; the wraps ask relays to drop them; an expired arrival is not
filed; and the sweeper deletes a group's expired messages, empties the
words of their wraps and drops what was still owed. A confederation's
statements are left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A line in each member group's room a device holds, for every change,
endorsement, objection and withdrawal it files, once each, and for the
answers that arrived before their change once the change does. The line
carries the change's id so the next phase can make it open the change.
Another group proposing a change notifies; the answers are quiet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A change is a statement by the editing group, sealed by its quorum to
every member group's inbox, with a voucher signed in the same session.
Every other group endorses (with its own voucher) or objects, the same
way. The confederation's groups and threshold come from its record, or
from its charter, which now says the threshold too.
A member's device reads what its group would sign: the seals to exactly
the confederation's other groups, a readable profile editing the newest
one it holds, one voucher for exactly that kind:0, an answer to a change
still open that this group has not answered. Anything else is declined
out loud. The approval screen's notes say what would change, field by
field.
The inbox hands the statements to the confederation and files no copy
as a conversation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A screen for the profile's default and a NIP-17 conversation's override:
presets from Off to four weeks and a custom length from five minutes to
a year, with what the setting does and does not do. The conversation
shows its timer in the app bar, a one-time notice, and an hourglass
beside each line that will disappear.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kinds 9435 to 9438: a group proposing a new profile for its confederation,
another endorsing or objecting to it, and the voucher a group signs beside
its seals. None is public, so none joins ConfederationKinds.ALL. A change
carries the unsigned kind:0, dated as itself, so its id is fixed before
anyone answers.
ConfederationProfileChangeStatus computes where a change stands from what
a device holds: T of N groups endorse it, an objection blocks only when T
is out of reach, a newer signed profile supersedes it, and nothing past
its expiry counts.
Everything is filed in ConfederationEvent under a new confederationId
(schema 50), the signed kind:0 included, because GroupSignedEvent hangs
off a room that a member who is no admin does not hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ProtocolRetention keeps an expired DKG, signing or confederation-ceremony
round until the session it names has completed or failed, and releases a
round with no session here, a Welcome and anything else at its expiry.
The runtime's sweeper now uses it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plan, and three of its premises as tests. A batch of seals with one
voucher is declined today, by refusals that are ours to change. A voucher
a group's quorum signs verifies under its npub with nothing else known. A
profile change carries the whole kind:0 in every group's seal, so it can
carry about 1.1 KB of profile to twelve groups and 13 KB to two: the plan
now says so, rather than "a few KB".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sweeper deletes an expired payload with every wrap, seal and chat
line that held it, lets go of a room created from it first, and
withdraws any notification still showing it. It watches the soonest
expiry and runs beside the notification engine. A message that arrives
already expired is never filed: its seal goes, its wrap is emptied and
tombstoned. Until Phase 5, only what a person wrote is released.
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>
Built except for the device run. The plan keeps its phases as written,
with a table of where the build differs. A ceremony from before names were
carried is matched under its room's name, now pinned in a test; the check
on a real upgraded device has not been done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The room's details showed one admin-room card, for the newest group. They
now have a Groups section listing every group the room's members made there,
each with where it stands: key ceremony in progress, waiting for its room,
or its room, which the row opens. The section says so when there are none.
The Shared key button reads 'New group with these members' once the room
has a group. shared-key-ceremony.md and CeremonyEntryPointsJvmTest describe
the creation screen as making a new group from a room's members.
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>
Two ceremonies over the same host keys and threshold make two keys, and a
contribution to one fed to the other makes nobody a key. A member holding a
finished key records a second proposal, and a proposal's subject does not
rename a room that exists. The reads that take a room's newest ceremony are
counted so Phase 3 can shrink them.
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>
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>
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>
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>
Marks the plan built behind its flag, with a what-the-plan-said table:
the kinds moved to 30410-30416, one publication table, announcements
that wait for a ceremony still finishing, watchers who learn the key,
wraps routed by key as well as by npub, rotation read off what every
device holds with crossing ceremonies settled the same way everywhere.
The README row says so, and confederation.md's D5 gets a since note:
something can now be encrypted to a group that has an inbox.
Not done: the device run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The five checks before any code. ChillDKG at t = 1 gives every
participant the same secret, whose public key is the ceremony's; a
batch of kind 13 events the quorum signs verifies as the room. The
plan's kinds 30390-30396 collide with quartz's trusted lists, so the
ceremony takes 30410-30416, which nothing else uses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The profile and post editors work in a confederation's room, proposing
through the confederation instead of a FROST key, and the signed event
lands where the existing screens read it. A charter names exactly the
confederation's groups under its name; once signed it goes to relays,
and every member group's room hears of it, which is how members who
are not admins learn the confederation exists. A request to sign opens
from its line in the room for each member to approve or decline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every role holder is asked; the proposer fixes the selection from the
first yeses, and each selected role makes a nonce held in memory only,
confirms and gives its partial. The transcript, the certificate, each
group's partial and the signature need no secret, so every device
computes them and checks the signature against the room's id before
keeping it. A device that restarts mid-attempt ends it out loud.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once the key exists, the coordinator's device makes a Marmot room whose
id the confederation's key derives, with every role holder a member and
an admin, born governed. It waits on missing key packages and retries
when one arrives; a record that does not verify, or a device with no
role, makes no room. The room's screen says it is the confederation's
and that its members are fixed until the confederation can sign.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every device that took part files the confederation under the room id
its key derives, as upstream's canonical roster, key state and genesis,
with its own shares kept as recovery packages. The genesis is verified
against the key state before anything is written, and each of the
device's own member groups gets a line saying it is part of it now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The coordinator opens a NIP-17 room over every admin of every group and
discloses the key that opens each acceptance. Each device rebuilds the
roster from what the groups signed and checks its own groups' admins
before it will join; joining is the only thing a member is asked, and
every DKG step after it runs from stored inputs over ConfederationDkg.
Each device derives the key state and assembles the certified genesis
itself, and keeps its share as a recovery package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ConfederationRosterBuilder writes upstream's roster from the proposal
and the opened acceptances: groups and admins sorted, the proposal's
outer threshold, each group's sealed threshold, the admin's npub as
the entity and an attestation hash over the proposal and acceptances.
Host keys derive from the member's nsec per group and proposal, so one
person in two groups holds two roles with a key each.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>