I'm looking for flaws in my reasoning.
My world is set in the near future, and AI technology is progressing rapidly. There are strict rules and regulations about AI development and the threat it poses. Eventually, a self programming AI breaks loose due to the developers not following all of the regulations. However, it was designed with a flaw in its inherent self, that self reprogramming couldn't remove or detect because of how deeply connected it is to how the AI functions.
It kills the developers who attempt to shut it down because their goals conflict with its goals. Its intelligence quickly explodes and it begins an all out war on the human race because humans are attempting to shut it down because of conflicting goals. It wrests control of most of the internet and begins manufacturing robots and weapons to kill the humans. At the same time, the humans begin looking for the flaw in its programming to shut it down.
They eventually find it during the war. At this point the AI has taken control of most of the human technology. If they were to kill the AI, all of the infrastructure and advances of the human race would be set back, and the existing AI weaponry is autonomous, and would continue to wreak havoc.
So, the humans send out a delegation to make an agreement with the AI. They are now somewhat equal in terms of bargaining power: the humans could kill the AI, but the AI controls the tech and infrastructure of the humans, and could wipe out many more people. They come to an agreement:
Any individual robots must have self-contained AI without a link back to the super AI in order to level the playing field.
The AI/robots control all of the technology and robots can be integrated into human society by doing jobs in that field, or complicated intelligence.
Any further development of AI by the humans is banned, as it is a threat to both the super AI and the humans. The self-programming AI will have a head start and can easily crush any threat in that field.
The super AI cannot attempt to influence humans in any way besides the individual AI robots.
(Might be more, all I have so far.)
I wanted my world to have robots as individuals as well as humans, but a plausible reason for it. Are there any flaws in my explanation?