The New York Court of Appeals had a message this week for judges who allow defendants to forfeit an appeal, in most cases, while pleading guilty to a crime: don’t inflate what they’re giving up—or don’t be surprised when the case ends up before an appellate court.

The high court, in a decision handed down this week, struck down two so-called appeal waivers from cases in Western New York, calling them a “mischaracterization.”