Key obstacles include ensuring semantic correctness (the code's actual meaning and logic) beyond mere syntax [18, 23], maintaining code diversity to avoid 'regression to the mean' where models generate repetitive, average cases [13, 45], and preventing the replication or amplification of biases present in source data [27, 31, 38].