diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 6d7f6ac..6ad9746 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -2981,8 +2981,23 @@ if (!enabled) { " git push ``` - - Types: `feat:` (feature), `fix:` (bug fix), `docs:` (documentation), `refactor:` (code restructure) + - Types: + * `feat:` (new feature) + * `fix:` (bug fix) + * `docs:` (documentation) + * `refactor:` (code restructure) + * `critical:` (financial/safety critical fixes) - This is NOT optional - code exists only when committed and pushed + - **Recent examples:** + * `fix: Implement Associated Token Account for USDC withdrawals` (c37a9a3, Nov 19, 2025) + - Fixed PublicKey undefined, ATA resolution, excluded archive + - Successfully tested $6.58 withdrawal with on-chain confirmation + * `fix: Correct MIN_QUALITY_SCORE to MIN_SIGNAL_QUALITY_SCORE` (Nov 19, 2025) + - Settings UI using wrong ENV variable name + - Quality score changes now take effect + * `critical: Fix withdrawal statistics to use actual Drift deposits` (8d53c4b, Nov 19, 2025) + - Query cumulativeDeposits from Drift ($1,440.61 vs hardcoded $546) + - Created /api/drift/account-summary endpoint 13. **DOCKER MAINTENANCE (AFTER BUILDS):** Clean up accumulated cache to prevent disk full: ```bash # Remove dangling images (old builds)