Eventually it dawns on Scorpius, through the particular emphasis of the words, that he must have overheard their conversation the night before. Avery's promise - of course. Albus couldn't have known that either.