code wiki / (root) / nx_maint_asset.nx

nx_maint_asset.nx

buildroot/runtime/nx_maint_asset.nx

4775 B102 linesdepth 1pulls 1 transitivereach 3 importersview sourcekind librarytopic maint
docsdependenciesstructsconstsfunctions

about

nx_maint_asset.nx -- the universal maintenance SPINE: a data-driven asset/ spec model + physics-kernel dispatch. PROVES the platform thesis -- ONE verdict engine + per-asset spec DATA -> MANY assets -- by routing thermal assets (HVAC, water heater, fridge, dryer, oven) through the SAME proven thermal kernel (nx_hvac_efficiency) with different specs. Operator (2026-06-23): expand HVAC efficiency into a universal maintenance platform (cars/house/plumbing/hvac/tools), monitor + fix + replace, DIYer -> enterprise do-it-for-you. Confirmed direction: spine-first; first vertical after the spine = appliances & water heater (which reuses THIS kernel). The asset's healthy ENVELOPE lives in AssetSpec = DATA (CLAUDE.md #6/#11), not code. A new thermal asset = a new spec, ZERO new physics. Declared-but- unbuilt kernels return NOT_IMPLEMENTED (honest -- never a fake verdict). NEVER-BRICK (#26): pure dispatch over read-only measurement; writes nothing to any device. No firmware path exists here. genealogy_id: project-maintenance-platform-sclass-2026-06-23 (SPINE R1) license_tier: ORIGINAL nx_capability_claims: needs: [pointer_arithmetic] provides: [data_driven_asset_spec, physics_kernel_dispatch, thermal_kernel_reuse_multi_asset, honest_not_implemented] safety: [no_floating_point, no_syscall, read_only_no_device_write, no_firmware_write_by_construction, sealed_enum_kernel] verdict: [sealed_enum, no_silent_failure] license: ORIGINAL kind: maintenance_runtime_primitive

dependencies 1 imports · 3 importers

nx_hvac_efficiency.nx nx_maint_asset.nx nx_maint_asset_test.nx nx_maint_specs.nx nx_maint_specs_test.nx

imports: nx_hvac_efficiency.nx

imported by: nx_maint_asset_test.nxnx_maint_specs.nxnx_maint_specs_test.nx

structs

72struct AssetSpec

consts

35const NX_MAINT_CLASS_HVAC: i64 = 0
36const NX_MAINT_CLASS_WATER_HEATER: i64 = 1
37const NX_MAINT_CLASS_REFRIGERATOR: i64 = 2
38const NX_MAINT_CLASS_DRYER: i64 = 3
39const NX_MAINT_CLASS_TOOL: i64 = 4
40const NX_MAINT_CLASS_PUMP: i64 = 5
41const NX_MAINT_CLASS_N: i64 = 6
44const NX_MAINT_KERNEL_THERMAL_RESPONSE: i64 = 0 // BUILT (nx_hvac_efficiency)
45const NX_MAINT_KERNEL_ROTATING_MACHINE: i64 = 1 // declared, not built
46const NX_MAINT_KERNEL_CONSUMABLE: i64 = 2 // declared, not built (printer-toner seed)
47const NX_MAINT_KERNEL_FLUID_SEAL: i64 = 3 // declared, not built
48const NX_MAINT_KERNEL_N: i64 = 4
52const NX_MAINT_NOT_IMPLEMENTED: i64 = 100 // kernel declared but unbuilt (honest)
53const NX_MAINT_BAD_SPEC: i64 = 101

functions

55func nx_maint_class_is_valid(c: i64) -> i64
called by 1: main
61func nx_maint_kernel_is_valid(k: i64) -> i64
87func nx_maint_analyze(spec: *AssetSpec, t_sec: *i64, value_mC: *i64, ambient_mC: *i64,