Guilt and shame arise from different cognitive triggers and rely on distinct neural systems to guide compensatory behavior.