10 U.S. Code § 631, § 632: O2s, O3s, and O4s (other than Navy and Marine Corps Limited Duty Officers) who have twice failed for promotion shall be discharged. If eligible for retirement, that officer is retired. If retirement eligibility is within 2 years, that officer is retained until eligible and then retired.