U.S. Supreme Court
Hunter v. United States
An agreement not to appeal a sentence is unenforceable when it would result in a miscarriage of justice—meaning, when it would leave in place the kind of egregious error that would bring the judicial system into disrepute.