亡羊补牢
better late than never; fix the root causeLiteral meaning
mend the pen after losing sheep
Story
A person lost sheep because the pen was broken. After repairing the pen, future sheep were protected.
Modern usage
Use it for incident reviews, process fixes, and learning after mistakes.