The report finds the key ceremony needs no NIP-17 room: its rounds can travel the bridge the
confederation's signing already uses. The plan builds that in eight phases.
Phase 0's checks are kept as ConfederationDkgInboxesPremiseJvmTest: 30379 is free; one role's
dealing size is an exact formula of T, the inner thresholds and the roles; a ceremony room's id
is any NIP-17 chat among the same people; every admin holds the group's inbox key. The byte
budget comes out at 26,000, not the planned 32,000, because NIP-44 pads in steps and a wrap
crosses 64 KiB well before its plaintext limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Posts and the charter now take the path profile changes already took
(docs/confederation-proposals.md): one group proposes a 9435 carrying the
unsigned kind:1 or 9434, the others endorse or object by their own quorum,
and the confederation signs once T groups have vouched, with nobody asked.
- ConfederationChangeStatements (was ...ProfileStatements) carries any
signable kind; a base only on a kind:0. The wire's "profile" tag keeps
its name so vouchers stay readable across builds.
- Refusals by kind: a blank post, an untrue or second charter.
- ConfederationSigningManager refuses anything without T groups'
vouchers; approve, decline and the per-person ask are gone.
- A charter supersedes a later charter; a post is never superseded.
- ConfederationScreen: "Profile changes" becomes "Proposals" for every
kind; Add post and Propose the charter start the group's session; the
Signing section, screen, view model and route are removed. Signing
lines open the proposal, an older line's attempt id resolved to it.
- Profile* types that now hold any kind renamed to Change*.
jvmTest 2,014, all passing; m3, brand and wallet audits at budget;
compileDebugKotlinAndroid builds. No device run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
giza took schema v52 for docs/confederation-room-removal.md, so the
rename of Marmot rooms from #name to &name moves to v53
(AutoMigration(52, 53)). ChatRoom is the same at both versions and
53.json matches 52.json apart from the version.
The confederation tests that conflicted take giza's side: the
confederation no longer has a room, and the &Atlas fixtures went with
it. The new fixtures giza added name groups &Agora, &Polis and
&${names[i]}.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
shared-key-ceremony, subgroups, confederation, nip17-multiple-ceremonies and
automatic-key-ceremony describe today's mark as &, pointing at
group-name-prefix.md for why it moved. Dated device-run logs that quote #
(ceremony-creation, mls-skipped-keys) are left as the record they are.
group-name-prefix.md and its README row now say built but for the device run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every test fixture, harness default and @Preview that seeded a group's name
under # now uses &, along with the comments that spelled a room #name. # is
left only where the old mark is the point: MarmotGroupNameTest's inputs, the
Welcome and migration tests, the legacy certificate in SubgroupManagerJvmTest
and the verbatim proposal summary in ProposedEventTest. Hashtags and #h
filters are untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The parent's subgroup list and the TYPE_SUBGROUP_CERTIFIED line read the
certificate's name through MarmotGroupName.of, so a certificate signed before
the change matches the room it names. The proposal summary stays verbatim:
it shows what the signer is about to approve.
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>
MarmotGroupNameMigrationSpec runs after an auto-migration with no change of
shape and rewrites ChatRoom.subject through MarmotGroupName.of for every
Marmot room (mlsGroupState IS NOT NULL), left or not. NIP-17 rooms keep
whatever their people called them, and the groups' MLS state is untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
processWelcome writes MarmotGroupName.of(roomName()) to ChatRoom.subject, so
a room an older Giza or a Bennu peer named #name, or another client named with
no mark, lands as &name like every room this device makes. The group's own
MLS state keeps what its creator wrote.
CurrentProfileKeyPackageJvmTest's room from another client is now joined as
&made elsewhere, which is D4 of the plan.
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>
MarmotGroupName.PREFIX is now &, and of() strips any leading run of space,
# and & before putting one & back, so an old #name and a new &name normalise
to the same thing and the rule stays idempotent. New rooms, new subgroup
certificates and the subgroup name field all follow the constant.
Rooms already on a device keep # until the v52 migration.
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>
The plan: one idempotent rule that accepts both marks and writes &, applied
where a room is minted and where a Welcome is joined, a v52 migration for the
rooms already on a device, and certified names normalised where they are shown
but verbatim where somebody is asked to sign them.
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>