That is in dispute by historians. However, there is good evidence that there was a Soviet agent within FDR's administration (Harry Dexter White) that surreptitiously sabotaged the pre-war treaty negotiations between the Japanese and the US to spark the Japanese to launch the attack. The goal was to cause a conflict between the US and Japan so the Russians would not be forced to fight on two fronts.
FDR goaded the Japanese to attack our fleet at Pearl Harbor. What he missed was how very capable the Japanese were. Kimmel was deliberately kept in the dark and took the blame.
FDR knew. Ambassador Grew sent the warning written by Max Bishop who heard it from the well informed Peruvian attaché. Look that up. Ambassador Max W S Bishop knew FDR needed a Pearl Harbor, to his last breath