code wiki / (root) / nx_skull_canon_measure_t334.nx

nx_skull_canon_measure_t334.nx

buildroot/runtime/nx_skull_canon_measure_t334.nx

19916 B259 linesdepth 6pulls 13 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_skull_canon_gate.nx -- THE GENERATED SKULL AGAINST THE SCANNED ORACLE, LANDMARK BY LANDMARK (anatomy AN17, 2026-09-18). ACCEPT RULE, PRE-DECLARED BEFORE THE FIRST MEASUREMENT: (i) ONE locator (nx_tissuefield_lib.tfl_locate, composed through nx_skull_canon_lib) locates the craniometric landmark set on BOTH the oracle (knowledge/skull.nxmesh, BodyParts3D, CC BY-SA 2.1 Japan -- the RULER, never the product) and the generated skull (argv[1], else ./nx_skullsdf.elf run from the estate root at sex 0, robust 500, 2 mm cells: the tune's own parameters, because the oracle is one adult male). A generated skull the locator refuses is a RED, never a SKIP -- that IS the substrate defect; (ii) every quantity is compared relative to the nasion in each mesh's own upright frame (the oracle's file frame is z-up and is read as such) and HOLDS when |ours - oracle| <= band, band = the locator's re-location noise on the oracle plus on ours (half-edge shift, one-edge pitch, one-edge yaw, floored at half a mesh edge) plus the oracle's bilateral asymmetry where the quantity is paired. Nothing is typed; (iii) the classes: chin depth (pogonion - glabella, sagittal), nasal aperture position, height, width and depth, orbit spacing, height, width and depth, bizygomatic breadth, bigonial breadth, prosthion depth and upper face height, and THE SUBSTRATE THIRDS TOOTH MOVED HERE FROM nx_skullskin_gate (its header (iii): the skin's middle third equals its lower third within the tissue table's spread). On the SKULL the same spans are glabella->nasospinale and nasospinale->gnathion and the bar is the ORACLE's own imbalance, because a real skull's bony lower third is longer than its middle third and a canon of equal thirds would convict the ruler; (iv) neg-control-oracle-reads-inside-its-own-bands: two HELD-OUT rigid perturbations of the oracle (a negative half-edge shift, a one-edge roll) must read inside the bands built from the other three -- a band that only fits the perturbations it was read from is not a band; neg-control-a-planted-49mm-chin-shift-reads-outside: the oracle's own record with its pogonion moved 49 mm forward (the muzzle measured on the generated skull on 2026-09-18) must read OUTSIDE the chin band; (v) the alignment is a TRANSLATION to the nasion and no rotation (both meshes declare y up, z anterior; a rotation derived from the vault absorbed the generator's own vault defect, measured 2026-09-18), and the rotation it refuses to apply is itself a tooth: the glabella-opisthocranion chord's pitch. Every value is emitted (gv_kv / gv_check_near) for an outside adjudicator; the wall time is printed (the heavy roster's budget is read there). Fixtures under /tmp/nx_skull_canon_gate/. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_skull_canon_lib.nx nx_skull_canon_measure_t334.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_skull_canon_lib.nx

imported by: nobody (leaf or entry point)

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

main gv_head gv_puts sys_write gv_ctr 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 ↻ sys_now_ms sys_mmap ↻ sys_clock_gettime_mono sys_mkdir tfl_tab_new sys_mmap ↻ tfl_conf_load sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close tfl_split tfl_has tfl_slen tfl_streq tfl_row

structs

none

consts

33const SKG_DIR: *u8 = "/tmp/nx_skull_canon_gate"
34const SKG_SKULL: *u8 = "/tmp/nx_skull_canon_gate/skull.nxmesh"
35const SKG_ORACLE: *u8 = "/volume1/homes/elderwesto/nishihost/knowledge/skull.nxmesh"
36const SKG_CONF: *u8 = "/volume1/homes/elderwesto/nishihost/knowledge/tissue_depth.conf"
37const SKG_MODE755: i64 = 493
38const SKG_I64: i64 = 8
39const SKG_SEX_MALE: i64 = 0 // the oracle is an adult male; the tune fits at sex 0
40const SKG_ROBUST: i64 = 500 // the tune's robusticity
41const SKG_CELL_UM: i64 = 2000 // the skin gate's cell: 2 mm
42const SKG_RES_OFF: i64 = 0 // the residual layer is the oracle's field folded back; a rules ruler measures the rules
43const SKG_PLANT_CHIN_MM10: i64 = 490 // the muzzle measured 2026-09-18: pogonion 49 mm ahead of the glabella
44const SKG_PERMIL: i64 = 1000
45const SKG_ORACLE_Q: *u8 = "knowledge/gates/skull-oracle-measured-t334.dat" // the ruler's oracle readings, the tuner's landmark targets
46const SKG_ORACLE_Q_BYTES: i64 = 2048

functions

49func skg_write_oracle_q(RO: *i64, BO: *i64) -> i64
71func skg_print_lm(RO: *i64, RM: *i64, i: i64) -> i64
82func skg_tooth(name: *u8, q: i64, RO: *i64, RM: *i64, BO: *i64, BM: *i64, ctr: *i64) -> i64
96func main(argc: i64, argv: *i64) -> i64