members: member-list-audit — Members list, never-empty first run, audit trail #42
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#42
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
The Members tab, mounted in shell's dashboard frame, is the resting surface that answers "who belongs and in what state?" Screen P6-S1 lists every member as a row carrying their name, komiti, role (member or operator), and a status pill for their lifecycle state — active, awaiting approval, hasn't signed in yet, or suspended — with a badge on the row of anyone designated kaitiaki. This slice builds that list surface reading over the
memberorchestrator (ADR 0077) and stands up the audit pipeline hook that every later lifecycle verb writes through.The list is never a dead end. On a freshly founded community the first row is the founder — the operator's own person account, seeded by founding as runtime data — carrying the operator role, shown alongside a prominent "Invite people" panel. There is no empty Members screen; the never-empty rule (shell) makes row one the founder just as the Fleet list opens on the gateway.
Every identity action across the whole feature is audit-logged (ADR 0027): a structured entry lands in the standing log pipeline attributed to the acting operator, and member detail drills into that member's own trail, terminating in shell's logs viewer. This slice builds the audit-write seam and the list/detail drill-in entry point; the individual verbs that write to it arrive in their own slices.
Notes: the founder row, the auth-gate OIDC client, the default-open access matrix, and the hidden kaitiaki group are all seeded by founding as runtime data — a data annotation, not a build edge.
Acceptance criteria
Blocked by
Task manifest
Done in commit
ba6921e(sandcastle: members:member-list-audit #42).The
membercontrol-plane orchestrator lands ininternal/member/(ADR 0077 — members single seam), with two faces:Members()joins name/komiti read through theIDPport (kanidm runtime people + groups) with role/status/kaitiaki from the members-owned recordLedger. Each row carries name · komiti · role (member|operator) · a status pill (active / awaiting approval / hasn't signed in yet / suspended) · the kaitiaki badge. The never-empty rule (shell/DDR 0095): a founded community opens on the founder as row one (operator role, seeded by founding as runtime data) with a prominent "Invite people" panel while they are still alone — never a blank screen; a member missing from the idp falls back to the id (never a dead end).Audit(actor, action, subject, detail)stamps a structured, operator-attributed entry into the standing-logAuditSink(unattributed entries refused withErrNoActor, so no lifecycle action lands anonymously);Trail(subject)is the member-detail drill-in (newest-first) that terminates in shell's logs viewer.Acceptance: story 1 (rows across all four states + kaitiaki badge), story 2 (fresh community → founder row one + prominent invite panel, never empty), story 31 (structured operator-attributed audit entry + member trail drill-in) — each is a Given/When/Then seam test.
Evidence: 5 seam tests in
internal/member/member_test.goover a fakeIDP+ in-memoryLedger+MemoryAuditSink+ fake clock;go build/go vet/gofmt/golangci-lintall clean. STATUS.md updated in the same commit.Out of scope (own slices): the lifecycle verbs themselves, the invite ledger, a member self-service account page.