code wiki / _hdl_build / nx_beingctl.nx

nx_beingctl.nx

buildroot/runtime/_hdl_build/nx_beingctl.nx

16146 B312 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_beingctl -- the end-to-end being driver (plan rung S8, first slice). ★THE FINDING THAT STARTED THIS PROGRAM: ~110KB of gated organs, connected to NOTHING. Every stage below existed, was gated GREEN, and had never once been run in sequence. This organ is the sequence. build: nx_body_proc (params -> canon) -> nx_body_gen (canon -> mesh) -> nx_flexbody (pose flex) -> nx_fascia (fascia/fat as soft body) bench: nx_twinbench rms through its machine channel Composition, not reimplementation: this organ owns no canon rule, no mesh math, no metric. It forks the organs that do and FAILS LOUD per stage with distinct exits, deleting its target first so a failed run can never leave a stale artifact that reads as success. ✅RETRACTED 2026-08-03 (was: "fascia is NOT in this slice -- nx_fascia exists only on the NAS SSOT"). The condition it named is satisfied: driver and organ are both on the NAS tree, nx_fascia is 7/7 GREEN there, and the stage is wired as stage 4 behind an OPT-IN flag, so fascia=0 is bit-identical to the pre-fascia chain. ⚠STILL NOT IN THIS CHAIN: nx_softtissue.nx, the 3D layered XPBD tet cage that is the estate's most capable tissue model -- it is imported by its three gates and NOTHING else (debt 1785766330). fascia here is nx_softdyn's spring-damper lattice, a strictly coarser tier. usage: nx_beingctl build <out.nxmesh> <sex> <build> <musc> [flex_deg] [fascia] nx_beingctl bench <cand.nxmesh> <ref.nxmesh> [stature_mm] nx_beingctl selftest

dependencies 1 imports · 0 importers

nx_gate_verdict.nx nx_beingctl.nx

imports: nx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main bc_streq bc_gate gv_ctr sys_mmap gv_head gv_puts sys_write bc_build sys_unlinkat bc_itoa bc_run sys_fork sys_execve sys_wait4 wait_exit_code bc_pick bc_exists sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close gv_check gv_puts ↻ bc_rms sys_pipe2 bc_pick ↻ sys_fork ↻ sys_dup3 bc_itoa ↻ sys_execve ↻ sys_read ↻ sys_wait4 ↻ bc_atoi bc_puts bc_pn gv_verdict gv_puts ↻

structs

none

consts

26const BC_STATURE: i64 = 1750
27const BC_RADIAL: i64 = 10
28const BC_SUB: i64 = 1
29const BC_RELIEF: i64 = 0
30const BC_SAMPLES: i64 = 3000

functions

32func bc_puts(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 2: bc_gatemain
33func bc_pn(v: i64) -> i64
called by 2: bc_gatemain
42func bc_streq(a: *u8, b: *u8) -> i64
called by 1: main
47func bc_atoi(s: *u8) -> i64
called by 2: bc_rmsmain
53func bc_itoa(v: i64, b: *u8) -> *u8
called by 2: bc_rmsbc_build
74func bc_exists(pth: *u8) -> i64
called by 1: bc_pick
80func bc_pick(promoted: *u8, devpath: *u8) -> *u8
called by 2: bc_rmsbc_build calls 1: bc_exists
85func bc_run(path: *u8, a: *i64, nargs: i64) -> i64
104func bc_rms(cand: *u8, ref: *u8, stature: i64) -> i64
144func bc_build(outp: *u8, sex: i64, bld: i64, msc: i64, flex: i64, fasc: i64, tmpc: *u8, tmpraw: *u8, tmpfas: *u8) -> i64
195func bc_gate() -> i64
275func main(argc: i64, argv: *i64) -> i64