docs: Validated and recorded the live API/auth preflight gate, includin…

- ".gsd/milestones/M001/slices/S06/tasks/T01-SUMMARY.md"
- "scripts/s06-preflight.sh"
- "scripts/s06-preflight.test.sh"
- "README.md"

GSD-Task: S06/T01
This commit is contained in:
2026-03-27 08:57:22 +01:00
parent bdc47dde7f
commit b1b37fb3e5
5 changed files with 139 additions and 30 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
**Demo:** After this: The real M001 environment runs without the current backend/frontend CORS/runtime blockage, and the full `/jobs` → workspace → Gmail continuity → follow-up → dashboard/reminders loop is re-checked live with recorded acceptance results.
## Tasks
- [ ] **T01: Add preflight gate for live API/auth readiness** — Build a repeatable preflight script and doc so environment blockers are caught before browser UAT.
- [x] **T01: Validated and recorded the live API/auth preflight gate, including README runbook guidance and negative-path shell coverage.** — Build a repeatable preflight script and doc so environment blockers are caught before browser UAT.
- Why: avoid the ERR_CONNECTION_REFUSED/CORS/auth mismatch that currently blocks the UI.
- Steps:
1) Create `scripts/s06-preflight.sh` (bash, executable) that assumes backend already started; probes `/api/auth/config` and `/api/admin/system` on `http://localhost:5202/api`, printing database/auth/gmailConfigured/ai status and failing fast on unreachable endpoints.