Child spec: files-member — the member lands in files by claim alone (DDR 0173) #514
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#514
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) — feature: files-member (FM). Child spec for #366 ("files: the member sign-in journey — a non-admin kanidm identity lands in Nextcloud", the drive-arc spec's named follow-up), carried through the design tier in auto-accept mode at Ben's instruction (2026-08-14) — decisions are AGENT-DECIDED (the shell/monitoring/P4b precedent); Ben signs off the gates on the finished artifacts: DDR 0173 (the member lands in files by claim alone). Standing on: ADR 0150 (files consumes kanidm OIDC; operator is admin), ADR 0076 (access matrix + Tier 1 claim-native role mapping), ADR 0074 (suspension's three moves), DDR 0158 (the files door lands on the IdP), DDR 0172 (the gate-served refusal surface — spec #511).
Design contract:
docs/ux/flows/files-member.mermaid+docs/ux/wireframes/files-member/(FM-S2x; DA-S1/DA-S2x and members' P6-S5 referenced, not duplicated; Nextcloud's Files home is an external door — linked, never drawn). CONTEXT.md holds the vocabulary: Files member journey (FM) — door outcomes.Problem Statement
Everything proven live signs in the operator: ADR 0150's drive asserts the admin landing, occ-verified. A plain member — the person the community actually exists for — has a sign-in path that merely happens to exist via
user_oidcdefaults: nobody has decided what their first sign-in provisions (username, display name, groups, quota), what a member who shouldn't be there sees (awaiting approval, suspended, komiti-restricted), or asserted that a member can never land an admin session. An unasserted default on the community's most-used door is a defect waiting to be discovered by a member.Solution
The member lands in files by claim alone. An active member opens the files door, lands straight on the community sign-in (DDR 0158), and their first sign-in creates their files account from the OIDC token — username, display name, komiti as groups — never an admin session, never a reconciler pre-creation, no quota surface in v1. Waiting and suspension are enforced at the IdP (no new gate); a komiti-restricted member on the public path gets the branded gate-served refusal with files copy ("Files isn't open to you"), and the private path's un-enforced matrix is a stated limit, never silently claimed. A member-tier drive leg asserts the whole journey through the surfaces a member actually touches.
User Stories
As an active member, I want opening the files door to land me on the community sign-in, so there is one sign-in surface everywhere.
files.<apex>, then the door lands straight on the community IdP's branded sign-in (DDR 0158 — no Nextcloud login screen), and a completed sign-in returns them into Files.As an active member signing in for the first time, I want my files account created from my community identity alone, so there is nothing to set up and no second account.
As a komiti member, I want my komiti to exist as groups in files, so sharing with my committee just works.
groupsclaim into a matching Nextcloud group (ADR 0076 Tier 1 — the same claim machinery ADR 0150 built for files-admin, widened past the admin group).As a community, I want a plain member to never land an admin session, so the operator/member boundary holds inside the app too.
As a returning member, I want revisits to be silent, so files feels like mine.
As an awaiting-approval member, I want the door to not half-work, so approval means something.
As a community, I want a suspended member's files access to die with the suspend, so the one-switch promise holds on the busiest door.
As a member whose komiti don't open files, I want an honest branded refusal, so a closed door still speaks in my community's voice.
refusal-line"Files isn't open to you.",signed-in-identity,what-it-meansnaming the komiti rule, doorsopen-portal+sign-out,data-status="refused-service") — never raw JSON, never Nextcloud's own error.As an operator on the private path, I want the un-enforced matrix said honestly, so I never believe a restriction that isn't real.
As a community, I want
ocadminto stay out of every member journey, so the reconciler credential never becomes a login.ocadminis never used to authenticate a browser session (ADR 0150's demotion holds).As an operator, I want the member tier proven by the drive, so "members can sign in" is an assertion, not a hope.
As a member, I want the closed-door surfaces to wear my community's brand, so even refusal is ours.
Implementation Decisions
groupsclaim past files-admin so komiti flow as Nextcloud groups; display name mapped; group provisioning stays on; username derivation from the token pinned by test. No reconciler pre-creation; no quota configuration in v1 (Nextcloud's default rides; storage governance is a future slice).Testing Decisions
Test external behaviour at existing seams; the ideal remains the fewest, highest seams:
admin. Prior art: the existing files render /renderNextcloudOIDCseam tests (ADR 0150's suite).A good test asserts what a member's browser observes and what occ reports — never
user_oidcinternals.Out of Scope
Further Notes
swarm-claim host=matou-dev-server-01 run=5966
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #514 — status
blocked✅ close-report gates passed — every claim verified against main; closing.
envelope