I was just randomly exploring Skyrim after I had just started. I saw Weylin kill the woman, and the Forsworn Conspiracy started. I talked to the person in Talos' Shrine, but decided that the quest would take too long and just walked out of Markarth.

I held off on the quest for a very long time, and eventually I was just raiding a Bandit Camp. I killed one of the bandits, and the top said that the Forsworn Conspiracy had been completed for some reason. I don't know what happened. But when I go to the quest in my journal, it says I have already been framed and sent to Cidhna Mine. I'm still currently free. Also, if I commit a crime in Markarth, even murdering somebody right in front of them, they will not do anything unless directly attacked. And even if I attack one, only the one I attacked will fight back.

Could this have something to do with the fact that I took Markarth for the Stormcloaks while the quest was active?

Has anyone else had this glitch, or has the game just kinda screwed up?