Files
giza-kmp/docs/confederation-proposals.md
T
Kgothatso NgakoandClaude Opus 5.5 7e42609af3 feat: everything a confederation signs goes through its groups, as proposals
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>
2026-11-23 10:11:14 +02:00

6.4 KiB

Everything a confederation signs, decided by its groups

A formed confederation signs three things: its profile (kind:0), its posts (kind:1) and its charter (9434). confederation-profile.md put the profile on a path where the groups decide. One group proposes, the others endorse or object, each by its own quorum, and the confederation signs once T groups have vouched, with nobody asked again. Posts and the charter stayed on the older path, listed there under Out of scope: one role holder started a signing attempt, and every other role holder approved or declined it as a person, on the confederation's Signing screen.

This change moves posts and the charter onto the profile's path and closes the older one. The confederation's screen calls the result Proposals.

Written against 4b36ce21, on 2026-11-23, behind ExperimentalFeatures.confederation and ExperimentalFeatures.groupInbox, both off in release. Nothing here has run on a device. Paths starting K/ are under composeApp/src/commonMain/kotlin/mobi/giza/compose/.


What was wrong

  • Two answers to one question. "Should the confederation sign this?" was decided by groups for a profile and by people for a post. A role holder who would never have got their group's quorum could still sign a post for the confederation, which is the problem confederation-profile.md fixed for profiles.
  • Two screens for one thing. Profile changes listed what the groups had said. The Signing section listed signing attempts and their per-person answers. A post never appeared under profile changes, and a profile's signing appeared under Signing as an attempt nobody could answer.
  • The ask went to the wrong people. Only role holders, the admins at formation, were asked about a post. An admin who joined a group later was never asked. A demoted founder still was.

Decisions

P1. A 9435 carries any event the confederation signs

ConfederationChangeStatements (formerly ConfederationProfileStatements) builds and parses a 9435 whose content is an unsigned kind:0, kind:1 or 9434 authored by the confederation (ConfederationKinds.SIGNABLE). The base tag is for a kind:0 only. A post or charter that carries one is refused at parse time.

The profile tag on 9436, 9437 and 9438 keeps its name, and now names the proposed event whatever its kind. A voucher is a signed event, so renaming the tag would leave devices on either side of the change unable to read each other's vouchers. The constant is EVENT_TAG = "profile", with a note.

P2. What a group's signer refuses, by kind

ConfederationChangeRefusal.changeRefusal:

kind refused when
kind:0 unreadable, or not editing the newest profile held (as before)
kind:1 blank: BLANK_POST
9434 not naming exactly the confederation's groups, name and threshold (UNTRUE_CHARTER), or a charter is already signed (CHARTERED)

P3. Nothing is signed without T groups' vouchers

ConfederationSigningManager.refusalOf asks for vouchers from T groups for every kind, not only a kind:0 (THROUGH_GROUPS). propose takes its vouchers as a required argument. An attempt over any kind asks nobody: each device says yes for each of its seats whose group vouched and no for the rest (publishAvailabilityByGroup). approve, decline, isAwaitingApproval and charterTemplate are gone from the signing manager. ChatMessage.TYPE_CONFEDERATION_SIGNING_ASKED is no longer written and has left NotificationClassifier.NEEDS_YOU. The constant stays, because a device may hold such lines.

ConfederationChangeFollowThrough (formerly …ProfileFollowThrough) already swept every 9435. It now starts the signing of a post or a charter by the same order and backoff as a profile.

P4. Where a proposal stands, by kind

ConfederationChangeStatus.of takes newestOfKind in place of newestProfile:

  • a kind:0 is SUPERSEDED by a newer signed profile, as before;
  • a charter is SUPERSEDED once any other charter is signed;
  • a post is never superseded.

PUBLISHED means the device holds the event signed, whatever its kind (ConfederationProfileManager.Signed). A charter is filed under its author rather than the confederation's column, so observeChanges watches the charters beside the confederation's rows.

P5. The screens

  • ConfederationScreen. "Profile changes" is now Proposals. It lists every kind, each card headed by its kind and state ("Post · Open"). Add post and Propose the charter are offered to the same people as Edit profile: an admin of this group who holds its inbox key, with every other group reachable (ChangeProblem, formerly ProfileChangeProblem). Both open the group's signing session. The Signing section is gone. While a charter proposal is open, the charter section says so instead of offering a second one.
  • ConfederationChangeScreen (formerly …ProfileChangeScreen), titled Proposal. Under "What it would sign" it shows a profile as its field-by-field difference, a post as its words, and the charter as itself. Endorse, Object and Withdraw are unchanged.
  • ConfederationSigningScreen is deleted, with its view model, state and route. A signing line in a group's room now opens the proposal. A line written before this change carries an attempt's id, and ConfederationRepository.proposalIdOf reads that id as the proposal the attempt was signing.
  • AddGroupPostScreen with a confederationId proposes from the group (ChatRepository.proposeAsConfederation(localChatRoom, …)) and goes to the group's FROST session.

Who is asked what, now for everything

step who is asked automatic after that
propose (a profile, a post, the charter) one admin of group A, on the confederation's screen; then A's quorum the seals to every group, A's voucher
B answers one admin of B; then B's quorum B's voucher
T groups have vouched nobody the first role holder in order starts the signing; every seat answers by its group's voucher
signed nobody filed, owed to relays, a line in every member group's room

Not done

  • No device run, as for the plans before it.
  • Older devices running a build from before this change will decline a 9435 that carries a post or a charter (SHAPE), out loud. That is the intended failure while both builds exist, and both flags are off in release.