She doesn’t need to retake that test - the writing portion isn’t that important anyway (as evidenced by the fact she ended up with a 1580).
However retaking a 1580 would likely be weighted as a negative, ie., Obsessive/robot applicant.
She needs to apply to UTD Mc Dermott. She sounds like the kind of students they want.
I wouldn’t apply to Cal - paying 63k a year to be in a lecture hall with 700 people isn’t a good value. Aim at Berkeley for grad school.
Beside Stanford, include Santa Clara (a safety, if you can afford it) and Harvey Mudd. If you can afford to, plan official visits at all three.
The universities you list won’t really care about her scores considering she’s already got more than she needs on that front. After 8 APs the law of diminishing returns applies, as it does for a 1500+. They’re ‘reaxh for everyone’, meaning odds are against you regardless of stats. What distinguishes admitted students at super selective schools such as these is extracurricular involvement and achievements, impact, etc.
She should consider NETS at UPenn.
For AI/Machine learning she should consider UEdinburgh (top in the world).
She needs to find two acceptable safeties and a few targets (Admission rates in the 20-30% range where she expressed consistent interest starting end of junior year).