code wiki / _hdl_build / nx_engine_census_gate.nx

nx_engine_census_gate.nx source

↩ module page · 126 lines · 15346 B

1// nx_engine_census_gate.nx -- ★THE ENGINE-CONVERGENCE INSTRUMENT (operator 2026-07-11: "combine the infinigen with 2// the metahuman and the procgen ... unreal and beyond levels"). Four pillars vs the BANKED engine ground truth 3// (Nanite/Lumen/World-Partition/MetaHuman + the staged procgen pipeline; engine_convergence_banked.txt, fetched): 4// score the UNIFIED SYSTEM, not organ presence. ADVERSARY = the islands check (four renderers, no shared scene -- 5// rung 1 just broke it). COACH = rung verdict + the next rungs, emitted in the report. Nishi-native mandate scored 6// as an axis. license_tier: ORIGINAL expect_exit: 0 7import "nx_syscalls.nx" 8 9func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 10func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 } 11func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } 12func contains(buf: *u8, n: i64, needle: *u8) -> i64 { 13 let m: i64 = slen(needle) 14 if m == 0 { return 1 } 15 var i: i64 = 0 16 while i + m <= n { 17 var k: i64 = 0 18 while k < m { if buf[i+k] != needle[k] { k = m + 9 } else { k = k + 1 } } 19 if k == m { return 1 } 20 i = i + 1 21 } 22 return 0 23} 24func fexists(path: *u8) -> i64 { 25 let szp: *i64 = sys_mmap(16) as *i64 26 let b: *u8 = sys_read_file(path, szp) 27 if (b as i64) == 0 { return 0 } 28 if szp[0] < 64 { return 0 } 29 return 1 30} 31func ocat(o: *u8, at: i64, s: *u8) -> i64 { var i: i64=0; var a: i64=at; while s[i]!=(0 as u8){o[a]=s[i]; a=a+1; i=i+1} return a } 32func ocatn(o: *u8, at: i64, v: i64) -> i64 { 33 let b: *u8 = sys_mmap(32) as *u8 34 var x: i64 = v 35 var i: i64 = 31 36 if x == 0 { b[i]=48 as u8; i=i-1 } 37 while x > 0 { b[i]=(48+x%10) as u8; x=x/10; i=i-1 } 38 var a: i64 = at 39 var j: i64 = i+1 40 while j < 32 { o[a]=b[j]; a=a+1; j=j+1 } 41 return a 42} 43func axis(rep: *u8, ro: *i64, bank: *u8, bankn: i64, name: *u8, needle: *u8, art: *u8, credit: i64, depth: i64, critic: *u8, sums: *i64) -> i64 { 44 var grounded: i64 = 0 45 if contains(bank, bankn, needle) == 1 { grounded = 1 } 46 var o: i64 = ro[0] 47 o = ocat(rep, o, "AXIS " as *u8); o = ocat(rep, o, name) 48 if grounded == 0 { o = ocat(rep, o, " UNGROUNDED -- EXCLUDED\n" as *u8); ro[0] = o; return 0-1 } 49 var af: i64 = 0 50 if slen(art) > 0 { af = fexists(art) } 51 var verdict: i64 = 0 52 if af == 1 { if credit == 1 { verdict = 1 } } 53 if verdict == 1 { if depth == 1 { verdict = 2 } } 54 if credit == 1 { if af == 0 { o = ocat(rep, o, " LIAR-KILL artifact MISSING -> GAP " as *u8) } } 55 if verdict == 2 { o = ocat(rep, o, " HAVE " as *u8) } 56 if verdict == 1 { o = ocat(rep, o, " PARTIAL " as *u8) } 57 if verdict == 0 { o = ocat(rep, o, " GAP " as *u8) } 58 o = ocat(rep, o, critic); o = ocat(rep, o, "\n" as *u8) 59 ro[0] = o 60 sums[0] = sums[0] + 1 61 if verdict == 2 { sums[1] = sums[1] + 1 } 62 if verdict == 1 { sums[2] = sums[2] + 1 } 63 return verdict 64} 65 66func main() -> i64 { 67 hw("=== nx_engine_census_gate -- the ENGINE-CONVERGENCE instrument (vs banked Nanite/Lumen/MetaHuman/procgen) ===\n" as *u8) 68 var fails: i64 = 0 69 let szp: *i64 = sys_mmap(16) as *i64 70 let bank: *u8 = sys_read_file("knowledge/engine_convergence_banked.txt" as *u8, szp) 71 let bankn: i64 = szp[0] 72 var t1: i64 = 0 73 if (bank as i64) != 0 { if bankn > 600 { t1 = 1 } } 74 if t1 == 1 { hw("T1 PASS engine ground truth banked ("); pn(bankn); hw(" bytes: Nanite/Lumen/WorldPartition/MetaHuman + staged procgen)\n" as *u8) } 75 else { fails=fails+1; hw("T1 FAIL bank missing\n" as *u8) } 76 77 let rep: *u8 = sys_mmap(131072) 78 let ro: *i64 = sys_mmap(16) as *i64 79 let sums: *i64 = sys_mmap(32) as *i64 80 var o: i64 = 0 81 o = ocat(rep, o, "ENGINE CONVERGENCE CENSUS -- 2026-07-11. Them = banked UE5 core (Nanite/Lumen/World Partition/MetaHuman, Karis SIGGRAPH 2021) + the staged procgen pipeline. Us = the UNIFIED system, artifact liar-killed. Scores the ENGINE, not the organs.\n\n" as *u8) 82 ro[0] = o 83 84 axis(rep, ro, bank, bankn, "unified scene " as *u8, "engine" as *u8, "knowledge/nx_engine_scene.png" as *u8, 1, 1, "HAVE (RUNG 1, NEW 2026-07-11): procedural world + walk-posed holistic being + Stanford bunny + props in ONE buffer through ONE z-buffered renderer, causally verified (remove a citizen -> frame changes, nx_engine_scene_gate); residual: the SDF world/being renderers still exist as separate islands beside the unified mesh path" as *u8, sums) 85 axis(rep, ro, bank, bankn, "nanite-class geometry" as *u8, "cluster" as *u8, "knowledge/nx_engine_lod.png" as *u8, 1, 0, "PARTIAL (R2, NEW 2026-07-11) -- and the FUSION, not a Nanite clone: ★GENERATIVE LOD for generated citizens (the being re-sampled from ITS OWN SDF at 18/30/46-unit cells -> 14096/5140/2166 tris, deterministic, ZERO stored clusters -- the generator IS the compression; beyond Nanite for generated content) + cluster decimation for AUTHORED corpus assets (bunny 69451->3514 tris; perceptual: 9.7x fewer tris, only 30 percent significant-diff px at distance) + a CAUSAL CAPACITY INVERSION (full-detail scene OVERFLOWS the caps = cannot exist; the LOD scene fits THREE beings, nx_engine_lod_gate); residual: their 128-tri cluster streaming/seamless stitching for authored geometry at Nanite scale (ecosystem QEM organ = the unbridged quality path)" as *u8, sums) 86 axis(rep, ro, bank, bankn, "lumen-class dynamic GI" as *u8, "Lumen" as *u8, "knowledge/nx_cornell_dyn.png" as *u8, 1, 0, "PARTIAL (R3, NEW 2026-07-11): the GI now REACTS -- cached form factors + INCREMENTAL invalidation (Surface-Cache-kin): moving the LIGHT re-lights via 20800 of 422500 pairs (20.3x less work) and is BIT-FOR-BIT equal to a full rebuild (integer determinism -- a proof float engines cannot make); moving GEOMETRY relocates the shadow (old spot 668->1189, new spot 635->16; red bleed +104->+184 when the lamp nears the red wall) -- nx_cornell_dyn_gate; residual vs Lumen: per-frame scale in full scenes, specular reflections, screen-space traces" as *u8, sums) 87 axis(rep, ro, bank, bankn, "world streaming " as *u8, "World Partition" as *u8, "knowledge/nx_engine_stream.png" as *u8, 1, 0, "PARTIAL (R6, NEW 2026-07-12 -- GENERATIVE streaming, the Cesium/World-Partition fusion): chunked working set REGENERATED FROM SEED as the viewer travels -- 10-station journey (32k units) whose cumulative world (68k verts) EXCEEDS the caps while every station fits (max 18k); revisit regenerates chunk BIT-IDENTICALLY (the seed IS the tile server -- Cesium needs 3D-Tiles servers, we need 8 bytes); same-LOD seams exact; eviction real (nx_engine_stream_gate). residual: their frustum-driven per-frame streaming, LOD-boundary skirts/stitching, WGS84 global frame, imagery layers" as *u8, sums) 88 axis(rep, ro, bank, bankn, "metahuman-class rig " as *u8, "MetaHuman" as *u8, "knowledge/nishi_being_walk.glb" as *u8, 1, 0, "PARTIAL: rigged, skinned, WALKING anatomical being (9 joints, exported .glb, in-world at rung 1) + peelable internal anatomy THEY LACK (⚠presence NOT correctness: labeled ellipsoid approximations, no atlas-derived shapes/proportions -- operator reality audit 2026-07-12); + R4 HANDS (4 fingers + thumb per hand, curl articulation, rig-bound) + ★Q4 CANON PROPORTIONS (2026-07-12: measured FROM THE SDF vs banked anthropometry -- 7.7 heads, legs 473 permille, arm 420, shoulder:hip 1.26, fingertips at mid-thigh, 5/5 in band, nx_anthro_gate) + ★MUSCLE-DRIVEN FACE EXPRESSIONS (smile/surprise/frown by contracting the modelled facial muscles, causally per-part proven -- nx_face_expr_gate); residual: their LEARNED face rig (FACS/blendshapes from capture, groom, LODs, 3Lateral/Cubic Motion pipelines)" as *u8, sums) 89 axis(rep, ro, bank, bankn, "staged procgen " as *u8, "continentalness" as *u8, "knowledge/nx_worldpipe.png" as *u8, 1, 0, "PARTIAL (R5 2026-07-12, DEMOTED by the operator reality audit: STRUCTURE real, CONTENT random): the ORDERED STAGED PIPELINE is real -- SIX independent parameter fields (temperature/humidity/CONTINENTALNESS/erosion/weirdness/river, decorrelation-measured) -> heights through a monotone SPLINE over continentalness -> ridged relief scaled by weirdness and FLATTENED by erosion (38/40 measured) -> river CARVER (101 land->river cells, causal on/off, 0 illegal fills) -> biomes from the parameter VECTOR not height (same-height desert-vs-forest pair proven) -> per-biome surface -> BIOME-AWARE features (trees/cacti/spruce/boulders, 0 violations) -> deterministic spawn; seed variety 771/1024 cells differ; residual: the content is RANDOM not coherent (rivers are noise bands that do NOT flow downhill -- no watershed; biomes ignore altitude lapse; erosion is a scalar not a process) + structures stage + 3D density/overhangs + lighting stage" as *u8, sums) 90 axis(rep, ro, bank, bankn, "hair / groom " as *u8, "MetaHuman" as *u8, "" as *u8, 0, 0, "GAP: fuzz displacement only (anatstack); no strand-based hair/groom system" as *u8, sums) 91 axis(rep, ro, bank, bankn, "physics " as *u8, "engine" as *u8, "knowledge/nx_engine_phys.png" as *u8, 1, 0, "PARTIAL (rung 1, NEW 2026-07-12): rigid-body point-mass physics ON the generated world -- gravity, terrain impact, restitution bounces (2 measured), rest EXACTLY on the surface (contact off 0), causal (no gravity = floats), and the whole trajectory BIT-DETERMINISTIC (hash-equal replays -- deterministic physics is an exceed float engines cannot match; nx_engine_phys_gate); residual: rotation/inertia, object-object collision, friction, joints/ragdoll" as *u8, sums) 92 axis(rep, ro, bank, bankn, "editor / tooling " as *u8, "engine" as *u8, "" as *u8, 0, 0, "GAP: no scene editor; scenes are authored in code (their engine IS an editor)" as *u8, sums) 93 axis(rep, ro, bank, bankn, "animation system " as *u8, "rig" as *u8, "knowledge/nx_walk_verify.png" as *u8, 1, 0, "PARTIAL: FK poses + walk cycle + skinned glTF animation (math-verified) + Q5 GROUND CONTACT (foot-planting solve, float measured then closed -- nx_footplant_gate); residual: blend trees, state machines, retargeting, weight shift/IK" as *u8, sums) 94 axis(rep, ro, bank, bankn, "asset pipeline " as *u8, "engine" as *u8, "knowledge/nishi_being_full.glb" as *u8, 1, 0, "PARTIAL: glTF export+import (multi-mesh, skinned, PBR) + OBJ + palette-PNG textures, conformance-proven on Khronos assets; residual: USD, editor round-trip, material graphs" as *u8, sums) 95 axis(rep, ro, bank, bankn, "render fidelity " as *u8, "photoreal" as *u8, "" as *u8, 0, 0, "GAP (operator reality audit 2026-07-12): output is CLAY -- flat vertex-colour Gouraud, no textures applied in any scene, no cast shadows; the field bar is MetaHuman/photoreal. Instrument: nx_reality_census_gate (score ~114)" as *u8, sums) 96 axis(rep, ro, bank, bankn, "content coherence " as *u8, "density" as *u8, "knowledge/nx_worldpipe.png" as *u8, 1, 0, "PARTIAL (Q3 2026-07-12, was GAP): HYDROLOGY is now real -- rivers are steepest-descent traces from high springs (7 traced, beds MONOTONE downhill 436->-30, 5 reach the SEA, water never flows uphill by construction) + ALTITUDE LAPSE (snow 54 percent on peaks vs 20 percent lowland, measured -- snow tops mountains BECAUSE they are cold) + alpine relief; residual: tributary merging/watershed density, erosion as a PROCESS, structures/settlements (nx_worldpipe_gate T4/T4b/T4c)" as *u8, sums) 97 axis(rep, ro, bank, bankn, "globe-scale geospatial" as *u8, "WGS84" as *u8, "" as *u8, 0, 0, "GAP (Cesium banked 2026-07-12): no WGS84-class global frame, no 3D-Tiles-class streamed tiles, no time-dynamic/4D layer -- our worlds are flat local patches (+-10km); INTEROP HOOK: their runtime asset is glTF = our conformance-proven loader; the fusion rung = R6 GENERATIVE STREAMING (chunks re-generated from seed on approach, zero stored tiles, deterministic integer coordinates)" as *u8, sums) 98 axis(rep, ro, bank, bankn, "nishi-native runtime" as *u8, "engine" as *u8, "runtime/nx_trimesh.nx" as *u8, 1, 1, "HAVE: every rung is nx_cc-NATIVE (x86 ELF, no gcc/GPU-driver/engine dependency = the Nishi OS lane) + every viewer page is zero-external-dep self-contained JS (runs in the Nishi browser lane and any browser); the .glb assets load natively via nx_gltf_load" as *u8, sums) 99 100 hw("\n" as *u8) 101 let grounded: i64 = sums[0] 102 let have: i64 = sums[1] 103 let part: i64 = sums[2] 104 let gap: i64 = grounded-have-part 105 let score: i64 = (have*1000 + part*400) / grounded 106 hw(" grounded="); pn(grounded); hw(" HAVE="); pn(have); hw(" PARTIAL="); pn(part); hw(" GAP="); pn(gap); hw(" SCORE="); pn(score); hw("/1000\n" as *u8) 107 var t2: i64 = 0 108 if grounded >= 10 { if have < grounded*3/4 { if part+gap >= 6 { t2 = 1 } } } 109 if t2 == 1 { hw("T2 PASS grounded + the critic BITES (the engine distance is named, not hidden)\n" as *u8) } 110 else { fails=fails+1; hw("T2 FAIL\n" as *u8) } 111 112 o = ro[0] 113 o = ocat(rep, o, "\nSCORE " as *u8); o = ocatn(rep, o, score); o = ocat(rep, o, "/1000 (HAVE " as *u8); o = ocatn(rep, o, have); o = ocat(rep, o, " / PARTIAL " as *u8); o = ocatn(rep, o, part); o = ocat(rep, o, " / GAP " as *u8); o = ocatn(rep, o, gap); o = ocat(rep, o, " of " as *u8); o = ocatn(rep, o, grounded); o = ocat(rep, o, ")\n" as *u8) 114 o = ocat(rep, o, "\nOUR EXCEEDS the engine field lacks: peelable INTERNAL ANATOMY in the rigged human - 100% integer determinism (bit-exact frames) - hardware-up sovereignty (no engine/driver dependency; runs from the Nishi OS lane up).\n" as *u8) 115 o = ocat(rep, o, "\nCOACH VERDICT: rung R1 (UNIFIED SCENE) ACHIEVED and causally verified -- the islands are broken. The system is an ENGINE SEED, not an engine: no LOD/streaming, static GI, code-authored scenes.\nCOACH LADDER (leverage-ordered, each researcher-grounded):\n R2 CLUSTER LOD (Nanite direction): split meshes into bounded clusters + distance-based LOD -> bunny at 5k tris far away; unlocks bigger worlds than the 48k-vert cap\n R3 DYNAMIC GI (Lumen direction): the radiosity solver re-solved on scene change; our SDF-native stack IS their software path's data structure\n R4 FULL-RIG HUMAN (MetaHuman direction): face blendshapes (anatstack) + hands onto the body rig, in-world\n R5 STAGED PROCGEN (the banked pipeline): six-parameter biomes -> surface -> carvers -> features as ordered stages over the unified scene\n R6 WORLD STREAMING (World Partition direction): chunked scene beyond the vert caps\n R7 EDITOR: the /world pages grow scene-authoring controls (Nishi-browser native)\n" as *u8) 116 rep[o] = 0 as u8 117 let fd: i64 = sys_openat_wr("knowledge/engine_census.txt\x00" as *u8, 0x1a4) 118 sys_write(fd, rep, o) 119 sys_close(fd) 120 hw("T3 report + coach ladder -> knowledge/engine_census.txt ("); pn(o); hw(" bytes)\n" as *u8) 121 122 if fails == 0 { hw("ENGINE-CENSUS GREEN -- convergence instrument standing: score "); pn(score); hw("/1000 vs the banked engine field; coach ladder emitted\n" as *u8); sys_exit(0); return 0 } 123 hw("ENGINE-CENSUS RED fails="); pn(fails); hw("\n" as *u8) 124 sys_exit(1) 125 return 1 126}