mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
Persists per-step progress with strict order enforcement: submitted step must equal current+1, step 4 flips onboardingCompletedAt and clears the hl_onboarding proxy cookie. Re-reads the fresh User row to defend against tab-race conditions, audit-logs every transition, and caps writes at 30 per 10 min per user to defang stuck-retry loops. 409 on out-of-order, 409 on already-completed, 422 on payload validation failure, 429 on rate limit.