in the movies Sifo-Dyas is just a dead Jedi master, in the books he was with Count Dooku in potentially leaving the jedi order and being controlled by Palpatine and his master Plagueis. Of course Palpatine kills Plagueis before the fruits of his labor could take place. But Palpatine still used them and created the clone army and the rest his history.
ofc what is true is that Count Dooku kills Sifo-Dyas (who ordered the clone army thx to Palpatine) and then erased Kamino from the archives blah blah blah, everyone seen the movie. there really isnt a plot hole in the movie, the problem is, people dont read the books related to the movies... episode 3 is 3 books long and only about 20% of it is in the movie, and all 3 books are canon so yea ppl ned to l2read.
You don't even really need to read the books to figure it out.
Sifo-Dyas orders the clone army.
Dooku leaves the jedi order to join Sidious(this makes it clear that Dooku was once a jedi, seeing as Yoda said "my old padawan.")
Dooku kills Sifo, and Sidious uses his name to produce the clone army.
It isn't that hard to figure it out yourself, I got it all figured after watching the movie.