ConfederationNetworkJvmTest forms a confederation on three groups of three, each with a real inbox
and a real MLS room, with one group's first admin never carrying. All nine devices reach one key,
and none holds a NIP-17 room or a ceremony gift wrap. ConfederationTestGroups.pumpConfederation
takes devices that do not carry.
The record: the plan's progress and where the build chose differently, the report marked as
implemented, the README rows, and since notes in the coordinator-free, profile and room-removal
plans. Nothing has run on a device or a real relay.
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>
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>
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>
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>
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>
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>