code wiki / (root) / nx_maint_business.nx

nx_maint_business.nx

buildroot/runtime/nx_maint_business.nx

4221 B97 linesdepth 0pulls 0 transitivereach 3 importersview sourcekind librarytopic maint
docsdependenciesstructsconstsfunctions

about

nx_maint_business.nx -- prove the BUSINESS in modeling (no IRL spend). Converts the closed-loop simulator's MEASURED failure reduction into unit economics: customer value (avoided-failure cost vs subscription), customer ROI, and business margin/profit -- so the whole business is provable in software before investing a penny. Operator (2026-06-23): "without having to invest a penny irl till its proven via all modeling of the business, legal, sensors, hardware." This is the BUSINESS model layer; it consumes nx_maint_simloop's result (closed-loop ~6x fewer failures: 2 vs 13 / 20 cycles) as the failure-reduction input. Money in CENTS (integer/no-float). Verdict = is it a sustainable win-win (customer saves AND business profits)? -- the go/no-go on IRL investment. NEVER-BRICK (#26): pure arithmetic; no syscalls, no writes. genealogy_id: project-maintenance-platform-sclass-2026-06-23 (business-model layer) license_tier: ORIGINAL

dependencies 0 imports · 2 importers

nx_maint_business.nx nx_maint_business_test.nx nx_maint_simpage.nx

imports: none

imported by: nx_maint_business_test.nxnx_maint_simpage.nx

structs

34struct BizParams
43struct BizResult

consts

20const NX_BIZ_INVALID: i64 = 0
21const NX_BIZ_VIABLE: i64 = 1 // customer saves AND business profits
22const NX_BIZ_CUSTOMER_NEGATIVE: i64 = 2 // business profits but customer doesn't save (unsustainable)
23const NX_BIZ_BUSINESS_NEGATIVE: i64 = 3 // customer saves but business loses (unsustainable)
24const NX_BIZ_BOTH_NEGATIVE: i64 = 4
25const NX_BIZ_BAD_ARG: i64 = 5
26const NX_BIZ_N: i64 = 6

functions

28func nx_biz_verdict_is_valid(v: i64) -> i64
called by 1: main
52func nx_biz_model(p: *BizParams, out: *BizResult) -> i64
called by 2: mainmain