code wiki / _hdl_build / nx_flip_hazard.nx

nx_flip_hazard.nx

buildroot/runtime/_hdl_build/nx_flip_hazard.nx

6921 B155 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic flip
docsdependenciesstructsconstsfunctions

about

nx_flip_hazard.nx -- THE WEAR-AND-TEAR MEMBER of the FlipOrgan family. nx_flip_hazard <class> <comp> <usage_now> <hold> <repair_cost> [plane-prefix-root] WHY IT EXISTS (measured on the LIVE engine 2026-08-08, not assumed): nx_flip_score decides with `margin = lift - repair`, verified exactly across all 8 parts of the FOCUS13A deal, and the findings plane's `cond` column appears in ZERO decisions. So a part the engine declines to fix carries a RISK OF FAILING that is priced at ZERO. For the DPS6 dual-clutch that unpriced risk is 29.3%-51.9% of the entire p10 downside margin. It reads observations ITSELF from <root>obs- (id|class|comp|usage|source) -- the caller never types a failure rate, exactly as nx_flip_score reads parts rather than being handed a repair total. Thresholds come from <root>hzcfg- (class|min_obs|min_r2_bps|note), never from code. ASSET-AGNOSTIC: `usage` is miles for a car, trading days for an FX drawdown, cycles for a battery. PROVEN on both -- DPS6 beta=1.7274 (WEAR-OUT) vs EUR/USD drawdowns beta=0.6226 (PERSISTENT). Opposite regimes from one estimator; car logic applied to FX would be backwards. PROVENANCE CEILING, printed on every run because it bounds every number downstream: NHTSA complaints are SELF-REPORTED with no exposure denominator, so this is the hazard of COMPLAINT ARRIVAL, not of failure. Real evidence about shape and ordering; NOT a fleet-calibrated census. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_flip_lib.nx nx_hazard_lib.nx nx_syscalls.nx nx_flip_hazard.nx

imports: nx_flip_lib.nxnx_hazard_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main fx_puts sys_write sys_exit fx_atoi sts_mm sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sts_werr sys_write ↻ sys_exit ↻ fx_plane sts_mm ↻ sts_load sts_gen_note sts_pfxhash ss_max_segid sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_segid_ok ss_open_cached

structs

none

consts

26const FH_ARGC_MIN: i64 = 6
27const FH_ARG_PFX: i64 = 6
28const FH_OBS_CLASS: i64 = 1
29const FH_OBS_COMP: i64 = 2
30const FH_OBS_USAGE: i64 = 3
31const FH_CFG_MINOBS: i64 = 1
32const FH_CFG_MINR2: i64 = 2
33const FH_MAXOBS: i64 = 4096
34const FH_SLOTS: i64 = 8

functions

36func main(argc: i64, argv: *i64) -> i64