Assessing the quality of an action