code wiki / (root) / nx_hvac_efficiency_test.nx

nx_hvac_efficiency_test.nx

buildroot/runtime/nx_hvac_efficiency_test.nx

7092 B144 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_hvac_efficiency_test.nx -- gate for the independent HVAC efficiency verdict engine. Proves, from canned out-of-band traces (NO sockets, deterministic), that the verdict catches the three defects a "happy" thermostat hides, and that the verdict provably TRACKS the real temperature trajectory (liar-kill) so it cannot be a hard-coded constant. Coverage: - sealed-enum validity gate - S1 EFFICIENT : clean heat recovery, 1 cycle, good rate, tiny overshoot - S2 SHORT_CYCLING : oversized unit cycles 6x in 30 min (vendor hides this) - S3 DEGRADED_CAPACITY: runs 100% duty but barely moves temp (fouled/low charge) - S4 POOR_TRACKING : good rate + low cycling but overshoots setpoint hard - S5 IDLE : never ran -> not a fault, but loud (not "efficient") - S6 INSUFFICIENT_DATA: 1 sample -> loud, never a silent zero verdict - S7 BAD_ARG : invalid mode -> loud - LIAR-KILL : same timing, different indoor trajectory -> response rate AND verdict both move (slow->DEGRADED, fast->EFFICIENT) expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_hvac_efficiency.nx nx_hvac_efficiency_test.nx

imports: nx_syscalls_x86_64.nxnx_hvac_efficiency.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_hvac_verdict_is_valid nx_hvac_analyze nx_hvac_analyze_core nx_hvac_abs

structs

none

consts

none

functions

28func main() -> i64