nx_meshrig_gate.nx
buildroot/runtime/nx_meshrig_gate.nx
about
nx_meshrig_gate.nx -- IS THE BIND REAL, OR JUST A SKIN SECTION THAT EXISTS?
Subject: ./nx_meshrig.elf (the serving-root binary; e2e fork, never an in-process re-derive).
THE DEFECT THIS GATE EXISTS TO CATCH: a RIGID bind -- every vertex nailed to one bone at full
weight -- satisfies "the asset has a SKIN section", loads in nx_nxa_play, reports
zero_weight_verts=0, and produces candy-wrapper garbage the moment anything poses. It is the
trivial wrong implementation, and presence-of-section cannot distinguish it from a real bind.
Two numbers can: under a rigid bind EVERY vertex has exactly one influence and the mean dominant
weight is 4096 (the q12 whole).
THE NEG-CONTROL NEEDS NO CODE MUTATION, WHICH IS WHY IT IS TRUSTWORTHY: a skeleton with ONE bone
IS a rigid bind, by construction. So the rigid case runs the SAME promoted binary down the SAME
code path with a different fixture -- there is no mutant to restore and no risk of measuring a
harness instead of the subject. A 4-joint skeleton must blend; a 2-joint skeleton must not.
FIXTURES ARE ASSEMBLED AT RUNTIME under /tmp/nxmeshriggate/ (a gate must not share its fixture
with a production beat, and a teardown does not run when a run crashes). The mesh fixture is
emitted here as real NXMSH2 bytes, including a real IEEE754 f32 encoder, because a fixture the
defect cannot fail is not a test.
SUBPROCESS CAPTURE COMPOSES nx_gatekit_lib. This is not a style preference: a hand-rolled
pipe/fork/exec in a sibling gate DEADLOCKED IN PRODUCTION today (50+ minutes in pipe_wait, zero
CPU, artifact frozen at its header) because an undrained pipe blocks forever. The banked law is
that fixtures and subprocess come from that lib; never re-roll them.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.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
| 31 | const MG_ELF: *u8 = "./nx_meshrig.elf" |
| 32 | const MG_DIR: *u8 = "/tmp/nxmeshriggate" |
| 33 | const MG_MESH: *u8 = "/tmp/nxmeshriggate/col.nxmesh" |
| 34 | const MG_SKP: *u8 = "/tmp/nxmeshriggate/multi.skel" |
| 35 | const MG_SKN: *u8 = "/tmp/nxmeshriggate/onebone.skel" |
| 36 | const MG_OUTP: *u8 = "/tmp/nxmeshriggate/multi.nxa" |
| 37 | const MG_OUTN: *u8 = "/tmp/nxmeshriggate/onebone.nxa" |
| 38 | const MG_OUTD: *u8 = "/tmp/nxmeshriggate/determinism.nxa" |
| 39 | const MG_MODE: i64 = 420 |
| 40 | const MG_Q12: i64 = 4096 |
| 43 | const MG_CAP: i64 = 65536 |
| 44 | const MG_TRIB: i64 = 84 |
| 45 | const MG_NTRI: i64 = 24 |
| 46 | const MG_STAT: i64 = 1750 |
| 47 | const MG_M23: i64 = 8388607 |
| 119 | const MG_ABSENT: i64 = 0 - 999999999 |
functions
| 49 | func mg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 53 | func mg_f32enc(v: i64) -> i64 called by 1: mg_write_mesh |
| 67 | func mg_put32(b: *u8, o: i64, w: i64) -> i64 called by 1: mg_write_mesh |
| 77 | func mg_write_mesh(path: *u8) -> i64 |
| 109 | func mg_write_text(path: *u8, s: *u8) -> i64 |
| 120 | func mg_after(buf: *u8, blen: i64, key: *u8) -> i64 |
| 156 | func mg_has(buf: *u8, blen: i64, needle: *u8) -> i64 |
| 168 | func mg_filesize(path: *u8) -> i64 |
| 176 | func main(argc: i64, argv: *i64) -> i64 |