An upstate appeals court has ruled that a defendant was the victim of a coercive arrangement in which prosecutors forced him to abandon a constitutional speedy trial motion in exchange for a guilty plea to second-degree robbery.

The Appellate Division, Third Department, said the manner in which Terrance Wright pleaded guilty represented the kind of “prosecutorial bartering” that the state Court of Appeals expressly condemned in People v. Blakley, 34 NY2d 311 (1974).