design: move membership onboarding out of the form and into the app (admin designs it post-setup) #122
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
Reference
Matou/coa#122
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?
Ben (2026-09-04): explore moving the membership-onboarding design from the COA form into the app — i.e. setup admin account → set up the membership onboarding process and screens in-app. Assessment so far says it works and is the better architecture; this ticket is the design pass that turns it into a plan.
Why
apply-kitbakes it into the binary. Onboarding (welcome/pending copy, profile fields/interests/questions, approval mode) is baked in only by accident of the pipeline: today every copy tweak means a new build and five re-downloaded installers. As runtime org config it becomes live-updatable — and it lands where approval is actually enforced (the backend applies the mode at runtime; the form only records a preference).The two problems the design must solve
org-config.jsonon the tenant config server is for. #121 (missingMATOU_CONFIG_SERVER_TOKENin coa apps) is therefore a hard dependency — without the tenant write-token the admin's design can never reach new joiners. Design the fetch path: joiner's app →/<slug>/api/*→ onboarding config → render pre-join screens.Proposed transition: seed-then-editable
The form keeps a slim onboarding step (or defaults), the kit carries onboarding as seed values, and the in-app designer becomes the source of truth after setup. No breaking schema change; existing kits stay valid;
KitSchemamarks onboarding as seed.Deliverable
A design doc + ADR/DDR proposal covering: config shape + where it lives (org state vs tenant mirror), the pre-join fetch path, kit/schema changes (seed semantics), the matou-app designer scope (ticket breakdown for that repo), migration for already-built communities, and the one-way doors flagged for product decision.
Dependencies / siblings
Blocked-by in substance: #121. Siblings: #117 #118 #119 #120, mds #14. matou-app work gets its own tickets out of this design.
Why ready-for-session
Spans coa schema/server, matou-infrastructure (config server), and matou-app UI; produces a cross-repo plan, not code.
Design delivered — routing to human for the product decision.
The #122 design pass is done and on
main(9af9fe9):docs/onboarding-in-app-design.md— the cross-repo plan: onboarding becomes runtime org config, seed-then-editable. Org-config is the source of truth after setup (shape =@coa/schemaOnboardingSchemaverbatim); it's mirrored to the tenant config server and served unauthenticated atGET /<slug>/api/onboardingso a pre-join app renders welcome/info/pending/profile screens. The write rides the #121 / ADR 0008 path (bootstrap token → TOFU-bound org-AID-signed) — so #121 is a hard dependency. The kit keeps onboarding as a seed (apply-kitbakes first-run/offline fallback) with no breaking schema change; existing kits stay valid.docs/adr/0009-design-onboarding-in-app.md— DDR 0009, proposed.onboardingon tenant org-config) / I2 (public pre-join read); matou-app A1 (Onboarding Designer — port the form's Onboarding step, don't redesign) / A2 (pre-join fetch) / A3 (seed→editable + operator gate #120).Ruled two-way-door (ADR 0002) for the two-way part I completed: the design doc + proposed DDR are revertible, and I did not file the implementation tickets or change any contract — mirroring the #120 → #121 flow (file the chain once the DDR is accepted).
Why human
The move's irreversible calls are yours to rule (design doc §7). Relabelling
ready-for-human:coa.matou.nz/apply— ADR 0002 names this aproduct-decision. Accepting DDR 0009 makes it the contract. (You directed the move in #122; this is ratification.)/<slug>/api/onboarding— same content a member sees, but confirm no info-page/custom-question copy is considered internal.On your acceptance of DDR 0009, a follow-up session files the cross-repo chain (as #121's session did). No code changed — docs only.
DDR 0009 accepted by Ben 2026-09-05 (phase-4 brainstorm) with all §7 doors ruled — see the DDR amendment (
docs/adr/0009-design-onboarding-in-app.md) and phase-4 spec §2.1. The ticket chain is now filed: coa C1+C2 landed on main (C1 schema seed note, C2 onboarding step removed — commits dc6b5af/6d4eb9d); matou-infrastructure #14 (I1) → #15 (I2); matou-app #425 (A1) → #426 (A2) → #424 (A3), native deps wired behind the ADR 0008 chain. Closing as delivered.