code wiki / _hdl_build / nx_sota_status.nx

nx_sota_status.nx

buildroot/runtime/_hdl_build/nx_sota_status.nx

34774 B614 linesdepth 10pulls 15 transitivereach 0 importersview sourcekind tooltopic sota
docsdependenciesstructsconstsfunctions

about

nx_sota_status.nx -- THE HONESTY GATE, cross-domain (operator 2026-07-16: "an evidence repository ... that can clearly tell us where we are as far as compare gaps ... where there is debt ... where there are unique capabilities and where we stand as far as state of the art"). Reads EVERY knowledge/compare/<d>.matrix (the real, liar-killed evidence) + checks whether each domain has EXECUTABLE evidence (<d>.gates) vs claim-only, and emits ONE fresh status: per-domain SOTA standing, the UNIQUE moat (nishiExceed rows), the frontier GAPS (_ABSENT_ rows), and -- the meta-honesty number -- the EVIDENCE-BACKING ratio (executable-proven / total). Fresh by construction: computed live at run time (spin it up = current truth). Stamps sys_now_realtime. Usage: nx_sota_status (CWD = nxc2 root) license_tier: ORIGINAL expect_exit:0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_estate_path.nx nx_evidence_verdict.nx nx_evattest.nx nx_sota_status.nx

imports: nx_syscalls.nxnx_estate_path.nxnx_evidence_verdict.nxnx_evattest.nx

imported by: nobody (leaf or entry point)

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

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sw sys_write sn sys_mmap ↻ sys_write ↻ sys_mmap ↻ sys_openat_rd ↻ sys_getdents64 dirent_reclen ends_matrix sys_close ↻ ss_conf_num sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ ss_parse_num_after sys_read_file ↻ classify file_exists sys_openat_rd ↻ sys_close ↻ ss_stamp_load sys_mmap ↻ sys_read_file ↻ ss_parse_num_after ↻ ss_parse_tok_len ss_class_load

structs

none

consts

14const SS_MAXD: i64 = 128
19const SS_DEF_TTL_SEC: i64 = 604800
20const SS_DEF_MIN_CLASSES: i64 = 2
21const SS_DEF_REQ_HUMAN: i64 = 1

functions

23func sw(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
24func sn(v: i64) -> i64 { let b:*u8=sys_mmap(24); var m:i64=v; if m<0{sys_write(1,"-" as *u8,1);m=0-m} let t:*u8=sys_mmap(24); 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 j:i64=0; while j<k{b[j]=t[k-1-j];j=j+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
25func swn(base: *u8, off: i64, len: i64) -> i64 { sys_write(1, ((base as i64)+off) as *u8, len); return 0 }
called by 1: main calls 1: sys_write
26func ss_wf(fd: i64, s: *u8) -> i64 { var n:i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
27func ss_wnf(fd: i64, v: i64) -> i64 { let t:*u8=sys_mmap(28); var m:i64=v; 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} let b:*u8=sys_mmap(28); var i:i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(fd,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
30func ends_matrix(name: *u8) -> i64
called by 1: main
40func classify(buf: *u8, s: i64, e: i64) -> i64
called by 1: main
73func file_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
79func ss_has(buf: *u8, n: i64, needle: *u8, nl: i64) -> i64
97func ss_parse_num_after(buf: *u8, n: i64, key: *u8, kl: i64) -> i64
119func ss_parse_tok_len(buf: *u8, n: i64, key: *u8, kl: i64) -> i64
called by 1: ss_stamp_load
146func ss_conf_num(key: *u8, kl: i64, defval: i64) -> i64
166func ss_row_has(buf: *u8, s: i64, e: i64, needle: *u8) -> i64
called by 1: ss_class_load
180func ss_class_load(arena: *u8, doff: i64, domlen: i64, now: i64, ttl: i64, r: *i64) -> i64
278func ss_stamp_load(arena: *u8, doff: i64, domlen: i64, r: *i64) -> i64
320func main(argc: i64, argv: *i64) -> i64