{"$defs":{"EngineeringUnit":{"description":"Constrained engineering units for water/wastewater treatment.\n\nCodes follow QUDT / UN/CEFACT Rec 20 conventions with Python-safe\nidentifiers (underscores for slashes).  JSON values match the Python\nname except where noted (e.g. ``min_`` → ``\"min\"``).","enum":["m3_per_d","m3_per_h","L_per_s","L_per_min","MGD","gpm","mg_per_L","g_per_m3","ug_per_L","percent","mg_per_kg","kg_per_d","kg_per_h","t_per_d","degC","K","kPa","bar","psi","mH2O","kW","W","hp","kWh","MJ","m","mm","cm","m2","m3","L","kg","g","mg","s","min","h","d","m_per_s","m_per_min","kg_per_m3_per_d","kg_per_m2_per_d","PH","NTU","SVI_mL_per_g","V","A","ohm","Hz","mS_per_cm","uS_per_cm","meq_per_L","CFU_per_100mL","MPN_per_100mL","SU","L_per_m2_per_h","gpd_per_ft2","ppmv","BTU_per_scf","MJ_per_Nm3","mg_per_Nm3","percent_vol","mg_per_kg_dry","CFU_per_g","MPN_per_g","ug_per_m3","kg_per_yr","percent_VS_reduction","MPN_per_4g","Pt_Co"],"title":"EngineeringUnit","type":"string"},"VendorGuarantee":{"description":"Contractual performance commitment from equipment vendor.\n\nRecorded during procurement; compared against actual operations\ndata to produce GuaranteeComparison records.","properties":{"guarantee_id":{"format":"uuid","title":"Guarantee Id","type":"string"},"equipment_uid":{"format":"uuid","title":"Equipment Uid","type":"string"},"vendor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"FK to procurement.vendor","title":"Vendor Id"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Vendor Name"},"vendor_quote_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Vendor Quote Id"},"contract_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"default":null,"title":"Contract Id"},"metric":{"description":"What is guaranteed (e.g., 'availability', 'energy_per_m3')","title":"Metric","type":"string"},"guaranteed_value":{"title":"Guaranteed Value","type":"number"},"guaranteed_unit":{"anyOf":[{"$ref":"#/$defs/EngineeringUnit"},{"type":"null"}],"default":null},"guarantee_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Conditions under which guarantee applies","title":"Guarantee Condition"},"guarantee_period_months":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Guarantee Period Months"},"contractual_penalty":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Penalty clause reference if guarantee is not met","title":"Contractual Penalty"},"measurement_protocol":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Measurement Protocol"},"source_quote_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source Quote Ref"},"recorded_at":{"format":"date-time","title":"Recorded At","type":"string"}},"required":["equipment_uid","metric","guaranteed_value"],"title":"VendorGuarantee","type":"object"}},"description":"Machine-readable design intent for operations comparison.\n\nPublished at commissioning handover so Ensaras can compare\nactual plant performance against the design basis.","properties":{"baseline_id":{"format":"uuid","title":"Baseline Id","type":"string"},"project_ref":{"title":"Project Ref","type":"string"},"design_flow_m3_d":{"minimum":0,"title":"Design Flow M3 D","type":"number"},"design_influent_cod_mg_l":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Design Influent Cod Mg L"},"design_effluent_targets":{"additionalProperties":{"type":"number"},"description":"Parameter → target value (e.g., {'BOD5_mg_L': 10, 'TSS_mg_L': 10})","title":"Design Effluent Targets","type":"object"},"vendor_guarantees":{"items":{"$ref":"#/$defs/VendorGuarantee"},"title":"Vendor Guarantees","type":"array"},"design_energy_kwh_per_m3":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Design Energy Kwh Per M3"},"design_chemical_kg_per_m3":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Design Chemical Kg Per M3"},"published_at":{"format":"date-time","title":"Published At","type":"string"},"version":{"default":"1","title":"Version","type":"string"}},"required":["project_ref","design_flow_m3_d"],"title":"DesignPerformanceBaseline","type":"object","$id":"https://puranwater.com/schemas/design-performance-baseline.schema.json"}