What is the principal task of the two recording angels?

Recording Angels, the Angel of Death, and Questioning and Punishment in the Grave