By that I mean I have seen the AI been told to build 100% infantry and nothing else, yet it builds HQs.
Okey dokes, should've said earlier: I witnessed this in a mod. But the modder said he had made AI specific events for several countries to build HQs, while keeping the build scheme at infantry = 100, so it was WAD.AFAIR panic AI is building militia hordes , maybe some cav/inf, but not HQ. If the AI is building strange things please make sure the division build sheme is exactly at 100% and the land brigades not above 100%