code wiki / (root) / nx_nxa_groom_gate.nx

nx_nxa_groom_gate.nx

buildroot/runtime/nx_nxa_groom_gate.nx

14496 B369 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic nxa
docsdependenciesstructsconstsfunctions

about

nx_nxa_groom_gate.nx -- THE GROOM GATE v3: anatomical invariants on a generated groom asset. WHY (operator 2026-08-26, twice in one day): first a backwards groom shipped because the referee plot inherited the organ's own facing assumption; then a head-covering wrap shipped because 794 permil of synthesized roots sat INSIDE the skull and hair grew out of the volume. Both defects are now BANKED REAL ASSETS and both are teeth here. v2 replaces the v1 facing basis (an extreme-extent nose test, itself refuted: the dense face mesh drags the centroid so the sparse occiput measures the larger extent) with the same basis the groom organ now uses: the estate rig convention ANTERIOR-NEGATIVE = FACE, cross-checked by mesh density, refusing on disagreement. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_nxa_groom_gate.nx

imports: nx_syscalls.nxnx_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 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_mmap ↻ gg_stats sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close gg_rd64 gg_tageq gg_isqrt gv_need gv_puts ↻ gg_dump gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻

structs

none

consts

14const GG_SUBJECT: *u8 = "sites/nishifamily/world/ref9d.nxa"
15const GG_FIX_HIJAB: *u8 = "knowledge/banked_ref9d_hijab.nxa" // real defect 2: face-side roots + interior fill
16const GG_FIX_BACKWARDS: *u8 = "knowledge/banked_ref9d_backwards.nxa" // real defect 1: interior fill (its facing is the correct side)
17const GG_HDR: i64 = 32
18const GG_TOCE: i64 = 32
19const GG_WORDS: i64 = 24
20const GG_PTS: i64 = 8
21const GG_HEADBAND_PERMIL: i64 = 120
22const GG_MIN_STRANDS: i64 = 4800
23const GG_LEN_LO_PERMIL: i64 = 180
24const GG_LEN_HI_PERMIL: i64 = 400
25const GG_CONF_MAX_PERMIL: i64 = 1300
26const GG_FACE_CONE_PERMIL: i64 = 350
27const GG_EYE_DROP_PERMIL: i64 = 40
28const GG_FACE_MAX_PERMIL: i64 = 80
36const GG_FAR_MAX_PERMIL: i64 = 100
37const GG_FAR_FIX_MIN_PERMIL: i64 = 200
38const GG_SPACING_SAMPLES: i64 = 128

functions

40func gg_rd64(b: *u8, o: i64) -> i64
called by 1: gg_stats
46func gg_tageq(b: *u8, o: i64, t: *u8) -> i64
called by 1: gg_stats
51func gg_isqrt(n: i64) -> i64
called by 1: gg_stats
63func gg_stats(path: *u8, out: *i64) -> i64
299func gg_dump(tag: *u8, o: *i64) -> i64
called by 1: main calls 2: gv_putsgv_num
315func main(argc: i64, argv: *i64) -> i64