WIZ-1 onboarding state + /onboarding/should-redirect trigger #691
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "boss/672"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lands the single-row
setuptable, the/onboarding/state|skip|resetHTTP surface, and the SPA bootstrap fetch that bounces a fresh deploy into the wizard after first login.Closes #672
Test plan
bun x turbo run typecheckcleanbun x @biomejs/biome@^2 check .cleanbun x turbo run test— 3028 pass, 0 fail (22 new inonboarding.test.ts, 9 new inmain.test.ts)GET /onboarding/should-redirectreturns{redirect: true}POST /onboarding/skipthen refresh → trigger no-opsCI green (run 2759). All ACs met: schema + 5 endpoints wired + correct auth gating + trigger logic matches spec + SPA guard against onboarding-loop. 22 unit + 9 integration tests pass.
Nit (non-blocking):
GET /onboarding/stateauth is implicitly covered by the global session gate but has no explicit 401 test —GET /onboarding/should-redirecthas one. Fine as-is given CI green.