--- status: superseded phase: 12-initial-setup-wizard note: ARCHIVED historical record of the original diagnosed UAT run. All 6 gaps closed and re-verified in 12-UAT.md (status complete). Kept for traceability only — not active debt. source: [12-VERIFICATION.md] started: 2026-06-15T19:22:00Z updated: 2026-06-15T19:55:00Z --- ## Current Test [testing complete — 6 issues logged across 3 tests] ## Tests ### 1. Complete the setup wizard end-to-end against a real Fastmail account expected: | Redirect-to-/setup gate fires; Instance step's Save & Validate shows DB + OIDC + VAPID rows all green (needs a reachable Authelia + correct VAPID env); Calendar step validates a real Fastmail app password via live CalDAV PROPFIND; POST /api/setup/complete returns 200; "Setup complete" terminal screen appears. result: issue reported: "Happy path works (CalDAV PROPFIND validates, complete returns 200, 'Setup complete' renders). But along the way: extraneous copy on Instance step (gap 1), invalid VAPID key validates green (gap 2), DB 'verified' row has no on-screen referent (gap 3), and going Back from the Fastmail step loses all entered Instance config (gap 4)." severity: major ### 2. Step-2 validation rows reflect real backend results expected: | With a reachable Authelia and correct VAPID_PUBLIC_KEY/VAPID_PRIVATE_KEY env, the OIDC and VAPID validation rows pass. With a wrong/swapped VAPID key, the VAPID row fails and the Continue button stays disabled (the gap-closure guard — db AND oidc AND vapid). result: issue reported: "for the VAPID Public Key - I put BH123 (clearly not right) and it somehow validated. Is that expected" severity: major ### 3. Setup endpoints lock once complete (423) expected: | After completing setup, re-navigating to /setup shows the "setup already complete" surface, and POST to any /api/setup/* mutating route returns HTTP 423 Locked. result: issue reported: "manually going to /setup showed me the wizard again as if I didnt do it. Not good. Additionally after I got through the wizard the first time and into /calendar, the 'Setup your calendar/Setup now' banner on the top was still in my face and it should not have been" severity: major ## Summary total: 3 passed: 0 issues: 3 pending: 0 skipped: 0 blocked: 0 gaps: 6 ## Gaps - truth: "Instance step intro copy describes only what to enter, without an implementation aside" status: failed reason: "User reported: the sentence 'These are written to the database — not your environment file' should be dropped" severity: cosmetic test: 1 root_cause: "" artifacts: - path: "apps/pwa/src/routes/SetupPage.tsx" issue: "Instance step intro
(line ~556) includes an extraneous DB-vs-env-file aside"
missing:
- "Remove the 'These are written to the database — not your environment file.' sentence"
debug_session: ""
- truth: "A wrong/invalid VAPID public key entered in the wizard fails validation"
status: failed
reason: "User reported: entered 'BH123' (clearly invalid) as the VAPID public key and the VAPID row still validated green"
severity: major
test: 2
root_cause: "POST /api/setup/validate/vapid (apps/api/src/routes/setup.ts:202) validates process.env.VAPID_PUBLIC_KEY/VAPID_PRIVATE_KEY via webpush.setVapidDetails and ignores the form-entered vapid_public_key entirely; the form value is only Zod min(1).max(512) checked before being persisted to app_config. So any non-empty string passes while the env pair is valid."
artifacts:
- path: "apps/api/src/routes/setup.ts"
issue: "validate/vapid checks env keys, never compares against the user-entered vapid_public_key stored in app_config"
missing:
- "Validation must assert the wizard-entered vapid_public_key equals process.env.VAPID_PUBLIC_KEY (or otherwise forms a valid pair with VAPID_PRIVATE_KEY), so a wrong key fails the row and gates Continue"
debug_session: ""
- truth: "The DB validation row has a visible on-screen referent so 'verified' makes sense to the operator"
status: failed
reason: "User reported: 'why does it tell me the database connection is verified? I did not enter it' — clarified: show the DB name as a read-only greyed-out field underneath the APP URL field; with that referent present, keeping the 'db connection verified/failed' message is fine"
severity: minor
test: 1
root_cause: "DB connection is configured via Docker env (DB_HOST/PORT/USER/PASSWORD), not collected in the wizard; validate/db runs a real SELECT 1 but the Instance step shows no field for it, so the 'verified' row appears to reference input the operator never provided"
artifacts:
- path: "apps/pwa/src/routes/SetupPage.tsx"
issue: "Instance step renders a DB validation row with no corresponding (read-only) field showing what is being validated"
missing:
- "Add a read-only, greyed-out/disabled field showing the env-derived DB name, positioned directly underneath the APP URL field on the Instance step; keep the existing DB connection verified/failed validation row as-is"
- "Expose the non-secret DB name to the wizard (e.g. via the setup status/config GET endpoint) so the read-only field can be populated"
debug_session: ""
- truth: "Wizard field values persist when navigating back to a previous step"
status: failed
reason: "User reported: advanced from Instance config to the Fastmail step, went back to retry validation, and lost all entered configuration values"
severity: minor
test: 1
root_cause: "Each wizard step is rendered conditionally ({step === N &&