Just a note: you can see every build’s YML and even one-click restore that on the build’s details page:
Additional history & audit feature would be nice I agree, just wanted to mention this option, as it helped quite a few users in the past in similar overwrite cases