Rule reminder
Use trapassato prossimo for the earlier of two past actions. Use passato prossimo for the more recent (or only) past action.
Quando siamo arrivati a casa, ___ già (mangiare).