; and (2) may not count against such number. . 103. Obligated service requirement (a) In general Subtitle A ( 33 U.S.C. 3001 et seq.) is amended by adding at the end the following: 216. Obligated service requirement (a) In general (1) Rulemaking The Secretary shall prescribe the obligated service requirements for appointments, training, promotions, separations, continuations, and retirement of officers not otherwise covered by law. (2) Written agreements 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, and retirements as the Secretary considers appropriate. (b) Repayment for failure To satisfy requirements (1) In general 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. (2) Obligation as debt to United States An obligation to reimburse the Secretary under paragraph (1) shall be considered for all purposes as a debt owed to the United States. (3) Discharge in bankruptcy A discharge in bankruptcy under title 11 that is entered less than 5 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. (c) Waiver or suspension of compliance The Secretary may waive the service obligation of an officer who— (1) becomes unqualified to serve on active duty in the commissioned officer corps of the Administration because of a circumstance not within the control of that officer; or (2) is— (A) not physically qualified for appointment