by Davo Smith.
This sounds like exactly what the 'attempts reopened' setting does in the assignments.
Each time a student submits some work and the teacher grades it, the teacher has the option of re-opening the submission. The history of all submissions is shown in a collapsed area at the bottom of the page, for each student.