law: 143. Accused found insane during trial.
  (1) Where it appears in the course of the trial by court- martial of any person, charged with an offence that such person is insane, the court shall find specially the fact of his insanity and shall order such person to be kept in strict custody in such place and in such manner as the court may deem fit until the directions of the Central Government thereupon are known.
  (2) Every such case shall be reported by the court to the convening authority for orders of the Central Government and it shall be lawful for the Central Government to give orders for the safe custody of such person in such place and in such manner as the Central Government may deem fit.
  (3) Whenever on the receipt of a report from the Central Government or otherwise the convening authority considers that such person is capable of making his defence, the convening authority may take steps to convene a court-martial for the trial of such person.