In fact one can argue that Orwell's 1984 had this economic setup. IIRC he explicitly had it set up so that all excess economic output went into an endless war, so that the proles never got wealthy enough to have enough spare time to rise up. He never addressed the question of how the military was structured but in a way it makes even more sense for the militaries to be fully robotic, rather than placing humans in command of powerful machines that could be used to start a coup against the State.
The benefit of using robot war to compare nations' will power is that you aren't one glitch away from Armageddon as when you use nukes, and you don't kill a generation of people like a human war.
[1] "wasted" in the sense that they were never actually used in combat. The deterrent aspect was part of the "cold".
You are still destroying industrial production and diverting other production into warfare / war-related devices.