# Spec: Status: **DRAFT** | **APPROVED** | **IN PROGRESS** | **DONE** Date: YYYY-MM-DD Author: Related: Todo: ## Problem ## Root cause ## Behavior target ## Verified facts >Fakta-fakta teknis yang **sudah diverifikasi** dari pembacaan kode, log produksi, >atau eksperimen langsung. Setiap fakta harus citation ke file:line. >Jika belum diverifikasi, tulis `UNVERIFIED` dan rencana verifikasi. - `path/to/file.ts:42` — - `path/to/file.ts:88` — - Kolom DB `table.column` — - Config `ENV_VAR` default — ## Keputusan desain 1. ****: - Alternatif yang ditolak: ## Perubahan file >Daftar **semua file** yang perlu diubah/ditambah/dihapus, dikelompokkan per service. >Untuk setiap file: sebutkan **apa yang berubah** (bukan copy-paste kode). ### Gateway (`services/discord-gateway/`) - `src/modules//.ts` — ### Backend (`services/backend/`) - `src/modules//.ts` — ### Frontend (`services/frontend/`) - `src//.ts|tsx` — ### Database / Config - ## Schema/type changes ## Verification >**Harus spesifik dan executable.** Jangan tulis "works correctly". >Tulis command yang bisa dijalankan dan expected outcome. - **Typecheck**: ` pnpm typecheck` — clean - **Lint**: ` pnpm lint` — no errors - **Build**: ` pnpm build` — compiles - **Test**: ` pnpm test` — all pass (+ test baru jika ada) - **Smoke test**: - **DB**: - **Deploy**: CI green → deploy → cek ## Notes (opsional)