My thoughts on selection for the rest of the Summer and winter, for what they're worth...
If we take Ed Smith's horses for courses and form will be considered, Moeen has to come back in and - bearing in mind he is one of our best players of spin - might as well bat three for the next eight tests (before being considered for the number eight spot against the Aussies). Rashid has done okay, and will play the winter, but misses the next two. Woakes and Broad play one test each. That would allow Root and Pope to move to their best positions and give us as basis of:
Opener 1
Opener 2
Ali
Root
Bairstow
Pope
Stokes
Buttler (with the gloves to protect YJB)
Curran
Broad/Woakes
Anderson
Openers is tricky - I would rest Cook a game due to impending fatherhood - this has the added psychological benefit of breaking the streak whilst allowing him to rotate immediately back in. For Ageas I would go Jennings and Burns, then see who to leave out.
This winter in Sri Lanka needs a different line up, and I would see us using a pinch hitter as a benefit, as well as a way to balance the side. Liam Livingstone was our best bat there for the A side, and is an extra spin option, so... Perhaps:
Cook
Buttler
Ali
Root
Bairstow
Livingstone/Pope
Stokes
Rashid
Curran
Leach
Anderson