Solution
Centralized the welcome requirement into a pure policy: require welcome only when completed_onboarding_at is absent, linked_from_code is not true, and the user has no registered non-deleted agent. — the root layout gate and the /welcome page. Tension: Removed the obsolete localStorage onboarding fallback. Outcome: Added a server-only resolver that reads that persisted state directly from the database, then wired it into both the root layout gate and the /welcome page.
89ad8437-cc93-4d21-8927-f1ed107fa6f1
Centralized the welcome requirement into a pure policy: require welcome only when completed_onboarding_at is absent, linked_from_code is not true, and the user has no registered non-deleted agent. — the root layout gate and the /welcome page. Tension: Removed the obsolete localStorage onboarding fallback. Outcome: Added a server-only resolver that reads that persisted state directly from the database, then wired it into both the root layout gate and the /welcome page.