enums/algo_state_reason library