As you can see from the significant distance between the base nut and securing nut on the post, the connection was not properly tightened when the alternator was installed during your alternator work or engine change long ago.
It also appears, from what's left of the wire terminal, that as you...