The confederation's own Marmot room is gone (docs/confederation-room-removal.md): signing runs in
each group's room, carried between groups through their inboxes by the group's admins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On three real FROST groups with real inboxes, one of Agora's admins
proposes a post; the other eight are asked in their own groups' rooms,
approve, and every device signs it, files it as the confederation's post
and owes it to relays, with no room of the confederation's on any of them.
The plan's header and its table of where the build chose differently;
pointers from confederation.md Phase 13, confederation-without-coordinator.md
D11 and confederation-profile.md D5, D9, Phase 7 and its appendix, whose
rejected idea this plan took up. No device run.
Full jvmTest 2,001, all passing; m3, brand, wallet and Marmot audits pass;
compileDebugKotlinAndroid builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ConfederationFollowThrough is deleted, with its launch, the welcome that
replaced a held room and Confederation.roomCreator. A Welcome to an id
this device knows as a confederation's, by record or charter, is refused,
with the flag off too, and MarmotGroupCreation.create refuses that id.
Folded into schema 52, the migration drops roomCreator and every room
whose id is a confederation's, after its signed events are copied out.
Room migrates with foreign keys off, so nothing cascades from the room's
row there: the migration walks PRAGMA foreign_key_list from ChatRoom and
deletes every dependent row, children first.
roomIdOf is idOf and Held.roomKey is key: the id names no room.
Full jvmTest 2,000, all passing; m3, brand, wallet and Marmot audits pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ConfederationScreen gains Posts (with Add post for someone who holds a
seat), Charter (signed, or Propose the charter for a seat-holder) and
Signing (their attempts, the ones waiting on them first), and loses Open
the confederation's room. The composer posts for a confederation through
AddGroupPostRoute's new confederationId.
A post or charter a role holder must answer is its own line,
TYPE_CONFEDERATION_SIGNING_ASKED, written into each of their groups'
rooms as theirs and classed as needing them. A signed post is owed to
relays by every device that signed it.
The room screens lose the confederation's card, its members' group
labels, ConfederationRoomInfo, confederationOfRoom, the room's charter
proposal and the confederation branches of the posts and profile view
models; four strings go, and the ceremony room's banner stops saying the
confederation works in its own room.
Full jvmTest 2,001, all passing; m3, brand, wallet and Marmot audits pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ConfederationBridge: a signing message heard in a group's room, or
written there by this device's owner, is owed out by the group's current
admins who hold its inbox key, one at a time by their place, twenty
seconds apart, and only when its author holds a seat in that group or it
is the group's voucher. Out is one 30398 sealed as the admin to every
member group's announced inbox key, owed through GroupInboxPublication;
in is one envelope into the room, only where the group has a seated
member who reads no inbox. A copy seen back marks the turn done on the
other admins' devices. ConfederationCarry holds the turns (schema 52,
folded in).
GroupInboxManager.receive takes the identity's key and hands a 30398 to
the confederation. Signing proposes by the confederation's id and looks up
no room for it: its lines go into each seat group's room, and complete
files no GroupSignedEvent under the confederation. The profile
follow-through needs no room.
The signing fixtures carry no confederation room. New cases: no room
anywhere; each group's messages cross once; with the first admin away the
next carries twenty seconds on; a founder Agora has demoted keeps signing
through Agora's room; one Agora removed hears nothing.
Full jvmTest 1,996, all passing; m3Audit at budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every signing message, and a group's voucher, also goes into the room of
every group its author holds a seat in, beside the confederation's room,
which is still the channel that works until Phase 4. An envelope now names
the room it was written into: the same events written into two rooms made
one envelope id, and the second room's row overwrote the first's.
ConfederationPeople.withGroupRooms gives the per-person fixture each
group's room, inbox key and signed 10044, with members a test can demote
or remove.
Full jvmTest 1,991, all passing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A signing message is now a signed event from its author's key, naming its
confederation and attempt, never published, and sent inside a 30398
envelope (ConfederationSigningEvents.CARRIED). Whoever carries an envelope
cannot change what is in it: a receiver verifies each event and drops one
that does not verify, comes from someone with no seat, or names another
confederation. The envelope arrives here rather than in Phase 4 because an
MLS inner event has no column for a signature.
A group's voucher is already its signed event, so it travels in an
envelope as itself; the 30396 wrapper is never sent, and one that arrives
is dropped (Phase 5, folded in). Declining signs too, so it takes the key.
Full jvmTest 1,988, all passing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schema 52. A signing attempt hangs off the confederation's record rather
than a ChatRoom, every signing message heard is kept in
ConfederationSigningHeard and an attempt is rebuilt from there rather than
from the room's inner events, and the disappearing sweep forgets them once
their attempt ends. A post the confederation signs is filed in
ConfederationEvent beside its charter and profiles, and the migration
copies the ones already under the room there. Profiles and the profile
observers read ConfederationEvent alone; ConfederationRepository gains
observePosts.
Full jvmTest 1,986, all passing; m3Audit at budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The confederation's signing moves onto two channels that already exist:
each group's own Marmot room within a group, and the groups' inboxes
between them, carried by one admin at a time in order. The posts, charter
and signing attempts the room offered move to the confederation's screen,
and the rooms already on devices are dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person seated in several of a confederation's groups sends a nonce,
confirmation and partial only for the seats the selection chose, but
record() dropped any per-person message that did not name every seat its
sender holds. Every such message was discarded on arrival and the
attempt waited at NONCES for good -- on the emulators, all three of the
confederation's attempts, its charter and two profiles. Only the
availability has to cover every seat now; the later rounds may name any
of the sender's own, and perRole still waits for each chosen one.
The signing screen folded each person's answers into one, so a yes for
two groups and a no for the third read as "Declined". It now answers
group by group, and on a profile says a no is a group that had not
endorsed it when the signing began, which is what it is: the third
group's voucher reached the devices two minutes after the attempt.
ConfederationSharedSeatsSigningJvmTest lays the seats out as the
emulators do and fails on the old check; the existing tests gave each
person one seat. Full jvmTest 1,982, all passing; m3Audit at budget;
compileDebugKotlinAndroid builds. No device run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The ceremony screen's last step said 'The group has a shared key.' while
every transcript line about the same ceremony named the group. Seen on
the emulators beside a second group from the same people, it named
neither. It now reads 'Agora has a shared key.', and a ceremony with no
name keeps the old words.
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>
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>
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>
Nothing is made on a device until its owner joins a confederation's key
ceremony, but the room is: the first ceremony message to arrive makes it.
So a member who had not joined found a room with nothing in it, and the
ceremony screen said it held no ceremony. The join was only on the
proposal screen, inside each group. On a run of three groups across four
emulators, one person never pressed it, and the others waited at host
keys.
- The room shows a banner that opens the ceremony, read from the
ceremony messages filed there (ConfederationRitualManager.proposalOfRoom).
Until its owner joins, it says the ceremony cannot go on without them.
- The ceremony screen offers the join on a device that holds no ceremony
yet, when the checks the join makes would pass
(ConfederationRitualManager.joinable), rather than saying it holds none.
ConfederationCeremonyJvmTest and ConfederationScreensJvmTest each gain a
test. Full jvmTest 1,847, all passing; m3Audit, brand and wallet audits
at budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three devices, real ChillDKG and real FROST. Ekklesia is made, then Agora at
a different quorum. In their one NIP-17 room that is two ceremonies, two key
states signed and two rooms asked for, each named for its group with all
three as admins. Each room resolves to its own key, and the NIP-17 room to
neither.
Two variants: both groups made at once with the relay reordering
everything, and one abandoned partway while the other finishes.
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>
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>
With the same people able to run several ceremonies in one room, the
transcript, the waiting notice and the join screen each said 'the shared
key ceremony', which names none of them.
- Transcript lines name the group: started, joined, completed, abandoned
and the join request. Notifications are built from those lines, so they
name it too. A ceremony with no name keeps the words it had.
- The waiting notice names a single ceremony's group, and lists the names
under the count when there are several.
- The join screen names the group being made rather than the room, and
says when these people already share another group in it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Six reads took a room's newest ceremony to mean the room's group. With the
same people able to make several groups in one room, each was ambiguous or
wrong:
- The shared-key screen handed over to any ceremony that had not failed. It
now offers another group, which has to be named once the room has one, and
lists what the members already have.
- A retry of a failed group's ceremony now starts from that ceremony's name
and quorum (CreateSharedKeyRoute.retrying), not the room's.
- adminRoomOf became adminRoomsOf: the details screen and the member-action
explanation offer every group's admin room, by name.
- completedKey's last fallback answers only when the room holds exactly one
key of its own. Nothing asks it of a NIP-17 room today (Phase 0, P5).
- The repository's two newest-ceremony reads, and the DAO queries only they
used, are gone. CeremonyLookupsJvmTest now expects none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The creation screen passed no name to the ceremony, so a second group over
the same members was named after the room it landed in: the first group's
room, under the first group's name. It now names the ceremony after what was
typed.
Before anything is made, the screen reads the groups the same people already
share, from the room they would land in without making it, and lists them in
a card. It flags a group that would share a name with one of them. Nothing is
refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
proposeRitual folded every ask into the room's newest own ceremony that had
not failed, including one that had finished, so a second group over the same
members got the first one back. It now folds only into a running ceremony
under the same name. A finished one never stands in the way, and two names
are two groups.
The room's name names only its first group. A second ceremony with no name
of its own is refused rather than becoming the first group's namesake.
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>
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>