{
    "oat_control_contract": "1.0",
    "generated_at": "2026-06-19T12:33:15+00:00",
    "recipe": {
        "slug": "oat-ks-microgreens-bundle",
        "name": "Microgreens — master grow recipe (keystone draft)",
        "cultivar": "Microgreens",
        "weeks": 2
    },
    "time_model": {
        "step_unit": "week",
        "steps": 2
    },
    "executor": "edge",
    "semantics": "Per control point, per step: hold `setpoint`; warn_low/warn_high is the deadband (advisory); alarm_low/alarm_high are trip thresholds. Steps are 0-based weeks; `stages` give the timeline. Same four-band thresholds the human SOP renders as aim/OK/act-if. measurable_via/controllable_via (when present) hint sensors/actuators.",
    "stages": [
        {
            "label": "Growth",
            "start_step": 0,
            "end_step": 1,
            "params": {
                "trigger": "calendar",
                "detail": null,
                "duration_days": 12
            }
        }
    ],
    "control_points": [
        {
            "key": "dli_canopy",
            "zone": "aerial",
            "engine": "light",
            "label": "Daily light (DLI)",
            "unit": "mol/m2/d",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 9,
                    "warn_low": 5.1,
                    "warn_high": 13.8,
                    "alarm_low": 4.2,
                    "alarm_high": 15.6
                },
                {
                    "step": 1,
                    "setpoint": 9,
                    "warn_low": 5.1,
                    "warn_high": 13.8,
                    "alarm_low": 4.2,
                    "alarm_high": 15.6
                }
            ]
        },
        {
            "key": "photoperiod_hours",
            "zone": "aerial",
            "engine": "light",
            "label": "Photoperiod",
            "unit": "h",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 16,
                    "warn_low": null,
                    "warn_high": null,
                    "alarm_low": null,
                    "alarm_high": null
                },
                {
                    "step": 1,
                    "setpoint": 16,
                    "warn_low": null,
                    "warn_high": null,
                    "alarm_low": null,
                    "alarm_high": null
                }
            ]
        },
        {
            "key": "air_temperature_day",
            "zone": "aerial",
            "engine": "environment",
            "label": "Air temp — day",
            "unit": "°C",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 21,
                    "warn_low": 15.3,
                    "warn_high": 27.6,
                    "alarm_low": 12.6,
                    "alarm_high": 31.2
                },
                {
                    "step": 1,
                    "setpoint": 21,
                    "warn_low": 15.3,
                    "warn_high": 27.6,
                    "alarm_low": 12.6,
                    "alarm_high": 31.2
                }
            ]
        },
        {
            "key": "air_temperature_night",
            "zone": "aerial",
            "engine": "environment",
            "label": "Air temp — night",
            "unit": "°C",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 18,
                    "warn_low": 13.6,
                    "warn_high": 23,
                    "alarm_low": 11.2,
                    "alarm_high": 26
                },
                {
                    "step": 1,
                    "setpoint": 18,
                    "warn_low": 13.6,
                    "warn_high": 23,
                    "alarm_low": 11.2,
                    "alarm_high": 26
                }
            ]
        },
        {
            "key": "relative_humidity",
            "zone": "aerial",
            "engine": "environment",
            "label": "Humidity",
            "unit": "%",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 57.5,
                    "warn_low": 42.5,
                    "warn_high": 74.75,
                    "alarm_low": 35,
                    "alarm_high": 84.5
                },
                {
                    "step": 1,
                    "setpoint": 57.5,
                    "warn_low": 42.5,
                    "warn_high": 74.75,
                    "alarm_low": 35,
                    "alarm_high": 84.5
                }
            ]
        },
        {
            "key": "vpd_air",
            "zone": "aerial",
            "engine": "environment",
            "label": "VPD",
            "unit": "kPa",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 0.8,
                    "warn_low": 0.51,
                    "warn_high": 1.15,
                    "alarm_low": 0.42,
                    "alarm_high": 1.3
                },
                {
                    "step": 1,
                    "setpoint": 0.8,
                    "warn_low": 0.51,
                    "warn_high": 1.15,
                    "alarm_low": 0.42,
                    "alarm_high": 1.3
                }
            ]
        },
        {
            "key": "co2_air",
            "zone": "aerial",
            "engine": "environment",
            "label": "CO₂",
            "unit": "ppm",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 600,
                    "warn_low": 340,
                    "warn_high": 920,
                    "alarm_low": 280,
                    "alarm_high": 1040
                },
                {
                    "step": 1,
                    "setpoint": 600,
                    "warn_low": 340,
                    "warn_high": 920,
                    "alarm_low": 280,
                    "alarm_high": 1040
                }
            ]
        },
        {
            "key": "air_circulation",
            "zone": "aerial",
            "engine": "environment",
            "label": "Air changes",
            "unit": "ACH",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 22.5,
                    "warn_low": 12.75,
                    "warn_high": 34.5,
                    "alarm_low": 10.5,
                    "alarm_high": 39
                },
                {
                    "step": 1,
                    "setpoint": 22.5,
                    "warn_low": 12.75,
                    "warn_high": 34.5,
                    "alarm_low": 10.5,
                    "alarm_high": 39
                }
            ]
        },
        {
            "key": "root_zone_temp",
            "zone": "root",
            "engine": "substrate",
            "label": "Root-zone temp",
            "unit": "°C",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 20,
                    "warn_low": 15.3,
                    "warn_high": 25.3,
                    "alarm_low": 12.6,
                    "alarm_high": 28.6
                },
                {
                    "step": 1,
                    "setpoint": 20,
                    "warn_low": 15.3,
                    "warn_high": 25.3,
                    "alarm_low": 12.6,
                    "alarm_high": 28.6
                }
            ]
        },
        {
            "key": "dissolved_oxygen_root",
            "zone": "root",
            "engine": "substrate",
            "label": "Dissolved O₂",
            "unit": "mg/L",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 7,
                    "warn_low": 5.1,
                    "warn_high": 9.2,
                    "alarm_low": 4.2,
                    "alarm_high": 10.4
                },
                {
                    "step": 1,
                    "setpoint": 7,
                    "warn_low": 5.1,
                    "warn_high": 9.2,
                    "alarm_low": 4.2,
                    "alarm_high": 10.4
                }
            ]
        },
        {
            "key": "substrate_moisture",
            "zone": "root",
            "engine": "substrate",
            "label": "Substrate moisture",
            "unit": "%",
            "schedule": [
                {
                    "step": 0,
                    "setpoint": 60,
                    "warn_low": 42.5,
                    "warn_high": 80.5,
                    "alarm_low": 35,
                    "alarm_high": 91
                },
                {
                    "step": 1,
                    "setpoint": 60,
                    "warn_low": 42.5,
                    "warn_high": 80.5,
                    "alarm_low": 35,
                    "alarm_high": 91
                }
            ]
        }
    ]
}