S T R E A M   3  ·  P L A T F O R M  /  T E C H  ·  C O P I L  # 3

How We Build
the Maison

Four sections: backlog, methodology, stack, and what we need to start.


45 Items. 6 Business Milestones.

Extracted from existing documents — Fabrice's spec, the kickoff, the copils, the solution brief. Organized by business milestones. To be validated together, not presented as final.

1

First Revenue

Can SGTM employees order merch with credits?
11
items
2

Scalable Operations

Can the team run this without the CTO?
4
items
3

Multi-Client + Proof

Second client + numbers for investors?
5
items
4

Retention Engine

Do clients come back without us pushing?
4
items
5

Expansion

Beyond corporate? Can design scale?
9
items
6

Category Creation

Full-service business with a data moat — or just a store?
12
items

Sizing and sprint assignment are not done yet — that requires a working session together.

Milestone 1 — What the MVP Delivers

An SGTM employee logs in, browses the branded catalog, selects a variant, previews the customization, pays with Zai Coins, and places an order. Zai handles design, production, and delivery behind the scenes.
In Scope
  • SGTM branded storefront
  • Product catalog with collections
  • Credits system (Zai Coin)
  • Basic personalization + simulation preview
  • Order flow (cart → checkout → confirmation)
  • Employee profiles + transactional email
  • Design system from day one
Not in MVP
  • Admin dashboard (DB is fine for one client)
  • Card payment (credits only)
  • Bilingual (French only for now)
  • Fulfillment tracking
  • Analytics dashboard

Two Systems

A backlog tracks what needs to be built. Sprints deliver it in 3-week cycles. The backlog is the list. The sprint is how items from that list become working software.

BACKLOG Branded storefront Credits system Order flow Admin dashboard Order tracking Second client …37 more items HIGH LOW PULL SPRINT — 3 WEEKS WEEK 1 Build WEEK 2 Build + Test WEEK 3 Iterate + Deliver SPRINT CARD Primary: Branded storefront (M) Secondary: Credits system (S) DEMO GATE REVIEW Go → Iterate ↻ Stop ■ NEXT ITEMS FROM BACKLOG

What a Backlog Item Looks Like

R3 Credits System (Zai Coin) FIRST REVENUE BUILD SIZE TBD WHAT IT DOES Employee wallet: balance display, transaction history, spend flow at checkout. Credits pre-loaded by admin via DB. Deducted at order confirmation. WHY IT MATTERS Credits are the revenue model. No credits system = no transactions = no business. Validates the Zai Coin concept before adding card payments or complex allocation. FEASIBILITY Data available? Yes — credit amounts defined by client Integration needed? None — internal ledger Custom code? Medium — wallet + checkout SUCCESS CRITERIA Employee checks balance → selects product → pays with credits → balance updates → confirmation DEPENDENCIES F2 Auth framework R7 Employee profiles PRIORITY Impact 5/5 Feasibility 4/5 → High impact, dependencies met early

Each of the 45 items follows this structure. Size (S/M/L/XL) determines how much sprint capacity it takes. The success criteria is how we know it's done — a real scenario on real data, not a checklist.

3 Weeks. Fixed Deadline. Scoped Deliverable.

Every sprint has a deadline, a scoped deliverable, and a decision at the end.

Week 1
Build

The team works on the agreed scope.

Week 2
Build + Test

Deliverable is functional. Quick check with the sprint sponsor. First real-world testing begins.

Week 3
Iterate + Deliver

Feedback integrated. Testing on real data. The sprint ends with a 30-minute gate review.

Scope Hammering

If something doesn't fit, we cut scope — never extend the deadline. "What's the smallest version that creates real value?"

Sprint Cards

Before each sprint, a card states what will be delivered and why. The sprint sponsor confirms before work begins.

A Decision Every 3 Weeks

Stakeholders see real work on real data and make a Go / Iterate / Stop decision at every gate.

What a Sprint Card Looks Like

Sprint 1 — First Revenue 3 WEEKS PRIMARY SGTM Branded Storefront + Credits Checkout M → Demoed at gate: an SGTM employee browses, selects, pays with credits, places order SECONDARY Employee Profiles + Transactional Email S → Fits alongside the primary. Signup, login, order history, confirmation emails. DISCOVERY Simulation preview approach — static image swap vs dynamic render? Test with 3 SGTM products. M + S = Standard

The sprint sponsor reviews and confirms the card before work begins. This is the contract for the sprint — what we commit to delivering and demoing at the gate.

Gate Reviews

Go

It works. Move to the next backlog item.

Iterate

Right direction, needs more work. Next sprint refines.

Stop

Priorities changed. Deliberate redirect.

30-minute demo on real data. Sprint sponsors make the decision.

Governance: Two Rhythms

Every 3 Weeks
Sprint Gate

Tactical. Demo + decision. Sprint sponsor attends. Go / Iterate / Stop. Confirm the next sprint.

As Needed
Copil Stratégique

Strategic. Reprioritize, resolve cross-stream dependencies, course-correct. Full leadership.


The Stack

Zai is not a platform — it's a full-service offering: design, production, and delivery. The platform is the tech layer that powers it. Credits-based, design-led, white-label per client. The stack choices follow from that.

Layer Decision vs. Spec
Frontend Next.js + TypeScript + Tailwind CSS Agreed
Backend Payload CMS 3.0 + custom logic Different Not Medusa
Database Supabase (PostgreSQL + RLS + pgvector) Agreed
Auth Auth0 (Organizations for multi-tenant) Added
Payments Credits only for MVP → Stripe + CMI later Deferred
Storage Cloudflare R2 + Image Resizing Different Not Cloudinary
Hosting Railway (app) + Cloudflare (CDN) Different Not Vercel
Monitoring Sentry (errors) + PostHog (analytics + flags) Agreed + PostHog
Project Mgmt Linear (sprints, backlog, stakeholder visibility) Added
Design System Tailwind + custom Zai component library Added Missing from spec

Build the Soul. Buy the Plumbing.

Next.js Payload CMS + Supabase Auth0 Cloudflare Railway + PostHog Sentry Linear Resend

One TypeScript codebase. One deployment. Payload handles the e-commerce plumbing (catalog, admin panel, media, multi-tenant) without constraining the model. Credits, engagement, and intelligence are custom logic alongside it. Python microservice added when AI features arrive at Milestone 5.

Why Not Medusa (or Saleor)?

Both are commerce frameworks built for standard e-commerce: products, carts, orders, card payments. Zai's credits system, multi-tenant white-labeling, engagement workflows, simulation renders, and cross-client intelligence don't map to that model. Payload gives the catalog and admin plumbing without imposing a commerce opinion on the rest.

MVP Infrastructure
~1,300 MAD/mo
~€120/mo. 1-2 clients. Most services on free tiers.
Growth (5-15 clients)
~4,200 MAD/mo
~€380/mo. <1% of revenue at 5 clients.

Lock Sprint 1 Scope

Before building starts: a focused session together to size the backlog items and define what goes into Sprint 1.

Sprint 0
Setup
~1 week
Sprint 1
SGTM Live
3 weeks
Gate Review
Go / Iterate / Stop
Week 4

Sprint 0 + Sprint 1 = ~4 weeks to first delivery.
SGTM's branded store, live, with credits, handling real orders. Zai handles the rest — design, production, delivery.