invites: the ROLE field on the invite form is not read by the seam — every invite admits as member, whatever the operator picked #1438

Closed
opened 2026-09-12 15:03:56 +00:00 by ben · 2 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Symptom

Ben's 2026-09-12 relayout put a ROLE select (member / operator / + Add role) on the invite form (dashboard/src/components/members/InviteScreen.vue:53-59), amending DDR 0073's "the role is never a field". InviteSpec.role rides the request (invites.ts:64-77) but openapi InviteSpec is label / komiti / multi_use only (~:5180-5189) and internal/member/invite.go:391 hardcodes Role: RoleMember. An operator picking operator gets a plain member with no error. The 2026-09-12 review fix put an honest line under the select ("Not applied yet — everyone this invite admits joins as a member for now", data-field="role-not-honoured") so the control no longer lies, but the design question stands.

Governing: ADR 0076 (two access roles, closed set; operator is granted, kaitiaki is a designation), DDR 0073 (approval gate), DDR 0230 (registration open on IDSS).

Why human — one-way door

Admitting someone as operator by invite widens the security posture: an invite link is a bearer token, and today the only way to become operator is a grant by an existing operator on the member (internal/member/roles.go grant/revoke). Whether an invite may pre-carry operator is a trust decision.

Proposed default ruling: invites stay member-only. The ROLE select comes off the invite form (with its "+ Add role"); operator is granted on the member's page after they join (the grant/revoke verb exists — surface it on P6-S3 member detail if it is not). The "+ Add role" idea lives in the Manage groups dialog's ruling (its own ticket).

Alternative if Ben wants it: honour role on the wire for member | operator, require the minting operator to be an operator (already true), stamp the invite ledger with who minted and which role, and show the role on the open-invites ledger and on approval so the hui sees what it is admitting.

Acceptance criteria (default ruling)

  • The invite form has no role control; InviteSpec.role is removed from invites.ts and the fakes; inviteScreen.test.ts asserts the mint payload has no role.
  • Member detail offers grant / revoke operator to an operator, with the seam's refusal rendered.
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Symptom Ben's 2026-09-12 relayout put a **ROLE** select (member / operator / + Add role) on the invite form (`dashboard/src/components/members/InviteScreen.vue:53-59`), amending DDR 0073's "the role is never a field". `InviteSpec.role` rides the request (`invites.ts:64-77`) but openapi `InviteSpec` is `label / komiti / multi_use` only (~:5180-5189) and `internal/member/invite.go:391` hardcodes `Role: RoleMember`. An operator picking **operator** gets a plain member with no error. The 2026-09-12 review fix put an honest line under the select ("Not applied yet — everyone this invite admits joins as a member for now", `data-field="role-not-honoured"`) so the control no longer lies, but the design question stands. Governing: ADR 0076 (two access roles, closed set; operator is granted, kaitiaki is a designation), DDR 0073 (approval gate), DDR 0230 (registration open on IDSS). ## Why human — one-way door Admitting someone as **operator by invite** widens the security posture: an invite link is a bearer token, and today the only way to become operator is a grant by an existing operator on the member (`internal/member/roles.go` grant/revoke). Whether an invite may pre-carry operator is a trust decision. **Proposed default ruling:** invites stay member-only. The ROLE select comes off the invite form (with its "+ Add role"); operator is granted on the member's page after they join (the grant/revoke verb exists — surface it on P6-S3 member detail if it is not). The "+ Add role" idea lives in the Manage groups dialog's ruling (its own ticket). Alternative if Ben wants it: honour `role` on the wire for `member | operator`, require the minting operator to be an operator (already true), stamp the invite ledger with who minted and which role, and show the role on the open-invites ledger and on approval so the hui sees what it is admitting. ## Acceptance criteria (default ruling) - [ ] The invite form has no role control; `InviteSpec.role` is removed from `invites.ts` and the fakes; `inviteScreen.test.ts` asserts the mint payload has no role. - [ ] Member detail offers grant / revoke operator to an operator, with the seam's refusal rendered.
Author
Owner

Ruled by Ben, 2026-09-12: invites stay member-only — the ROLE select comes off the invite form. Operator is granted on the member's page after they join (grant-operator / revoke-operator already live on P6-S3 member detail, ADR 0076/0089). No bearer-token path to operator. Landing now in this session: the select and "+ Add role" removed from InviteScreen.vue, InviteSpec.role removed from invites.ts and the fakes, inviteScreen.test.ts asserts the mint payload carries no role. DDR 0073's "the role is never a field" stands un-amended.

**Ruled by Ben, 2026-09-12: invites stay member-only — the ROLE select comes off the invite form.** Operator is granted on the member's page after they join (`grant-operator` / `revoke-operator` already live on P6-S3 member detail, ADR 0076/0089). No bearer-token path to operator. Landing now in this session: the select and "+ Add role" removed from `InviteScreen.vue`, `InviteSpec.role` removed from `invites.ts` and the fakes, `inviteScreen.test.ts` asserts the mint payload carries no role. DDR 0073's "the role is never a field" stands un-amended.
Author
Owner

Landed on main 6c774b8b (2026-09-12): the ruling above is in the control panel — InviteScreen.vue has no role field, InviteSpec.role is gone, RoleAdminClient + its fake are deleted, the Manage groups dialog paints the two platform roles read-only with the ruled meaning and points at each group's S7 access matrix; inviteScreen 13/13, komitiDetail 26/26, vue-tsc + eslint clean, dashboard suite 1611 passing. Closing.

Landed on main `6c774b8b` (2026-09-12): the ruling above is in the control panel — `InviteScreen.vue` has no role field, `InviteSpec.role` is gone, `RoleAdminClient` + its fake are deleted, the Manage groups dialog paints the two platform roles read-only with the ruled meaning and points at each group's S7 access matrix; `inviteScreen` 13/13, `komitiDetail` 26/26, vue-tsc + eslint clean, dashboard suite 1611 passing. Closing.
ben closed this issue 2026-09-12 19:09:45 +00:00
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#1438
No description provided.