Bug: Filtered goals by g.get('type_key') but goals table has 'goal_type' column.
Result: weight_goals was always empty → _score_weight_trend returned None.
Fix: Changed 'type_key' → 'goal_type' (matches goals table schema).
Verified: Migration 022 defines goal_type column, not type_key.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>