The U.S. Supreme Court ruled in Hunter v United States that plea agreements requiring defendants to waive appeal rights are unenforceable when enforcing them would result in a miscarriage of justice.