• Mahmoud Aglan's avatar
    docs: add schema vs code mismatch audit to WTF.md · 53a723a7
    Mahmoud Aglan authored
    SSHed into Supabase DB and compared all table schemas, RLS policies,
    RPCs, enums, indexes, and reward_config rows against what the code
    expects. Found 21 mismatches including: service key bypassing RLS
    (making RLS useless), missing indexes, missing reward rows,
    handleDraw destroying game_state, and complete_match trusting
    client-provided winners array.
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    53a723a7
WTF.md 35.3 KB