This is called Test Impact Analysis and it is something worth making deterministic. Like with an algorithm, and without an LLM.
And people have already done this.
For example: SeaLights is a product that does this.
4 karma · joined August 1, 2019
The recovery part was inspiring.
I've written a similar thing - a Pattern Language sort of - and I call the primary Agent "Orchestrator".
Actually, I might steal the Consensus and MapReduce patterns
https://gregorriegler.com/2025/07/12/augmented-coding-patter...