OpenDQV Cloud starter template (v0.1) — your tenant inherits this baseline. First customer edit creates v1.0 in your audit trail; pin by yaml_hash for replay. Agriculture crop batch record validation for supply chain traceability and food safety pipelines. Enforces UK crop type taxonomy aligned with AHDB (Agriculture and Horticulture Development Board) classification, food safety certification scheme validation (Red Tractor, LEAF Marque, Organic, Rainforest Alliance, Fairtrade), ISO 3166-1 country of origin for single-origin traceability under UK Food Information Regulations 2014, and yield anomaly detection. Supports GlobalG.A.P. chain-of-custody traceability requirements and DEFRA cross-compliance audit records.
| Rule | Field | Severity | What it enforces (the message your team sees) |
|---|---|---|---|
| batch_id_required | batch_id | error | batch_id is required |
| farm_id_required | farm_id | error | farm_id is required |
| crop_type_required | crop_type | error | crop_type is required |
| crop_type_values | crop_type | warning | crop_type should be a standard AHDB/DEFRA crop classification — use one of the defined values for levy and cross-compliance reporting compatibility |
| harvest_date_format | harvest_date | error | harvest_date must be a valid date (YYYY-MM-DD) |
| weight_kg_min | weight_kg | error | weight_kg must be >= 0 |
| field_id_required | field_id | error | field_id is required |
| soil_ph_range | soil_ph | error | soil_ph must be between 0 and 14 |
| yield_kg_per_hectare_min | yield_kg_per_hectare | error | yield_kg_per_hectare must be >= 0 |
| yield_kg_per_hectare_anomaly | yield_kg_per_hectare | warning | yield_kg_per_hectare exceeds 20,000 kg/ha — verify this is not a unit error (total batch weight stored as per-hectare yield). UK record is 16,790 kg/ha (Lincolnshire, 2015) |
| certification_status_values | certification_status | warning | certification_status must be a recognised scheme: red_tractor, leaf_marque, organic_soil_association, organic_of_g, rainforest_alliance, fairtrade, global_gap, brc_farm, none |
| country_of_origin_format | country_of_origin | warning | country_of_origin must be a 2-letter ISO 3166-1 alpha-2 country code (e.g. GB, FR, ES) — required for UK Food Information Regulations 2014 country-of-origin labelling |
| inspector_id_required | inspector_id | warning | inspector_id should be provided for traceability |
Run your own data against this contract in the free trial — drop a CSV in the dashboard, no code, no credit card. Start free trial →