design: move membership onboarding out of the form and into the app (admin designs it post-setup) #122

Closed
opened 2026-09-04 10:43:39 +00:00 by ben · 2 comments
Owner

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

  • The form's two halves have different natural lifetimes. The brand kit (colours/logo/name) genuinely belongs at build time — apply-kit bakes 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).
  • Composes with the relationship-first arc: shorter form (#117/#118), build after the whakawhanaungatanga session (#119), and the admin doing this post-setup is exactly the "community operator" moment (#120).

The two problems the design must solve

  1. Pre-join chicken-and-egg. A not-yet-member needs the welcome/pending screens before they can read org state, so the onboarding config must be mirrored somewhere publicly fetchable — which is what org-config.json on the tenant config server is for. #121 (missing MATOU_CONFIG_SERVER_TOKEN in 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.
  2. The admin UI in matou-app. An onboarding-designer (copy, profile questions, approval mode). The form's Onboarding step already defines the exact shape — port it, don't redesign. Approval-mode changes at runtime should be operator-gated (ties to the #120 credential).

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; KitSchema marks 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.

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 - The form's two halves have different natural lifetimes. The **brand kit** (colours/logo/name) genuinely belongs at build time — `apply-kit` bakes 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). - Composes with the relationship-first arc: shorter form (#117/#118), build after the whakawhanaungatanga session (#119), and the admin doing this post-setup is exactly the "community operator" moment (#120). ## The two problems the design must solve 1. **Pre-join chicken-and-egg.** A not-yet-member needs the welcome/pending screens before they can read org state, so the onboarding config must be mirrored somewhere publicly fetchable — which is what `org-config.json` on the tenant config server is for. **#121 (missing `MATOU_CONFIG_SERVER_TOKEN` in 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. 2. **The admin UI in matou-app.** An onboarding-designer (copy, profile questions, approval mode). The form's Onboarding step already defines the exact shape — port it, don't redesign. Approval-mode changes at runtime should be operator-gated (ties to the #120 credential). ## 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; `KitSchema` marks 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/schema OnboardingSchema verbatim); it's mirrored to the tenant config server and served unauthenticated at GET /<slug>/api/onboarding so 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-kit bakes first-run/offline fallback) with no breaking schema change; existing kits stay valid.
  • docs/adr/0009-design-onboarding-in-app.md — DDR 0009, proposed.
  • Ticket breakdown (described in §5, ready to file): coa C1 (schema seed note) / C2 (slim form step, coordinate #118); matou-infrastructure I1 (accept/store onboarding on 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).
  • Migration (§6): already-built communities need no data migration (runtime precedence = fetched-block → baked-seed); getting the designer code to them is a normal version bump + rebuild.

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:

  1. The move is a form-contract change. Slimming/removing the form's Onboarding step changes what communities see on coa.matou.nz/apply — ADR 0002 names this a product-decision. Accepting DDR 0009 makes it the contract. (You directed the move in #122; this is ratification.)
  2. Runtime approval-mode change = trust posture. Proposal: gate it on the community-operator credential (#120). Your ruling on the gate.
  3. Public exposure of the onboarding block at /<slug>/api/onboarding — same content a member sees, but confirm no info-page/custom-question copy is considered internal.
  4. Migration stance — proactively rebuild live communities to ship the designer (real builds / spend), or let each pull it on its next rebuild.
  5. Sequencing — nothing here ships before the #121 / ADR 0008 chain lands.

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.

**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/schema` `OnboardingSchema` verbatim); it's mirrored to the tenant config server and served **unauthenticated** at `GET /<slug>/api/onboarding` so 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-kit` bakes first-run/offline fallback) with **no breaking schema change**; existing kits stay valid. - **`docs/adr/0009-design-onboarding-in-app.md`** — DDR 0009, **proposed**. - Ticket breakdown (described in §5, ready to file): coa **C1** (schema seed note) / **C2** (slim form step, coordinate #118); matou-infrastructure **I1** (accept/store `onboarding` on 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). - Migration (§6): already-built communities need **no data migration** (runtime precedence = fetched-block → baked-seed); getting the designer *code* to them is a normal version bump + rebuild. 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`: 1. **The move is a form-contract change.** Slimming/removing the form's Onboarding step changes what communities see on `coa.matou.nz/apply` — ADR 0002 names this a `product-decision`. Accepting DDR 0009 makes it the contract. (You directed the move in #122; this is ratification.) 2. **Runtime approval-mode change = trust posture.** Proposal: gate it on the community-operator credential (#120). Your ruling on the gate. 3. **Public exposure of the onboarding block** at `/<slug>/api/onboarding` — same content a member sees, but confirm no info-page/custom-question copy is considered internal. 4. **Migration stance** — proactively rebuild live communities to ship the designer (real builds / spend), or let each pull it on its next rebuild. 5. **Sequencing** — nothing here ships before the #121 / ADR 0008 chain lands. 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.
Author
Owner

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.

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.
ben closed this issue 2026-09-06 00:00:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/coa#122
No description provided.