ensure task status is legal