In general a court-martial accused can waive most rights and privileges in a pretrial agreement. A common term where there are multiple accuseds (drug or sexual assault cases for example) is an agreement to testify truthfully in another court-martial. But,
Rule for Courts-Martial (R.C.M.) 705(c)(1) expressly prohibits terms or conditions of a PTA that are not voluntary or that deprive an accused of certain rights. “The interpretation of a pretrial agreement is a question of law, which is reviewed under a de novo standard.” United States v. Acevedo, 50 M.J. 169 172 (C.A.A.F. 1999).