members: suspend — one switch, instant at the front door, honest two speeds #75
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#75
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
Suspend is one switch on member detail (P6-S4 → S1) that pauses a member everywhere, and it bites instantly at the community's front door regardless of app-session luck (ADR 0074). Flipping it runs three moves: the IdP disables the account, the gateway's auth gate denies the member's very next browser request to any service, and the reconciler disables their non-OIDC (client-protocol) app credentials within minutes. The copy is honest about the two speeds — "paused at the community's front door immediately; background app access (sync clients) within minutes" — and never claims instant for the client-protocol tail. Un-suspend is the same switch back: the three moves reverse (IdP enable, gate allow, credentials re-enabled) and the member returns to active, so a pause is genuinely reversible.
The auth gate is the control plane's OIDC client holding the community SSO session; suspend's fast path writes through the gate-state deny projection. All three moves and the reversal are audit-logged (ADR 0027).
Notes: suspending a member who holds a recovery share surfaces the share-holder warning (ADR 0015) — advice, never veto. That warning reads rescue's holder state at runtime and only renders when shares exist; it is a runtime read, not a build edge, and its wiring rides with the removal-fates slice's warning treatment.
Acceptance criteria
Blocked by
Task manifest
Done in commit
2b8cd37(internal/member/suspend.go+suspend_test.go).The
memberorchestrator's suspend/un-suspend face (ADR 0074) — one switch, three moves, honest two speeds, reversible:Suspend(actor, personID)(stories 18/19): runs the three moves behind one switch —idp.DisableAccount(no new logins/token refresh) → the newAuthGate.Denywrite-through deny projection (the member's very next browser request to any service is denied fleet-wide, asserted via theNextRequestDenied(sessionIdentity)seam hook modelling the gateway forward_auth check) → the newReconciler.DisableCredentialscatalogue-port verb (the non-OIDC client-protocol tail, within minutes) — then marks the member suspended and audit-logs it (ActionSuspend).Unsuspend(actor, personID)(story 20): the same switch back — IdP enable + gate allow + credentials re-enabled → active, audited (ActionUnsuspend). A pause is genuinely reversible (⇄ active).SuspendCopyon the detail control (story 19): "paused at the community's front door immediately; background app access (sync clients) within minutes" — never claims instant for the client-protocol tail. The control is a live active↔suspended toggle (Suspend when active, Un-suspend when suspended).ErrCannotSuspend/ErrNotSuspended) and for unknown members (ErrNoSuchMember). Theidpport grewDisableAccount(disable-not-remove, so suspension is reversible).Evidence: 10 new seam tests over a fake
idp/auth-gate/reconciler + in-memory member ledger + audit sink;go test/go vet/gofmt/golangci-lintclean across the module.Out of scope (untouched): removal & per-service fates, the matrix decision function, Caddy forward_auth wiring itself, the share-holder warning wiring — their own later slices.