========================================
[Mon Feb  9 00:00:50 AEDT 2026] CC VPS triggered by Rivet
========================================

Task:
Fix bug: No trade validation in AI profile generation api/ai/generate-profile/route.ts:44. Currently doesn't check against VALID_TRADES. Add validation to ensure the trade returned by the AI is in the valid trades list, and if not, return an error or use a default valid trade.
----------------------------------------

## Fixed ✅

Added trade validation to `api/ai/generate-profile/route.ts`:

**Changes:**
- Added `VALID_TRADES` constant (16 valid Australian construction trades)
- Validates primary `trade` parameter against the list — returns 400 error if invalid
- Filters `trades` array to remove any invalid trades before sending to AI
- Ensures at least the primary trade is included even if additional trades are filtered out

This prevents the API from accepting/processing invalid trade names and ensures data consistency with the rest of the app.

----------------------------------------
[Mon Feb  9 00:02:33 AEDT 2026] Task finished (exit code: 0)
