In a scenario in which an inventor was able to invent something that the government would likely classify as 'Top Secret' or even 'Born Secret', and the inventor knowingly knows that it will be classified as such, does the inventor then have a legal and/or civic obligation to keep this invention secret until it has been reviewed and classified by the government? The reason being to prevent a possible major disruption to the nation's economy or national security.
In other words, if the inventor were to disclose his/her Top Secret idea out to the public domain/social media before it has been addressed by the government, and this disclosure were to cause a major economic disruption or weaken national security, is it highly likely that the inventor will be prosecuted and incarcerated, and perhaps even be charged with treason?