-- CF-314: Add planning_mode_required flag for smart planning mode auto-detection -- NULL = auto-detect (scoring algorithm), true = always plan, false = never plan ALTER TABLE tasks ADD COLUMN IF NOT EXISTS planning_mode_required BOOLEAN DEFAULT NULL;