members: Add role has no seam — rule whether the closed v1 role set opens, and what a role now means given groups open services #1439
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1439
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit
078cd5b3onfounding-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>.Gap
The Manage groups dialog (
dashboard/src/components/members/ManageGroupsDialog.vue, Ben 2026-09-12) has two tables: groups (real —KomitiClient→POST /komiti→ kanidm groups) and roles (dashboard/src/lib/roles.ts RoleAdminClient— type only;mountRegistry.tswires nothing; onlydashboard/tests/fakes/roles.tsimplements it, with a header saying every behaviour is PROPOSED). Live, the roles table shows the two built-ins read-only with the reason "the platform ships two roles and they cannot be changed here" (data-field="roles-closed").Ben's 2026-09-12 definition, now the dialog's lede: a group decides which services its members can reach; a role decides what they can do inside those services. The two built-in descriptions (member / operator) were left as they were on Ben's word ("leave them") — they still describe control-panel access, which visibly contradicts the new definition until this is ruled.
Governing: ADR 0076 (two access roles, closed set; kaitiaki is a designation; per-app role mapping declared by each service's port), the members grill 2026-07-24, DDR 0073.
Why human — one-way door
Opening the role set changes the identity model every service consumes (kanidm groups → per-app roles via the ADR 0076 port declaration). It is not revertible by a config change once communities have minted roles.
Proposed default ruling: the platform role set stays closed at member / operator. "What a member can do inside a service" is the service's own per-app role, mapped from GROUPS per ADR 0076's port declaration — so Ben's definition is satisfied by groups + per-app mapping, not by a new platform role table. The Manage groups dialog's roles table becomes a read-only statement of the two platform roles plus, per group, the per-app roles it maps to (surfaced from the port declarations).
RoleAdminClientand its fake are deleted.Alternative: open the set — a
POST/DELETE /rolesseam oninternal/member/roles.go, kanidm groups prefixedrole:, refusal rules as the fake proposes (reserved, held, duplicate, kaitiaki), and a per-app mapping UI on P6-S7. That is a wayfinder-sized arc, not a ticket.Acceptance criteria (default ruling)
roles.tsandtests/fakes/roles.tsdeleted; the dialog's roles table paints the two platform roles from the ledger and, per group, the per-app roles its port declarations map (or "none declared").BUILT_IN_ROLE_WORDSrewritten to the ruled meaning.dialogstate, the Overview's device/System/service/members rows, the sidebar chrome — unit debt from Ben's 2026-09-10/11 UI pass #1399Ruled by Ben, 2026-09-12: the platform role set stays CLOSED at member / operator (ADR 0076 stands). Ben's definition — a group decides which services its members reach; a role decides what they can do inside them — is met by ADR 0076's port-declared per-app role mapping: a GROUP maps onto each service's own roles (the P6-S7 access matrix already carries that per-service
RoleMapping: claim-native / reconciler-mapped / front-door-only). No new platform role table. Landing now in this session:RoleAdminClient,tests/fakes/roles.tsand the harness wiring deleted; the Manage groups dialog's roles table becomes a read-only statement of the two platform roles with the ruled meaning, pointing at each group's S7 access matrix for what its members can do inside each service;BUILT_IN_ROLE_WORDSrewritten to the ruled meaning. The "open the set" alternative is parked — revisit only when a service needs more than the two inside it.Landed on main
6c774b8b(2026-09-12): the ruling above is in the control panel —InviteScreen.vuehas no role field,InviteSpec.roleis 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;inviteScreen13/13,komitiDetail26/26, vue-tsc + eslint clean, dashboard suite 1611 passing. Closing.