STRATEGY BUNDLEv232.0 DARK

Alliance Command OS

Path to 100% Certification, Micro-Service Convergence & Tactical Action Sheet. Prepared for Jonathan.

WEEK 1 RUNTIME50%
WEEK 2 RUNTIME0%

Week 1 — Unblock System

Exit criteria = Gate A: Live revenue, workers online, auth-bypasses killed

50% DONE

Commit & deploy the 191 uncommitted files

Day 1Owner: JonathanEst: 0.5h

Delete src/app/api/dev/ (3 bypass routes) + dev-bypass page

Day 1Owner: AntigravityEst: 0.5h

Sync version.ts ↔ package.json

Day 1Owner: AntigravityEst: 0.25h

Register both Stripe webhooks (2 secrets) + verify signatures

Day 1–2Owner: JonathanEst: 1.0h

Confirm DATABASE_URL, CI, Redis env present in Vercel

Day 2Owner: JonathanEst: 0.5h

Apply RLS on quotes (+ audit cortex_events and peers)

Day 2Owner: Claude+AntigravityEst: 2.0h

Boot the 14 PM2 workers / deploy the worker service; drain queue

Day 2–3Owner: JonathanEst: 1.5h

Fix /client-portal hardcoded demo-tenant → real API

Day 3Owner: AntigravityEst: 2.0h

Audit 4 n8n workflows; route payment_intent_manager through CommitGate

Day 3–4Owner: Claude+AntigravityEst: 3.0h

Verify Gate A: smoke Quote→Arbiter→ledger and Checkout→Stripe flows

Day 5Owner: Claude+AntigravityEst: 2.0h

Week 2 — Converge & Shrink

Exit criteria = Gate B: 0 inline pools, single write architecture, ~4GB disk reclaimed

0% DONE

Ratify the architecture decision (Option C) — Propose ➔ Queue ➔ Commit

Day 6Owner: JonathanEst: decision

Inventory all canonical-write sites in src/ (~93 inline pools)

Day 6–7Owner: AntigravityEst: 4.0h

Stand up single @alliance/supabase pooled client; replace inline pools

Day 7–8Owner: AntigravityEst: 8.0h

Convert first mutating domain (quotes) API routes to proposers

Day 8–9Owner: AntigravityEst: 8.0h

Shrink sweep: delete worktrees, target, committed logs (~4GB)

Day 9–10Owner: AntigravityEst: 2.0h

Install CI gates: no new Pool, version.ts == package.json, grep gates

Day 10Owner: AntigravityEst: 4.0h

Strategic Target

Flip the platform to live governed revenue

Convert from "$0 revenue, workers dark, code uncommitted, two architectures" to "live governed revenue on one write-path, with CI gates guarding the door."

Fortnight Risks

Stripe Webhook Misconfig SILENT $0

Stripe fails to sync. Mitigate: verify both webhook secrets + deliver health-checks.

Connection Exhaustion CRITICAL

Inline pools spawn connection leaks. Mitigate: introduce pooler first, replace quotes first.

Queue Transition Drift MEDIUM

Routing writes through queues breaks features. Mitigate: convert quotes domain first behind a flag.

Done Conditions

  • A real quote produces a signed ledger entry.
  • A real Checkout session reaches PAID status.
  • All 3 auth-bypass routes are deleted.
  • No n8n workflow bypasses CommitGate.
  • All 14 PM2 workers show as processing.