code wiki / _hdl_build / nx_beingctl.nx
nx_beingctl.nx
buildroot/runtime/_hdl_build/nx_beingctl.nx
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
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
structs
| none |
consts
| 26 | const BC_STATURE: i64 = 1750 |
| 27 | const BC_RADIAL: i64 = 10 |
| 28 | const BC_SUB: i64 = 1 |
| 29 | const BC_RELIEF: i64 = 0 |
| 30 | const BC_SAMPLES: i64 = 3000 |
functions
| 32 | func 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 } |
| 33 | func bc_pn(v: i64) -> i64 |
| 42 | func bc_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 47 | func bc_atoi(s: *u8) -> i64 |
| 53 | func bc_itoa(v: i64, b: *u8) -> *u8 |
| 74 | func bc_exists(pth: *u8) -> i64 called by 1: bc_pick |
| 80 | func bc_pick(promoted: *u8, devpath: *u8) -> *u8 |
| 85 | func bc_run(path: *u8, a: *i64, nargs: i64) -> i64 |
| 104 | func bc_rms(cand: *u8, ref: *u8, stature: i64) -> i64 |
| 144 | func bc_build(outp: *u8, sex: i64, bld: i64, msc: i64, flex: i64, fasc: i64, tmpc: *u8, tmpraw: *u8, tmpfas: *u8) -> i64 |
| 195 | func bc_gate() -> i64 |
| 275 | func main(argc: i64, argv: *i64) -> i64 |