nx_ui_judge.nx
buildroot/runtime/nx_ui_judge.nx
about
nx_ui_judge.nx -- the AUTONOMOUS UI competency judge. Reads a data-driven rubric (web_assets/ui_rubric.conf:
dim|weight|label|marker, grounded in the Awwwards axes + the banked aw_*/brand_* research), then SCORES every
page in the ship manifest (web_assets/ui_ship.conf) and AUTO-CERTIFIES pass/fail against a competency threshold
-- so an emitted page is judged WITHOUT a human reviewing it per-site. Composes nx_uxcx_grade's pure uxg_has.
REPRODUCIBLE: deterministic sovereign organ (nx_cc->nxasm), rubric is editable data. HONEST: it scores the
COMPUTABLE design-craft subset and certifies a FLOOR ("meets the measurable award-craft bar"), NOT subjective
award-winning beauty (that ceiling stays a human/jury). license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_uxcx_grade.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
| 10 | const K_MAGIC_1024: i64 = 1024 |
| 12 | const THRESH: i64 = 800 // S-class competency floor, in permil (0..1000) |
functions
| 14 | func jw(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 { n=n+1 } sys_write(1,s,n); return 0 } called by 1: main |
| 15 | func jn(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-(m/10)*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 } called by 1: main |
| 16 | func wslice(base: *u8, off: i64, len: i64) -> i64 { sys_write(1, ((base as i64)+off) as *u8, len); return 0 } called by 1: main |
| 17 | func pmil(a: i64, b: i64) -> i64 { if b==0 { return 0 } return (a*1000)/b } called by 1: main |
| 19 | func feq(base: *u8, off: i64, len: i64, lit: *u8) -> i64 called by 1: main |
| 25 | func slice_z(base: *u8, off: i64, len: i64) -> *u8 { let out: *u8=sys_mmap(K_MAGIC_1024); var i: i64=0; while i<len { out[i]=base[off+i]; i=i+1 } out[i]=0 as u8; return out } called by 1: main |
| 26 | func splitp(base: *u8, ls: i64, le: i64, foff: *i64, flen: *i64) -> i64 called by 1: main |
| 32 | func atoi_sl(base: *u8, off: i64, len: i64) -> i64 called by 1: main |
| 38 | func dim_idx(base: *u8, off: i64) -> i64 called by 1: main |
| 47 | func main() -> i64 |