Learning to Repent When Judgment Looms