code wiki / _hdl_build / nx_uigen_census.nx

nx_uigen_census.nx

buildroot/runtime/_hdl_build/nx_uigen_census.nx

10835 B144 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic uigen
docsdependenciesstructsconstsfunctions

about

nx_uigen_census.nx -- census of AUTONOMOUS UI GENERATION capability vs SOTA (operator: benchmark the real thing + review Claude's optimism + real roadmap). Reads knowledge/registry/uigen_features.conf. LIAR-KILL: every HAVE/PARTIAL/EXCEED opens runtime/<organ> (missing -> UNGROUNDED). ★THE ADVERSARIAL MOVE: it computes a GENERATION sub-score SEPARATE from a CRAFT sub-score, so "the kit scores 941 therefore we're good" is REFUTED by construction (craft-high, generation-low). Then emits the graded roadmap L0->L4 (no cliff). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_uigen_census.nx

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

main sys_mmap sys_openat_rd cp sys_write sys_exit sys_read sys_close cseq cwrite sys_write ↻ cscore cn sys_write ↻ sys_mmap ↻

structs

none

consts

8const K_MAGIC_262144: i64 = 262144
9const K_MAGIC_1024: i64 = 1024

functions

11func cp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
12func cn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 }
called by 1: main calls 2: sys_writesys_mmap
13func cseq(buf: *u8, off: i64, len: i64, lit: *u8) -> i64 { var i: i64=0; while i<len { if lit[i]==(0 as u8) { return 0 } if buf[off+i]!=lit[i] { return 0 } i=i+1 } if lit[len]!=(0 as u8) { return 0 } return 1 }
called by 1: main
14func cwrite(buf: *u8, off: i64, len: i64) -> i64 { sys_write(1, (((buf as i64)+off) as *u8), len); return 0 }
called by 1: main calls 1: sys_write
16func cscore(have: i64, part: i64, exc: i64, tot: i64) -> i64 { if tot==0 { return 0 } return (have*2 + exc*2 + part)*1000/(tot*2) }
called by 1: main
18func main() -> i64