Second (but *not* last) #SCOTUS ruling is in Hunter v. United States.
For an 8-1 Court (with Justice Thomas dissenting), Justice Kagan holds that a plea agreement to *not* appeal a sentence is unenforceable when it would result in a miscarriage of justice:
www.supremecourt.gov/opinions/25p...