It's only someone on their team if they also made top 8 but isn't able to compete because of 2 per country. Or is the 9th athlete.
On one hand, I'm glad the FIG has made the rule that athletes could be subbed in. Because when they were pulled under the pretense of injury, it just seemed so wrong and unfair. Now, the federations have legitimate resources at their disposal should they decide it is in their best interest to do some shuffling. Russia and Romania have no problems with pulling girls, the USA NEVER has even when it was glaringly in their favor to do so. It's just a result of a different mindset. Marta believes that once the results are set, that's that. Other coaches want to make the most out of the opportunities given.
Had Aly been from Russia or Romania, she would have been pulled from the AA almost the second prelims were over. That's just the way it would have been.