It is not possible to always do the right thing. The definition of "the right thing" is open to interpretation. For example, a student caught cheating on a college exam should be expelled from the college. That would be the right thing to do to many people. The student would want a second chance and would prefer a lesser sanction. That would be the right thing to do in the student's opinion.
Bill Clinton should have been removed from office in the opinion of many, including me. That would have been the right thing to do. Others obviously disagreed and they thought the right thing to do was to let him get away with everything illegal he had done.
How would you include both justice and "a second chance" in a single "absolute moral code?" What would guide when a second chance would be offered?