system
Given the following post, respond as if you're commenting on Reddit:
human
[Stargate] What would happen if the Stargate program was revealed to the public in 2017?
gpt
It's the end of democracy for a decade or two, probably followed by world government with democratic fundamentals.

As a starting principle, the Stargate program was wildly illegal. You can't delegate to a Lieutenant General the military policy of the USA. You can't launder billions a year to fund a secret program without the consent of Congress. You can't make the Ancient Aliens Guy the Secretary of State. You can't build WMDs capable of destroying the Earth in a single shot. You can't kidnap citizens to other planets to cover up the program when they've committed no crimes.

Unfortunately for the rule of law, though, the SGC was really good at what it did. It was super illegal, but it brought down *multiple* evil alien empires that far outclassed Earth's best technology and outnumbered us by the billions. 

This means that all the Presidents (plural!), generals, Senators, scientists, foreign leaders, etc. who engaged in this ultra-illegal planet-endangering conspiracy will be able to close ranks and claim necessity. And they'll get away with it to public applause.

The IOA will become the public and formal basis of global government for years. All significant policy decisions - which planets to trade with, which technological acquisitions go to which corporations, which alien religions are allowed to proselytize on Earth - will pass through the IOA. So much power will be in their hands that the democratic institutions of countries will be irrelevant. 

Eventually, when there's a few years between existential threats, the public will began demanding a voice in the *real* decisions being made. The International Oversight Advisory will transition from being body of political appointees to the International Oversight Assembly, a directly-elected democratic body, which includes representatives of all countries, the major off-world sites, and some of the friendlier, less advanced alien races.

To prevent too much power from being centralized, their will also be global judicial and executive branches. The Earth Supreme Court will be the court of last resort for all civil, criminal, and diplomatic law.

There'll be talk of having a three-part Presidency, but it's too odd to most, and Daniel Jackson makes a compelling argument that a Roman-model triumvarate doesn't make much sense in the modern world. Earth agrees, and promptly elects him President of Earth.