grok:
8 U.S. Code § 1481(a)(7) states that a U.S. citizen loses their nationality by:
"committing any act of treason against, or attempting by force to overthrow, or bearing arms against, the United States, violating or conspiring to violate any of the provisions of section 2383 of title 18, or willfully performing any act in violation of section 2385 of title 18, or violating section 2384 of title 18 by engaging in a conspiracy to overthrow, put down, or to destroy by force the Government of the United States, or to levy war against them, if and when he is convicted thereof by a court martial or by a court of competent jurisdiction."
In essence, this provision means a citizen can lose their U.S. citizenship if they are convicted of treason, attempting to overthrow the government by force, or related conspiracies as defined in specific sections of Title 18 (e.g., rebellion, insurrection, or seditious conspiracy). The loss of citizenship occurs only upon conviction by a court-martial or a competent court.