members: join-approval — branded signup, waiting, approve/decline over OIDC #64
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.
Blocks
Depends on
Reference
Matou/idss#64
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
Feature spec: #19 (members).
What to build
This slice makes the whole two-sided gated door work: a member joining on their own phone, and an operator letting them in. Opening a live invite loads a branded signup screen (P6-S2 → S3) that carries the community's brand, asks the member's name, and offers a passkey — recommended, never required — with a password fallback. Submitting creates the account and lands the member on the branded waiting screen (P6-S3 → S5): account created, waiting for approval, no service open yet, a single-use invite now consumed, and a "check again" affordance that polls their state. The public signup face is a public endpoint of the same control plane, following enroll's public-face discipline (token-authenticated, nothing strong before approval); the branded screens are supplied via the brandkit seam.
On the operator's side, pending people appear in the Members list grouped by the invite that admitted them, each pending row naming its invite (P6-S1). Approving a member (S5 → S1) propagates their one account to every service over OIDC — no per-app accounts — so their next check or sign-in succeeds everywhere their komiti open. Approve-all on an invite's group turns a 40-person hui into one action, with each approval audit-logged individually. Decline is terminal and tidy: the account is removed, the invite stays consumed, any reason the operator optionally records lives only in the audit log, and no member row remains; the member's waiting screen resolves to a branded not-approved state (S5 → S5x) with no reason shown and their credential stops working — a retry needs a fresh invite.
A dead invite is honest but never an accusation: opening one that is expired, revoked, or used up (S2 → S3x) shows a single branded screen that never distinguishes which way it died, with no retry and no sign-in link. Unhappy ends never leak reasons (DDR 0073).
Acceptance criteria
Blocked by
Task manifest
brandkitpackage + golden corpusDone —
members:join-approvalshipped in commit6371c74on branchsandcastle/worker/20260725-080448-bd37b7.The
memberorchestrator's two-sided join-approval face lands ininternal/member/(control-plane Go seam, ADR 0077 / DDR 0073):Public signup face (enroll's public-face discipline — invite token authenticates, nothing strong before approval):
OpenSignup(token)→ brandedSignupScreen(P6-S3): community brand via a newBrandport over the brandkit seam, asks the member's name, offers a passkey (recommended, never required) with a password fallback — story 7.SubmitSignup(token, submission)→ consumes the invite via the existingAdmit, creates the one account throughidp.CreatePendingPersondisabled (account created, no service opens yet), landing an awaiting-approval row that names its invite; idempotent on the submission'sRequestID(a retry resumes the same row, never a duplicate, never a second invite use) — story 8 + resume/idempotency family.CheckState(personID)→ the "check again" poll: awaiting-approval → approved | not-approved — stories 8 & 11.DeadInviteScreen()→ one honest branded screen that takes no invite so it structurally cannot say which way it died; expired/revoked/used-up/unknown all refuse uniformly withErrInviteClosed, no retry, no sign-in link — story 10.Operator approval gate (attributed + audit-logged, terminal states never move):
Approve→ OIDC propagation viaidp.EnableAccount, next sign-in succeeds everywhere — story 9.ApproveInviteGroup→ the hui approve-all: one action, each approval audit-logged individually — story 13.Decline→ terminal & tidy:idp.RemoveAccount(credential stops working), invite stays consumed, no member row remains, any reason lives only in the audit log — stories 11 & 14.MembersViewgrewPending []PendingGroup— awaiting rows grouped by the invite that admitted them, each naming its invite with approve-all — story 12.Seam plumbing:
idpport +FakeIDPgrewCreatePendingPerson/EnableAccount/RemoveAccountwith enabled + credential tracking and aCanSignInhook; newBrandport +FakeBrand;MembergrewInviteID+SignupKey,LedgerStategrewSeq.Evidence: 14 new seam tests in
internal/member/signup_test.go(one per acceptance clause 7–14 plus the idempotent-re-submit / terminal-states-never-move / consumed-invite-refuses-reuse families).go build/go vet/gofmt/golangci-lintall clean across the module. STATUS.md updated in the same commit.Out of scope (later slices, untouched): member detail/reset/suspend/remove, outbound member notifications, self-service reset.