Spec: members — belonging, the gated door, and the member lifecycle (P6) #19
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#19
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
Wayfinder map: #7 (OurCloud v1 program scope — Phase 0). Members' definition and boundary rulings were locked on #9 (2026-07-21); this child spec consumes the members grill and wireframe set (2026-07-24, live confirm-and-fill with Ben, both gates passed in-session): DDR 0073 + ADRs 0074–0078, the rebuilt
docs/ux/flows/p6-members.mermaid(10 screens), and the confirmed wireframe set indocs/ux/wireframes/p6-members/(commitsc239a67,bbe22a0).Problem Statement
A community's people need to belong to its OurCloud the way they belong to the community — invited by someone they know, joining on their own phone, using every service with one account — without anyone running "user administration." The operator (low-skill, low-time, the P1 persona) needs to see who belongs, let the right people in, group them into komiti that actually control something, help when someone loses a passkey, and — when someone leaves — end their access everywhere at once while their data is handed on or kept, never silently lost. Today none of this exists: kanidm holds the machinery (ADR 0038) but there is no member-facing door, no lifecycle surface, and no honest answer to "what happens to their stuff."
Solution
The Members tab (in shell's dashboard frame) plus a small member-facing surface on the member's own phone. Belonging is always an explicit operator decision (DDR 0073): invites are single-use by default (multi-use is a deliberate choice for a hui), and every join waits in an approval queue grouped by invite. One community account propagates to every service over OIDC; kanidm stays invisible — every member-visible auth moment is branded. Komiti have teeth: front-door service access enforced at the gateway's auth gate, plus per-app role mapping where a catalogue port declares it (ADR 0076). Suspension is instant at the community's front door (ADR 0074). Removal decides data's fate per service on each port's declared terms — and v1 never deletes member data (ADR 0075). Everything audit-logged with drill-in (ADR 0027).
User Stories
The list and first run
Invites
Joining (the member's side)
Approval (the operator's side)
By hand
Member detail and reset
Suspension
Removal
Komiti and access
Kaitiaki, roles, audit
kaitiakigroup), shows as a badge in the list, and rescue reads the designation from the IdP.Implementation Decisions
memberorchestrator is the control plane's fourth single-seam orchestrator (pattern:founding→helper,join→agent,provision/update/monitor→control plane). It owns every lifecycle verb and the public signup face; the dashboard UI is thin over its API. Server-side execution buys the 0058 property: a closed browser interrupts nothing (mid-removal included).idpport (ADR 0077). A new internal Go interface over kanidm's runtime API — create person, groups/membership, enable/disable, credential reset tokens. Founding declares clients/system groups/scope maps in Nix; persons and komiti are runtime data and pass only through this port (supersedes the spike-era persons-in-Nix shape). kanidm stays invisible (ADR 0038); the port is the swap-point.forward_authon every browser request to every service, checked against the control plane's auth gate (an OIDC client of kanidm holding the community SSO session). Suspend = IdP disable + gate deny (instant) + reconciler credential-disable (minutes). Client-protocol paths (WebDAV/CalDAV/S3) are declared exempt per port and covered by the credential sweep. Un-suspend reverses the three moves.enrollpublic-face discipline: token-authenticated, nothing strong before approval).Testing Decisions
memberorchestrator through its public interface and assert externally visible outcomes — states, ledger entries, gate decisions, audit records, and the calls made to theidp/port fakes — never internals. A decline is a successful state transition, not an error. Terminal states never move; idempotent re-submission (double-tapped signup, re-sent approve) never duplicates a person.memberorchestrator with fakeidp, fake catalogue-port verbs, in-memory invite/reset ledgers, audit, and gate-state. The member/invite state machines, approval and removal orchestration, and matrix logic run real. The auth gate's decision function is tested at the same seam (given session identity + matrix + deny-list → allow/deny); Caddy wiring itself is not unit-tested here.enroll's state-machine + ledger test family → invite ledger and member state machine (idempotency anchors, terminal-states-never-move, consumed-invite-refuses-reuse, revocation of an in-flight artifact).enroll's approve/decline + crash-resume family → the approval queue (grouped approve-all, decline-is-terminal, resume to the same awaiting-approval row, no duplicates).Out of Scope
Further Notes
Cross-feature edges for the slice-map (Phase 2):
kaitiakigroup.forward_authblock; service rows may display "restricted to ⟨komiti⟩" (display only; the matrix is members-owned).Carried decisions: none new — no
needs_human_decisionitems arose; the §12 leftovers touching members (none directly; escrow/summoning are rescue's and monitoring's) stay where they are routed.Labelled
no-triage(the #17/#18 precedent): the live swarm must not pick this up before the Phase-2 slice-map orders the DAG.filesand member-orbitnextcloudstop naming the same software twice #222Closed in the 2026-08-27
other-state sweep (Ben's ruling) — child spec complete: 17/17 members slices done, all 24 derived tickets closed; invite-member rehearsal leg green 2026-08-26.