This question is a little out-of-universe, but it's got me curious.
In Attack of the Clones, we see the massive clone army that Palpatine has secretly arranged for the Republic. These clones are assigned to and fight alongside the Jedi until, in Revenge of the Sith, Palpatine tells them to "Execute Order 66" which means to kill the Jedi.
I could be wrong about this, but I don't believe that it was until season 5 of the Clone Wars TV show that the issue of inhibitor chips were brought up. The chip malfunctions and causes a clone to kill a Jedi far too soon, causing Fives to go searching for an answer. He discovers that they were all made with chips in their heads that would cause them to lose control and kill the Jedi.
This element of the chips is brought up in Rebels and TCW season 7, but was it always supposed to be this way? Was the original plan in Revenge of the Sith that the clones were being mind-controlled? Or was that a later element from TCW to give a reason for why the clones would turn on their Jedi?