Rule reminder
Trapassato prossimo with si passivante: si + era/erano + past participle (with gender/number agreement). Example: si erano già venduti tutti i biglietti (all the tickets had already been sold).
Futuro anteriore: Entro domani mattina ___ l'accordo.