A Casper attorney asked the Wyoming Supreme Court to require felony plea agreements to be filed in writing, so we took a look at how they work.…