Agree compensation in advance
Given the likelihood of small breaches to a contract, it makes good commercial and practical sense to pre-agree the compensation that party A will pay to party B for that breach. These are called liquidated damages: the paradigm case in which the law of penalties is engaged is where a