Idea to improve AI in Main Village
I didn't see this ruled out/already requested for main village (only for builder base) and search didn't show anything.
AI is a complicated thing and SC has made a relatively few changes over the years (rule of 3 vs rule of 5 is the big one I remember, probably I've missed a few though) and both the forum and reddit have lots and lots of videos of troops doing stupid things, sometimes completely unexplainable by anyone. The AI change I propose is simple: if a troop under the current AI is going to attack a wall, increase the number of buildings that the troop considers (maybe to 5, 7, 10? Can be tweaked) before picking the closest thing to target.
This is kind of a mix between rule of 3 and 5. Most of the time, nothing changes because the troops aren't targeting walls (in the average raid I would be shocked if troops targeted walls more than 10 times the whole raid, and 10 is pretty generous). So the processing time should not increase much in the average raid. However, this does address the cases where the troop is in a compartment and only sees buildings outside the compartment and does not see a building within the compartment it is standing in. This would improve consistency with AQ targeting when she is in a compartment because she sometimes wanders to one side of the compartment and no longer sees the buildings on the other side of the compartment.
I don't see a downside, and it would be a nice change to the problems highlighted above.