Fix sample_data compare_action generation, and validation cycle