A 10-billion-year history of Andromeda’s galactic - tymoff