A formal or binding promise to the court to do/not do something. Failure to comply with such a promise may be punished by financial penalty and/or a custodial sentence, on the basis that it is a contempt of court.