fn parse_goal_type(s: &str) -> Result<GoalType>
Parse a serde-deserialized enum from a snake_case string (wraps in JSON quotes).