Validate flock database integrity including pedigree consistency, breed composition math, pen assignments, tag uniqueness, and health record completeness.
Every sheep record must have:
id (unique, kebab-case)name (display name)sex (ram, ewe, ram_lamb, ewe_lamb, wether, unknown)status (alive, deceased, sold, unknown)confidence (high, medium, low)coat_type should match: mostly hair breeds → "hair", mostly wool breeds → "wool", otherwise "mixed"hair_percentage should be calculable from breed percentagessire_id must reference an existing sheep with sex = "ram"dam_id must reference an existing sheep with sex = "ewe"tag numberstatus = "alive" should have a pen assignmenthealth.weak_resistance = truepython3 scripts/validate_flock.py
python3 scripts/validate_flock.py --strict # Treat warnings as errors
python3 scripts/validate_flock.py --check-references # Verify sire/dam links
python3 scripts/validate_flock.py --check-images # Verify image references exist