From 6ae762aece4c8e4bc41fffc6425a7b1144d9982c Mon Sep 17 00:00:00 2001 From: jester Date: Sun, 5 Apr 2026 22:00:07 +0000 Subject: [PATCH] Add provisioning + DB consistency bug to API outstanding and pre-launch checklist --- OPEN_THREADS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OPEN_THREADS.md b/OPEN_THREADS.md index 9996242..eaa5fef 100644 --- a/OPEN_THREADS.md +++ b/OPEN_THREADS.md @@ -147,6 +147,17 @@ Outstanding: - Headscale auth key generation - **Velocity resync endpoint** — `POST /api/velocity/resync` to re-register all running containers after Velocity restart +**Provisioning + DB Consistency (Active Bug — needs audit before launch):** +- Duplicate server creation occurring during single requests +- Inconsistent / failed server termination +- DB state drifting from actual Proxmox + agent state +- BullMQ jobs may be executing more than once — missing deduplication / idempotency keys +- VMID and port allocation not confirmed to be transactionally safe +- Create endpoint not confirmed idempotent or guarded against double execution +- Delete flow not confirmed to handle partial failures (container already gone) +- DNS-based routing must not be used as source of truth — DB is the source of truth +- See `SCRATCH/debug-provisioning-consistency.md` for full audit plan + --- ## Portal (zpac-portal) @@ -233,6 +244,7 @@ Outstanding before launch: - **Billing endpoints** — add back to API - **Stress testing** — k6 IDE session load test + Minecraft bot test + **code-server memory baseline** - **OPNsense audit** — both routers need systematic validation +- **Provisioning + DB consistency audit** — duplicate creation, state drift, BullMQ idempotency - Remove `testdaemon` binary from zpac-portal repo root ---