Judges have to observe certain formalities when taking pleas from defendants who plan to formally admit guilt. These formalities are designed to ensure that the results are fair.
Pleading Guilty: What Happens in Court
Once the deal is worked out, the prosecution and defense will arrange a court hearing and inform the judge about the agreement.
How Judges Accept and Reject Plea Deals
The lawyers agreeing to a deal isn't the end of the story: Judges must stamp the deal with its seal of approval.