Doesnt need to be a "war"....A robot doesnt understand the term posse comitatus
Pull the plug.Install an algorithm that if robots commit insurrection against humans relay a command to shut down.
“Posse comitatus” is a feel-good law with no real effect.
The Constitution, which supersedes it, says:
“To provide for calling forth the Militia to execute the Laws of the Union, suppress Insurrections and repel Invasions;”
Again, that is to CALL FORTH THE MILITIA TO EXECUTE THE LAWS OF THE UNION.