Pursuant to his pleas, a military judge sitting alone as a general court-martial convicted appellant of distribution and of use of marijuana in violation of Article 112a, Uniform Code of Military Justice (UCMJ), 10 U.S.C. § 912a. Contrary to his pleas, the military judge also convicted appellant of two specifications of distribution of LSD on board a naval vessel, also in violation of Article 112a, UCMJ. The military judge sentenced appellant to confinement for 6 years, forfeiture of all pay and allowances, and a dishonorable discharge. The convening authority approved the sentence, but suspended confinement in excess of 8 years in accordance with the pretrial agreement.
Appellant alleges as his single assignment of error1 that the military judge prejudicially erred in accepting the pretrial agreement. We agree.
In exchange for a limitation on the sentence, appellant agreed to plead guilty to the two marijuana offenses and to join in four stipulations of expected testimony and one stipulation of fact with respect to the LSD offenses. The agreement permitted the appellant to plead not guilty to the two LSD offenses; however, the agreement further provided that he would lose the benefit of the pretrial agreement if he presented evidence on these offenses.2 The stipulations by themselves directly or inferentially establish all the elements and, thus, practically amount to a confession. Furthermore, the pretrial agreement term precluding appellant from presenting any contrary defense evidence (coupled with the fact that counsel cannot cross-examine stipulations and, thus, elicit any contrary evidence) makes this agreement a de facto plea of guilty. The pretrial agreement term precluding contrary evidence means that the stipulations of expected testimony are, in effect, stipulations of fact. Accordingly, the military judge was required to conduct the confessional stipulation inquiry specified in United States v. Bertelson, 3 M.J. 314 (C.M.A.1977), now set forth in Rule for Courts-Martial (R.C.M.) 811(c) *1090Discussion, Manual for Courts-Martial (MCM), United States, 1984.3
Although the military judge conducted a lengthy inquiry and determined that appellant understood the pretrial agreement and wanted to enter into the stipulations, he did not elicit the required factual basis for the confessional stipulations from the appellant. Appellant clearly indicated that the individuals in the stipulations of expected testimony would testify as indicated, but he never stated nor was he asked whether their testimony had a factual basis and was true. In fact, appellant’s civilian counsel indicated at trial that appellant did not believe that what they said was true. Thus, the military judge should have refused to accept the pretrial agreement and the stipulations, allowed appellant to withdraw his guilty pleas if he desired, and required the Government to prove appellant’s guilt without the stipulations if it could. It was error to accept the stipulations. United States v. Bertelson, 3 M.J. at 316; United States v. Enlow, 26 M.J. 940, 945 (ACMR 1988) (military judge must assure himself that each sentence of the stipulation is true); United States v. Sawinski, 16 M.J. 808, 810, 812 (NMCMR 1983) (military judge should, at minimum, extract from accused verbal admissions of facts necessary to relate him personally to the offenses). Since the Government’s entire case on the LSD offenses was presented in stipulations, the error was clearly prejudicial. Article 59(a), UCMJ, 10 U.S.C. § 859(a).
The guilty pleas, the not guilty pleas, the pretrial agreement, and the erroneously admitted stipulations are all inextricably intertwined. It would be inappropriate, therefore, to affirm any of the guilty findings.4 Contrary to appellant’s assertions, however, the erroneous acceptance of the confessional stipulations and the pretrial agreement does not mandate dismissal. The appropriate remedy is a full rehearing. Accordingly, the findings of guilty and the sentence are set aside and a rehearing is authorized.
Senior Judge ALBERTSON and Judge STRICKLAND concur.