Skip to main content

Master Release Gates & Framework

To ensure the production release of Flour n Sugar MVP 1 delivers an exceptional user experience while keeping engineering velocity high, release readiness is governed by 10 Hard Release Gates, a prioritized MoSCoW Framework, and an end-to-end Traceability Matrix.


The 10 Hard Release Gates​

Before MVP 1 is deployed to production, every item in this table must be fully satisfied and signed off. A failure in any one of these 10 gates constitutes an automatic release blocker:

GateCritical RequirementAcceptance Verification CriteriaOwnerStatus
1. 🔐 Auth & IdentityEmail/password, Google OAuth, session refresh, and password reset work flawlessly in production.Clean test signups, session persistence across tabs, rate-limited auth endpoints.Auth LeadREADY
2. 👤 Tenant IsolationStrict authorization boundaries prevent Store A from accessing or mutating Store B's resources.Automated IDOR and multi-tenant security regression tests passing with 0 vulnerabilities.SecOpsREADY
3. 🏪 Store OnboardingA baker can complete or resume setup, optionally add products, preview, and publish a storefront.End-to-end user testing on both mobile and desktop without manual DB intervention.ProductREADY
4. 🛍️ Catalog ManagementProducts, categories, images, prices, and Indian units (KG, g, pcs) create and display correctly.Full CRUD testing across 10 sample bakery menus with varied price variants.QA LeadREADY
5. 💬 WhatsApp LinkageClick-to-chat opens with pre-filled context (product, variant, price, storefront URL).Verified on iOS WhatsApp, Android WhatsApp, and WhatsApp Web.GrowthREADY
6. 📍 Local DiscoveryGeolocation detection and manual city/locality searches return accurate nearby bakers.Tested across multiple test coordinates (Lucknow central, outer ring, no results fallback).BackendREADY
7. 📱 Mobile First QAStorefronts and discovery browse smoothly on 320px–414px mobile viewports without horizontal scrolling.Responsive QA passed on iOS Safari and Android Chrome.FrontendREADY
8. 🗄️ Database IntegrityPostgreSQL migrations executed, connection pooling configured, automated daily backups active.Test restoration from an automated database snapshot successfully completed.DevOpsREADY
9. 🚨 ObservabilitySentry error monitoring captures uncaught exceptions; structured logs emit request IDs.Deliberately triggered test error captured in dashboard with stack trace.SRE LeadREADY
10. 🔄 Disaster RollbackImmediate deployment rollback procedure documented and rehearsed on staging.Automated CI rollback tested on staging environment within < 3 minutes.DevOpsREADY

MoSCoW Prioritization Framework​

To prevent the classic problem where a production checklist endlessly delays launch, all release items across the platform are categorized into four clear priority statuses:

┌─────────────────────────┐
│ Must Have (P0) │ -> Non-negotiable release blockers (The 10 Gates). Cannot launch without.
├─────────────────────────┤
│ Should Have (P1) │ -> Critical improvements targeted for Day 1–3 post-launch hotfixes.
├─────────────────────────┤
│ Nice to Have (P2) │ -> Quality-of-life enhancements scheduled for MVP 1.1 sprint.
├─────────────────────────┤
│ Post-MVP (P3) │ -> Deferred to Phase 2 (Native Ordering, Payments, Delivery).
└─────────────────────────┘

Traceability Matrix Architecture​

To connect documentation directly to engineering implementation and automated test suites:

Requirement ───> Module Code ───> Automated Test ───> Production Check ───> Gate Status
Requirement IDModule / ComponentPrimary Source PathAutomated Test SuiteProduction Gate
REQ-AUTH-01User Authentication & Sessionsapps/web/auth/*auth.test.tsGate 1 (Auth)
REQ-AUTH-02Multi-Tenant Authorization Guardmiddleware.ts, api/store/*tenant-guard.test.tsGate 2 (Isolation)
REQ-STORE-01Store Onboarding Wizardcomponents/onboarding/*onboarding.spec.tsGate 3 (Store)
REQ-CAT-01Catalog CRUD & Indian Unitscomponents/catalog/*catalog-units.test.tsGate 4 (Catalog)
REQ-CHAT-01WhatsApp Context Deep Linkslib/whatsapp.tswhatsapp-link.test.tsGate 5 (WhatsApp)
REQ-GEO-01Geolocation & Radius Queryapi/discovery/nearbyhaversine.test.tsGate 6 (Discovery)
REQ-RESP-01Mobile Responsive Layoutscomponents/storefront/*playwright/mobile.spec.tsGate 7 (Mobile)
REQ-DATA-01PostgreSQL Schema & Migrationprisma/schema.prismamigration.test.tsGate 8 (Database)
REQ-OBS-01Sentry & Structured Logginglib/logger.ts, sentry.configsentry-ping.test.tsGate 9 (Observability)
REQ-REL-01Vercel Rollback & Healthcheck.github/workflows/deploy.ymlhealthcheck.spec.tsGate 10 (Rollback)

Release Sign-Off Protocol​

Release to production requires formal sign-off from three leads:

  1. Engineering Lead: Verifies Gates 1, 2, 8, 9, 10 (Auth, Multi-Tenancy, Database, Observability, Rollback).
  2. Product Lead: Verifies Gates 3, 4, 5, 6, 7 (Onboarding, Catalog, WhatsApp, Discovery, Mobile UX).
  3. Operations & QA Lead: Verifies end-to-end regression test pass rate (100% of P0 tests passing).