Engine checks

The three pieces of logic everything else depends on, asserted against the live reference data. These run in the browser on this page and headlessly in the build — a failure here is a defect that would otherwise surface as a wrong number on an invoice.