compliance: grade on water too, and retire the two magic floats (re-land) #76
Loading…
Reference in a new issue
No description provided.
Delete branch "compliance/composite-grade-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Re-land of #71. That PR reported
merged=Trueand closed, but its content never reachedmain— the same silent clobber this repo hit with #66 earlier. Verified by content probe, not merge status. Rebased onto currentmainand re-verified: 50 tests pass.EedReport::is_compliant()waspue < 1.5 && renewable_pct >= 50.0— two hardcoded floats with no provenance, sitting in the same crate as theBandingScaleadded to replace exactly that pattern. It also silently ignored water, whileEedReporthas been collectingwater_usage_litersall along and the schemes grade on power and water.The test that proves the deprecation, rather than arguing it: a facility with PUE 1.10 and 2.0 L/kWh passes
is_compliant()while its actual grade is F.wue_milli_l_per_kwh()returnsNone, not 0, when IT energy is zero — a 0 would read as perfect water efficiency for a facility that reported nothing.CompositeRatingcombines metrics under a declared rule ("worst of" and "mean of" give different letters for one facility), and keeps its components so a reader sees which axis set the grade.grade()takes the scales rather than embedding any — which thresholds apply is the instrument's business.is_compliantis deprecated rather than deleted: it's public API, and the note carries the reasoning to the call site.🤖 Generated with Claude Code