It's perhaps fitting that the weirdest election in American history will end under a deluge of bizarre stories and conspiracy allegations.

First there was FBI director James Comey's announcement last week that he was doing... something, it's still not clear what, with the investigation into Hillary Clinton's emails, except maybe they weren't even Clinton's emails at all. An immediate hysterical media feeding frenzy commenced, and Clinton's margin in the polls fell substantially. Then it came out that Comey had not mentioned possible evidence that Russian spies were behind the many hacks of Democratic data — for fear of appearing partisan.

Then on Monday evening, a slew of Trump stories dropped. A Slate article suggested that a Trump-controlled server was communicating with Russian intelligence — except, hang on, computer experts poked some big holes in the evidence. Then some ex-spy told Mother Jones that Trump himself might actually be a Russian agent — except, hang on, The New York Times says the FBI examined this case and doesn't buy it. However, the FBI is investigating former Trump campaign manager Paul Manafort's ties to Russia. The Times topped it all off with a report detailing Trump's use of a sketchy tax avoidance tactic that his own lawyers told him would not pass an IRS audit.

It's almost impossible to know how to parse all this garbage. But one thing is for sure: The American deep state — the complicated collection of security, intelligence, and law enforcement agencies — has not acquitted itself well this election. The supposedly omnipotent spook brigade has not been able to defend critical U.S. data sources from hacks, and has not been able to convincingly finger the culprits. Instead they're spending the last few days of the election flailing around like a horned-up elephant seal.

So: the hack of Democratic Party emails. While I am not convinced by various allegations that Trump is actually in league with the Russians, the evidence that these hacks were carried out by somebody associated with Russian intelligence is pretty strong. They got both the DNC and John Podesta, the former with an actual hack, and the latter with a phishing scam that fooled him. Both have Russian fingerprints all over them.

One would think that security agencies are supposed to protect the integrity of the communications of top government officials. No doubt there are many bureaucratic rules in the way. But some of these agencies committed spectacular crimes, lied about it, and got away with it, supposedly to protect American security (more on this below). If there's anything stopping them from protecting American data security, it's not rules or laws of any kind.

Of course, data security is tough, especially given that the weak link is often elderly or tech-naive officials' ability to detect fraudulent requests for passwords and such. But this brings me to the really baffling aspect of this story — the deep state's inability to clearly articulate responsibility for the hacks.

The fact that the Russians were behind the DNC hack was obvious by July. But it wasn't until October that the government officially accused Russian intelligence of attempting to meddle in the election. Various intelligence officials did try to make the connection before, but they had virtually no success pushing it into the front rank of media coverage. It was and is remarkable — one of the greatest acts of political sabotage in American history, and it was a third- or fourth-tier story at best.

Hillary Clinton attempted to make the connection personally in the final debate, referencing the judgment of intelligence officials. But this too failed, for a variety of reasons. One was it was an obvious dodge from a question about the substance of one of the leaked emails; another was that Trump openly scoffed at the assertion, thus motivating partisan Republicans to dismiss it as well.

But perhaps the most important underlying factor is that Trump's scoffing was, on its face, all too plausible. "She has no idea whether's it's Russia, China, or anybody else," he said. "And our country has no idea."

If there are two words to describe the American security apparatus over the last decade and a half, they would be "incompetent" and "duplicitous." All those incredibly expensive security agencies failed to prevent 9/11, failed to see that Saddam Hussein had no WMD program, and colluded in Bush's highly illegal (and completely ineffective) torture program. They lied constantly about that program, as well as dragnet surveillance. And when Congress attempted a simple descriptive investigation of that torture, they lied to and spied on their overseeing committee. It is any wonder a great many citizens instinctively discount anything they say?

Now, instead of doing what seems obvious — getting together all the deep state grandees, and soberly describing what has happened in a clear and honest way — they've either given up, or are flailing around.

The FBI in particular seems completely off the chain. Aside from Comey's batty intervention into the election, a minor FBI Twitter account has been tweeting redacted files about both Trump and Clinton for the past couple days one week before the election — including one into a closed investigation into Bill Clinton's pardon of Marc Rich, which quickly went viral. God only knows why.

On Oct. 21 the largest denial-of-service cyberattack in history disabled websites across the United States. Experts speculate that somebody might try the same trick on election day to try to prevent people from looking up the location of their polling place and disrupt the election. Whether they do or not, it's clear that American security apparatus will probably be powerless to stop them.