code wiki / _hdl_build / nx_recombine_novelty_gate.nx

nx_recombine_novelty_gate.nx

buildroot/runtime/_hdl_build/nx_recombine_novelty_gate.nx

8663 B190 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_recombine_novelty_gate.nx -- THE R2 CLAIM GATE for the modeling lane (ladder head 1785858051). The ladder's top rung says: RECOMBINABLE = novel outputs sampled from the space, novelty PROVEN. nx_variant_mesh_gate already proves the 6 presets are valid + coarsely distinct; what it cannot say is that the generator RECOMBINES -- that a NEW point in the swap-slot space, one that is none of the presets, comes out valid and genuinely distinct, and that a duplicate would be CAUGHT. This gate proves exactly that: - a 7th, NOVEL recombinant tuple (human body + elf ears + tail, build 112 -- in the space, not in the preset list) is generated, closed, and distinct from all six presets - the distinctness floor is DATA-DERIVED (median pairwise distance / 8 = the near-duplicate band), never a magic constant: no pair may sit in the band - the NEGATIVE CONTROL regenerates a preset tuple and demands distance == 0: one measurement read from both sides -- generation is DETERMINISTIC (same tuple -> same descriptor) AND the duplicate detector provably fires below the floor (a tooth that cannot bite is not a tooth) Descriptor = shape + scale: a 4x4x4 occupancy histogram over the mesh's own bbox (per-mille, scale-free shape signature) + the bbox dimensions in grid units (so build-scale differences count). Integer-only throughout. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_sdfrender.nx nx_meshgen.nx nx_assetvariant.nx nx_recombine_novelty_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_sdfrender.nxnx_meshgen.nxnx_assetvariant.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_mmap ↻ sdf_bytes av_build sys_mmap ↻ av_base_human av_p av_base_wolf av_p ↻ av_base_goblin av_p ↻ av_slot_head av_p ↻ av_slot_ears av_p ↻ av_slot_tail av_p ↻ sdf_clear_ops mg_build mg_sample_sdf mg_fi sdf_eval sdf_ellip sdf_isqrt sdf_ellip_rot sdf_isqrt ↻ sdf_smax sdf_smin sdf_abs sdf_min sdf_smin ↻ mg_wc mg_step mg_extract mg_step ↻

structs

none

consts

25const RN_MESHES: i64 = 8 // 6 presets + 1 novel recombinant + 1 duplicate-of-preset0
26const RN_DESC: i64 = 68 // 64 hist cells + nverts + bbox dx dy dz

functions

29func rn_desc(vb: *i64, nv: i64, d: *i64) -> i64
called by 1: main
73func rn_dist(a: *i64, b: *i64) -> i64
called by 1: main
92func main(argc: i64, argv: *i64) -> i64