https://en.wikipedia.org/wiki/Moynihan_Commission_on_Government_Secrecy
Apart from aspects of nuclear energy subject to the Atomic Energy Act, secrets in the federal government are whatever anyone with a stamp decides to stamp secret. This inevitably produces problems where even the President of the United States may make mistakes that might have been avoided with a more open system.