code wiki / _hdl_build / nx_collision_resolve_batch.nx

nx_collision_resolve_batch.nx

buildroot/runtime/_hdl_build/nx_collision_resolve_batch.nx

4896 B42 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic collision
docsdependenciesstructsconstsfunctions

about

nx_collision_resolve_batch.nx -- resolve shadow collisions per the operator's rule: "the more performant and capable should be wired into the nishi ecosystem all the way up." For each entry the LESS-capable copy is renamed OUT OF THE WAY (sovereign sys_renameat, reversible, NO delete) so the MORE-capable copy becomes the one `nx_sov_build_run <name>` resolves to (= wired in by name, all the way up). Each judged per-organ by READING both copies first. SAFETY: each rename aborts unless old exists AND new is free (no clobber). entry 0: nx_galx_thumb -- KEEP runtime/ (batch, CID-addressed /thumb/<CID>, fork-per-image, daemon-served); rename the _hdl_build/ one-shot bilinear CLI -> nx_galx_thumb_oneshot.nx. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_collision_resolve_batch.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main rw sys_write rb_n rb_old rb_new rexists sys_openat_rd sys_close sys_renameat rb_keep sys_mmap sys_write ↻ sys_exit

structs

none

consts

none

functions

11func rb_n() -> i64 { return 10 }
called by 1: main
12func rb_old(i: i64) -> *u8 { if i==0 { return "runtime/_hdl_build/nx_galx_thumb.nx" as *u8 } if i==1 { return "runtime/nx_cidr.nx" as *u8 } if i==2 { return "runtime/nx_telemetry.nx" as *u8 } if i==3 { return "runtime/nx_aec.nx" as *u8 } if i==4 { return "runtime/nx_extract.nx" as *u8 } if i==5 { return "runtime/nx_synth.nx" as *u8 } if i==6 { return "runtime/nx_clarity.nx" as *u8 } if i==7 { return "runtime/_hdl_build/nx_research_ledger.nx" as *u8 } if i==8 { return "runtime/nx_genealogist.nx" as *u8 } if i==9 { return "runtime/nx_raster.nx" as *u8 } return "" as *u8 }
called by 1: main
13func rb_new(i: i64) -> *u8 { if i==0 { return "runtime/_hdl_build/nx_galx_thumb_oneshot.nx" as *u8 } if i==1 { return "runtime/nx_cidr_smoke.nx" as *u8 } if i==2 { return "runtime/nx_telemetry_bus.nx" as *u8 } if i==3 { return "runtime/nx_aec_q15.nx" as *u8 } if i==4 { return "runtime/nx_func_extract.nx" as *u8 } if i==5 { return "runtime/nx_primitive_synth.nx" as *u8 } if i==6 { return "runtime/nx_image_clarity.nx" as *u8 } if i==7 { return "runtime/_hdl_build/nx_research_integrate.nx" as *u8 } if i==8 { return "runtime/nx_genealogist_gapscan.nx" as *u8 } if i==9 { return "runtime/nx_raster_legacy.nx" as *u8 } return "" as *u8 }
called by 1: main
14func rb_keep(i: i64) -> *u8 { if i==0 { return "runtime/nx_galx_thumb.nx (batch CID, more capable)" as *u8 } if i==1 { return "_hdl_build/nx_cidr.nx (UNIFIED lib: notation-parse + longest-prefix tier + match, merged, no loss)" as *u8 } if i==2 { return "DISTINCT caps both kept: nx_telemetry=_hdl_build consent-device-telemetry; bus preserved as nx_telemetry_bus" as *u8 } if i==3 { return "_hdl_build/nx_aec.nx (UNIFIED: NLMS+ERLE+gate, MERGED IN the Geigel double-talk detector; T5 verifies, no loss)" as *u8 } if i==7 { return "runtime/nx_research_ledger.nx (the RESEARCH_MEMORY library rl_query/rl_learn -- operator standing order 2026-06-16, now UN-SHADOWED + reachable + importable; the _hdl_build copy was a mis-named STATUS REPORT, renamed nx_research_integrate; two distinct caps, no loss)" as *u8 } if i==8 { return "_hdl_build/nx_genealogist.nx (the anti-DUPLICATION library -- don't rebuild what exists; stays canonical, imported); the runtime gap-SCANNER program -- find what's MISSING -- renamed nx_genealogist_gapscan; two distinct facets, no loss" as *u8 } if i==9 { return "_hdl_build/nx_raster.nx (THE rasterizer, 338 callers -- stays canonical); the runtime copy was DORMANT (0 callers per nx_collision_harm) = dead duplicate -> renamed _legacy, reversible, no loss" as *u8 } return "" as *u8 }
called by 1: main
16func rw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
17func rexists(p: *u8) -> i64 { let fd: i64=sys_openat_rd(p); if fd>=0 { sys_close(fd); return 1 } return 0 }
called by 1: main calls 2: sys_openat_rdsys_close
19func main() -> i64