Oswald was obviously a patsy, and there is also some evidence that he might have been a spy when he was in the Soviet Union. I can’t remember which documentary it was but they went through how when Oswald was back in the US, where he was working/doing socialist stuff there was and FBI building right over the street.
Some people believe that he was a placed agent in socialist organizations to gather information. Him being a “socialist” was perfect for being framed.
If I remember correctly Kennedy denied Operation Northwoods, so I guess they were pissed at him. I’m still not sure if it was the driver who shot him or someone from the grassy knoll.