Founding app design defines the community app’s roles (Features → How people join → Roles); the app’s steward/member roles match the panel’s operator/member #1876

Open
opened 2026-09-25 10:28:44 +00:00 by ben · 2 comments
Owner

Ben, 2026-09-25: "I want Coa roles to be defined at app design and to match the control panel roles."

Ruled in the same exchange

  1. What matches: steward and member only. On an IDIP community the panel knows two membership roles, carried on the Membership credential: operator/steward (role: operator; the founder holds it, and stewards approve and issue) and member. The app's community roles map onto exactly those two. The panel's other credentials (Administrator, komiti, …) stay separate from app roles: they are not app roles, and app roles are not panel credentials.
  2. Where it's defined: a third screen in founding's app design, after How people join. The app-design stage becomes Features → How people join → Roles, then Continue → S4.

Today

  • matou-app's roles are its own built-in set (backend/internal/contributions/policy.go), with a capability matrix edited in Community settings → Roles (#621 gates the tables by feature):
    • community scope: Member, Operations Steward, Community Steward, Founding Member;
    • project scope: Contributor, Project Lead, Project Steward.
  • On IDSS, membership is issued from the community registry (matou-app #612/#615), and steward checks read role strings (stores/identity.ts: steward / founding member).
  • Founding collects no roles, and nothing tells the app which of its roles the panel's operator and member are.

The change (to be designed)

  • Founding S3a-APP-ROLES (new screen, wireframe owed): the founder sets the app's community roles, starting from the defaults above.
    • They can rename, add or remove non-built-in roles, and set each role's capabilities with the same matrix as the app's Community settings.
    • Exactly one role is marked the steward role, which the panel's operator maps to (default: Community Steward, with the founder shown as Founding Member). Exactly one is marked the member role (default: Member).
    • Project-scoped roles come along only when projects is on (#620/#621).
  • Where it goes: the roles block rides the founding draft, then the org config the gateway serves (next to onboarding, ADR 0226). The app reads it as its role set and matrix, and the Coa submission carries it as the kit seed if Coa's schema takes it; otherwise it goes through org config only.
  • Matching the panel:
    • A member approved in the panel or the app gets Membership with role: member, which shows in the app as the member role.
    • Promoting someone to steward in the panel (operator) shows in the app as the steward role. Granting the steward role in the app issues or updates the panel-side operator membership.
    • The app's other roles (Operations Steward, custom ones) are app-only.
    • The two sides must never disagree about who is a steward.
  • Afterwards: edits happen in the app's Community settings → Roles (as with onboarding), and the panel's Members tab shows each person's app role name next to member/steward. Whether that's read-only is to be decided in design.

Open, for Ben (why needs-design)

  • Can the founder delete a default role (e.g. Operations Steward), or only rename and re-permission it?
  • Does granting an app role other than steward/member need anything on the panel side, or is it purely in the app?

Acceptance (once designed)

  • A new community's founding shows Features → How people join → Roles. The roles chosen there are the ones the app's Community settings → Roles lists on first launch.
  • The founder appears as the steward role in the app and as operator in the panel. A member approved in either place appears as the member role in the app and as a member in the panel.
  • Promoting a member to steward in either place shows in the other.

Related: #1870 (the onboarding screen this follows), matou-app #621 (feature-gated permission tables), #612/#615 (IDSS membership).

<!-- origin: session --> **Ben, 2026-09-25:** *"I want Coa roles to be defined at app design and to match the control panel roles."* **Ruled in the same exchange** 1. **What matches: steward and member only.** On an IDIP community the panel knows two membership roles, carried on the Membership credential: **operator/steward** (`role: operator`; the founder holds it, and stewards approve and issue) and **member**. The app's community roles map onto exactly those two. The panel's other credentials (Administrator, komiti, …) **stay separate** from app roles: they are not app roles, and app roles are not panel credentials. 2. **Where it's defined:** a **third screen in founding's app design**, after *How people join*. The app-design stage becomes **Features → How people join → Roles**, then Continue → S4. **Today** - matou-app's roles are its own built-in set (`backend/internal/contributions/policy.go`), with a capability matrix edited in Community settings → Roles (#621 gates the tables by feature): - community scope: **Member**, **Operations Steward**, **Community Steward**, **Founding Member**; - project scope: Contributor, Project Lead, Project Steward. - On IDSS, membership is issued from the community registry (matou-app #612/#615), and steward checks read `role` strings (`stores/identity.ts`: `steward` / `founding member`). - Founding collects no roles, and nothing tells the app which of its roles the panel's `operator` and `member` are. ## The change (to be designed) - **Founding S3a-APP-ROLES** (new screen, wireframe owed): the founder sets the app's **community roles**, starting from the defaults above. - They can rename, add or remove non-built-in roles, and set each role's capabilities with the same matrix as the app's Community settings. - Exactly one role is marked **the steward role**, which the panel's `operator` maps to (default: *Community Steward*, with the founder shown as *Founding Member*). Exactly one is marked **the member role** (default: *Member*). - Project-scoped roles come along only when **projects** is on (#620/#621). - **Where it goes:** the roles block rides the founding draft, then the org config the gateway serves (next to `onboarding`, ADR 0226). The app reads it as its role set and matrix, and the Coa submission carries it as the kit seed if Coa's schema takes it; otherwise it goes through org config only. - **Matching the panel:** - A member approved in the panel or the app gets Membership with `role: member`, which shows in the app as the member role. - Promoting someone to steward in the panel (`operator`) shows in the app as the steward role. Granting the steward role in the app issues or updates the panel-side `operator` membership. - The app's other roles (Operations Steward, custom ones) are app-only. - The two sides must never disagree about who is a steward. - **Afterwards:** edits happen in the app's Community settings → Roles (as with onboarding), and the panel's Members tab shows each person's app role name next to member/steward. Whether that's read-only is to be decided in design. ## Open, for Ben (why `needs-design`) - Can the founder **delete** a default role (e.g. Operations Steward), or only rename and re-permission it? - Does granting an app role other than steward/member need anything on the panel side, or is it purely in the app? ## Acceptance (once designed) - A new community's founding shows Features → How people join → Roles. The roles chosen there are the ones the app's Community settings → Roles lists on first launch. - The founder appears as the steward role in the app and as `operator` in the panel. A member approved in either place appears as the member role in the app and as a member in the panel. - Promoting a member to steward in either place shows in the other. Related: #1870 (the onboarding screen this follows), matou-app #621 (feature-gated permission tables), #612/#615 (IDSS membership).
Author
Owner

Ruled (Ben, 2026-09-25), both open questions answered:

  1. Default roles can only be renamed. The founder can rename a default role and set its permissions, but can't delete it. They can still add roles.
  2. App roles other than steward and member live only in the app for now. Granting one needs nothing on the panel side.

Related, already built: matou-app PR #639 makes the app recognise the panel's operator Membership as the app's steward (mapped to Founding Member for now), the first half of the steward/member match. Without it the founder never saw pending registrations on whakatohea-demo.

Still owed before this leaves needs-design: the S3a-APP-ROLES wireframe (Features → How people join → Roles) and its founding-flow node.

**Ruled (Ben, 2026-09-25)**, both open questions answered: 1. **Default roles can only be renamed.** The founder can rename a default role and set its permissions, but can't delete it. They can still add roles. 2. **App roles other than steward and member live only in the app for now.** Granting one needs nothing on the panel side. **Related, already built:** matou-app PR #639 makes the app recognise the panel's `operator` Membership as the app's steward (mapped to *Founding Member* for now), the first half of the steward/member match. Without it the founder never saw pending registrations on `whakatohea-demo`. Still owed before this leaves `needs-design`: the S3a-APP-ROLES wireframe (Features → How people join → **Roles**) and its founding-flow node.
Author
Owner

Today's drift, traced in the code (2026-09-27)

Ben asked whether upgrading a member to steward in matou-app gives them operator access to the control panel. It does not. Here's why, to feed the design:

What the panel gate reads. IsOperator (internal/keria/operators.go:49) passes only when both are true:

  • the person's Membership credential is live in the registry, and
  • their roster row has Role == operator.

Nothing reads the role on the credential itself.

What writes that row. Only Registry.Promote/Demote (internal/keria/registry.go:624/653). The one caller is the panel's own steward-rotation flow: RotationAdapter.land (internal/keria/adapter.go:1026) runs once co-signing reaches majority, and it also mints the operator key. Nothing syncs the roster from KERIA: restore.go and standing.go never touch Role.

What matou-app's upgrade does (useAdminActions.upgradeMemberToSteward via ChangeRoleModal.vue):

  • its own multisig rotation that adds the member to the group AID;
  • re-issues Membership with a matou role string (e.g. "Community Steward"), not operator;
  • calls the matou backend's /api/v1/spaces/grant-steward-admin, which grants any-sync space rights only.

It never calls the control API's rotation endpoints. Result: the person becomes a group-AID signer, but the panel treats them as a member. They get no operator key, no admin gate and no steward routes. This breaks the "never disagree about who is a steward" requirement above, in the app → panel direction.

Constraint for the design. Having matou-app grant an "operator" role string would not fix this: the gate never reads the credential's role. The fix has to either:

  • (a) have the app's steward grant go through the control API rotation (propose/co-sign), so land promotes and mints, or
  • (b) move IsOperator onto the community ledger, reading the Membership credential's role mapped through this ticket's "steward role" marker. That is the same move #1886 makes for the Members list (ADR 0235 d.3/d.6: the roster is a projection, never the source). If this route is taken, operator-key minting needs a new trigger, because it currently hangs off land.

(b) changes who the admin gate admits, so it is a trust change. Per ADR 0255, it goes to Ben first.

Unverified: what happens if the panel's add-steward runs first and matou-app's upgrade runs afterwards. matou-app skips its multisig rounds when the member is already a signer (alreadySigner), but it would still re-issue Membership with its own role string, replacing the role: operator one.

Workaround until this lands: promote stewards from the control panel's Members tab (add steward → co-sign), not from matou-app's Change Role.

🤖 Generated with Claude Code

<!-- origin: session --> ## Today's drift, traced in the code (2026-09-27) Ben asked whether upgrading a member to steward in matou-app gives them operator access to the control panel. **It does not.** Here's why, to feed the design: **What the panel gate reads.** `IsOperator` (`internal/keria/operators.go:49`) passes only when both are true: - the person's Membership credential is live in the registry, and - **their roster row has `Role == operator`**. Nothing reads the `role` on the credential itself. **What writes that row.** Only `Registry.Promote`/`Demote` (`internal/keria/registry.go:624/653`). The one caller is the panel's own steward-rotation flow: `RotationAdapter.land` (`internal/keria/adapter.go:1026`) runs once co-signing reaches majority, and it also mints the operator key. Nothing syncs the roster from KERIA: `restore.go` and `standing.go` never touch `Role`. **What matou-app's upgrade does** (`useAdminActions.upgradeMemberToSteward` via `ChangeRoleModal.vue`): - its own multisig rotation that adds the member to the group AID; - re-issues Membership with a **matou role string** (e.g. `"Community Steward"`), not `operator`; - calls the matou backend's `/api/v1/spaces/grant-steward-admin`, which grants any-sync space rights only. It never calls the control API's rotation endpoints. **Result:** the person becomes a group-AID signer, but the panel treats them as a member. They get no operator key, no admin gate and no steward routes. This breaks the "never disagree about who is a steward" requirement above, in the app → panel direction. **Constraint for the design.** Having matou-app grant an `"operator"` role string would not fix this: the gate never reads the credential's role. The fix has to either: - (a) have the app's steward grant go through the control API rotation (propose/co-sign), so `land` promotes and mints, **or** - (b) move `IsOperator` onto the community ledger, reading the Membership credential's role mapped through this ticket's "steward role" marker. That is the same move #1886 makes for the Members list (ADR 0235 d.3/d.6: the roster is a projection, never the source). If this route is taken, operator-key minting needs a new trigger, because it currently hangs off `land`. (b) changes who the admin gate admits, so it is a trust change. Per ADR 0255, it goes to Ben first. **Unverified:** what happens if the panel's add-steward runs first and matou-app's upgrade runs afterwards. matou-app skips its multisig rounds when the member is already a signer (`alreadySigner`), but it would still re-issue Membership with its own role string, replacing the `role: operator` one. **Workaround until this lands:** promote stewards from the control panel's Members tab (add steward → co-sign), not from matou-app's Change Role. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1876
No description provided.