This is super naive. If the government knew you were working on it and had any srrious chance to succeed, they would get what they want unless you have the skill, luck, and willingness to throw away your life to pull off a Snowden.
What you are disclosing is irrelevant to the point.
What I said was that if they want to gag you, you will be gagged. It doesn't matter what the laws are and it doesn't matter what you're disclosing, classified documents or your own discovery.
The only difference your own invention makes is that if you're working alone in private, and if up to now you're a nobody with no association with the field (IE you're a barber or a nurse or something), then maybe no one knows that you're working on it and also has no reason to even suspect you might, you will be able to publish at least once before they have a chance to stop you.
These AI companies and the various individuals working for them or with them, are highly visible, highly funded, pouring billions into exactly things like this, and already known to produce some results. They are not an unknown unrelated nobody in their basement.
Any individual with any chance of actually producing an important result is probably already known by all the people that care from their school and employment. Whether you're a company or an individual, if they want to gag you, you are gagged, unless you make it your life's mission to throw away everything else to accomplish this one goal, IE like Snowden. It doesn't matter what you're disclosing. It's an incredible lack of imagination to think that the grade-school idea of what the law says will make any difference. There are countless levers that can be applied to make anyone do anything, without even technically breaking any laws, let alone the option to go ahead and break all the laws and simply get away with it.