code wiki / _hdl_build / nx_ge_census.nx
nx_ge_census.nx
buildroot/runtime/_hdl_build/nx_ge_census.nx
about
nx_ge_census.nx -- R0 KEYSTONE of the 5-pillar sovereign game engine: the honest, data-driven
MATURITY SCORECARD (mirrors the charter's nx_evolution_ladder + the image-stack R0 genesis gate).
One row per (pillar x capability), graded ABSENT->PRESENT->PARITY->EXCEEDS from EVIDENCE. The gate
LIAR-KILLS any PARITY/EXCEEDS row lacking measured evidence (a has_ev flag set only when a real gate/
head-to-head backs it), so no "beats X" can be claimed without proof -- by construction. Negative
control proves the liar-kill fires. Grades are HONEST 2026-06-20 (reuse-verified in the tree);
EXCEEDS=0 across engine pillars -- nowhere near S-class yet, exactly as the charter's ladder reports.
Later rungs EARN PARITY/EXCEEDS by attaching a measured gate (set has_ev=1 + name the gate).
NOTE: uses an explicit has_ev:i64 flag, NOT empty-string-literal tests (slen("") is unreliable here).
100% sovereign. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 13 | const G_ABSENT: i64 = 0 |
| 14 | const G_PRESENT: i64 = 1 |
| 15 | const G_PARITY: i64 = 2 |
| 16 | const G_EXCEEDS: i64 = 3 |
functions
| 18 | func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func sn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 } |
| 21 | func grade_name(g: i64) -> i64 |
| 30 | func cap_valid(grade: i64, has_ev: i64) -> i64 |
| 35 | func row(pillar: *u8, cap: *u8, grade: i64, evidence: *u8, has_ev: i64, tot: *i64) -> i64 |
| 44 | func main() -> i64 |