code wiki / _hdl_build / nx_optimism_audit.nx
nx_optimism_audit.nx
buildroot/runtime/_hdl_build/nx_optimism_audit.nx
about
nx_optimism_audit.nx -- the GRADER OF GRADERS. Operator 2026-07-24: make every grader/judge/census
cynical or incredibly accurate. This scans the instrument family and, DEFAULTING TO SUSPICIOUS, flags any
instrument that awards positive verdicts (PRESENT/HAVE/EXCEEDS/GREEN) without earning trust:
CYNICAL -- adopts the shared cynical bar (imports nx_honesty_grade_lib / calls hg_grade). Trusted.
SYNTH-BAR-- has a negative control BUT still grades on a synthetic bar and has NOT adopted hg_grade.
BARE -- awards positive verdicts with ZERO skepticism machinery. The worst; optimism unchecked.
It is itself a regression guard: a NEW optimistic instrument shows up here on the next run.
nx_optimism_audit [dir] (default runtime/_hdl_build) 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
| 10 | const OA_MAGIC_262144: i64 = 262144 |
| 11 | const OA_MAGIC_4096: i64 = 4096 |
| 13 | const OA_CAP: i64 = 262144 |
functions
| 15 | func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func wn(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(1,b,k); return 0 } |
| 17 | func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 20 | func has(h: *u8, hn: i64, nd: *u8) -> i64 |
| 33 | func ends_nx(nm: *u8) -> i64 |
| 42 | func is_instrument(nm: *u8) -> i64 |
| 51 | func main(argc: i64, argv: *i64) -> i64 |