code wiki / (root) / nx_garment_gen_gate.nx

nx_garment_gen_gate.nx

buildroot/runtime/nx_garment_gen_gate.nx

8005 B147 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic garment
docsdependenciesstructsconstsfunctions

about

nx_garment_gen_gate.nx -- THE GATE FOR THE GARMENT MESH GENERATOR (2026-08-30). In-process: it imports nx_garment_gen_lib and grows every garment on the SERVED NPC asset, so there is no stale artifact between the rule and the subject and a mutation of the lib reaches every tooth. Teeth per kind: triangles present . hems closed and manifold . one hem strip per boundary edge . shell clear of the skin by the fabric thickness . straps present and ending on their landmarks; then determinism (a second build folds to the same checksum), the served GARM (when shipped) identical to a fresh build, and two bite-proven controls: zero thickness is REFUSED, and the clearance tooth FIRES on an un-pushed shell (so it is not vacuous). nx_garment_gen_gate [asset.nxa] [served.nxa] defaults: sites/nishifamily/world/ref9d.nxa, ref9e.nxa EXIT: 0 GREEN . 1 RED . 3 SKIP (the asset could not be read -- no evidence about the generator) license_tier: ORIGINAL. No hw writes (Rule 26). No fixture written anywhere.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_nxa.nx nx_gate_verdict.nx nx_garment_gen_lib.nx nx_garment_gen_gate.nx

imports: nx_syscalls.nxnx_nxa.nxnx_gate_verdict.nxnx_garment_gen_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_mmap ↻ sys_map_file sys_openat_rd sys_lseek sys_close gv_need gv_puts ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻ gv_num ↻

structs

none

consts

17const GGG_ASSET_DEFAULT: *u8 = "sites/nishifamily/world/ref9d.nxa"
18const GGG_SERVED_DEFAULT: *u8 = "sites/nishifamily/world/ref9e.nxa"
19const GGG_STRAP_TOL_DM: i64 = 700 // the strap sampler's own search band: an end inside it is ON the landmark

functions

21func ggg_name(buf: *u8, k: i64, tail: *u8) -> *u8
called by 1: main
32func main(argc: i64, argv: *i64) -> i64