The Secretary shall prescribe the obligated service requirements for appointments, training, promotions, separations, continuations, and retirements of officers not otherwise covered by law.
The Secretary and officers shall enter into written agreements that describe the officers' obligated service requirements prescribed under paragraph (1) in return for such appointments, training, promotions, separations, continuations, and retirements as the Secretary considers appropriate.
The Secretary may require an officer who fails to meet the service requirements prescribed under subsection (a)(1) to reimburse the Secretary in an amount that bears the same ratio to the total costs of the training provided to that officer by the Secretary as the unserved portion of active duty bears to the total period of active duty the officer agreed to serve.
An obligation to reimburse the Secretary under paragraph (1) is, for all purposes, a debt owed to the United States.
A discharge in bankruptcy under title 11 that is entered less than five years after the termination of a written agreement entered into under subsection (a)(2) does not discharge the individual signing the agreement from a debt arising under such agreement.
The Secretary may waive the service obligation of an officer who-
33 U.S.C. § 3006