ManiCandles/docs/RELEASE-CHECKLIST.md

42 lines
4.2 KiB
Markdown

# Phase 2 release checklist
Production release is blocked until the environment checks below pass. Local implementation verification does not replace authenticated UAT or deployment acceptance.
## Code gates
- [x] Purpose-built customer and administration routes, with session/permission guards.
- [x] Exact decimal display, strict write inputs, validated response shapes.
- [x] Private caches and requests cleared on logout, expiry, organization change and permission downgrade.
- [x] Stale responses cannot invalidate a newer session or remove its pending command.
- [x] Cart writes serialize locally; stale versions require review.
- [x] Checkout confirmation uses the reviewed version; unknown results retain the same payload/key across navigation.
- [x] Adjustment/reservation intents stay in session memory for exact retries; session termination discards them.
- [x] Order charges use authoritative server totals; null means unfinalized, not zero; payment collection stays unavailable.
- [x] Recovery tokens captured once in memory and removed from browser history; never persisted or logged.
- [x] Destructive lifecycle actions have confirmation; system/owner/self restrictions remain enforced by the backend.
- [x] Strict TypeScript, lint without warnings, all tests passing, build below the 500 kB per-chunk budget.
- [x] Dependency audit has no reported vulnerabilities.
- [x] CI runs dependency audit and npm run check on pushes/PRs; Docker validates Nginx syntax during build.
- [x] No new type/lint suppressions, skipped tests, debug logging or source credentials.
## Environment and acceptance gates — pending
- [ ] Provision the installation owner on the intended UAT backend host/database; record organizationId. Never run local bootstrap against an unknown database.
- [ ] Provision least-privilege UAT staff and customer accounts, including denied/suspended accounts and independent reviewer roles.
- [ ] Exercise actual catalog/group/variant creation and publication, warehouse opening stock, private address/cart, coupon and checkout/order journeys against the deployed backend.
- [ ] Verify cross-account privacy, revoked sessions, changed permissions, concurrent carts, stock contention, duplicate retries and order expiry in live UAT.
- [ ] Configure approved pricing policies and SMTP; verify recovery delivery and one-time token expiry/reset.
- [ ] Build/run the container and test /workspace, /cart, /admin/catalog deep links; inspect CSP, certificate verification and /api health responses.
- [ ] Verify HTTPS ingress, HSTS, trusted proxy/rate-limit policy and deployment secrets. Nginx forwards /api over verified HTTPS; frontend does not change backend trust-proxy policy.
- [ ] Test complete populated screens in browsers at 320/768/1024/1440 widths; full keyboard/dialog/screen-reader/contrast checks and deployed axe/Lighthouse runs.
- [ ] Verify production Core Web Vitals, expected traffic, infrastructure logs/alerts and privacy-safe client error collection. APPLICATION_RENDER_FAILED is the safe local render diagnostic; API requestId correlates service errors.
- [ ] Confirm remote CI passes, observe deployment health/error/latency metrics, rehearse rollback, and obtain owner sign-off.
## Rollback
Record the active and previous build/commit release IDs before rollout. The SSH deployment restores the previous release automatically when its HTTPS checks fail. Follow the [static deployment runbook](STATIC-DEPLOYMENT.md) for manual rollback, then verify health, SPA deep links and /api connectivity. Retain orders, stock ledgers and accounts. Confirm the actual host procedure and measured rollback time in UAT before production. A feature-branch push does not deploy the main-branch pipeline.
## Operational limits
Pending intents exist only within the active browser session; reloading signs out and discards them. After interruption, inspect orders or the stock ledger before beginning a new intent. The backend currently has no live gateway/carrier or contact delivery; customer self-registration is available. Staff catalog/role writes follow the backend's existing concurrency policy; coordinate overlapping administration edits. Never reinterpret finalized merchandise as proof of payment or fulfillment.