code wiki / _hdl_build / nx_optimism_audit.nx

nx_optimism_audit.nx

buildroot/runtime/_hdl_build/nx_optimism_audit.nx

7167 B143 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_optimism_audit.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 slen sys_openat_rd w sys_write sys_exit sys_mmap sys_getdents64 dirent_name ends_nx slen ↻ is_instrument slen ↻ has slen ↻ has ↻ sys_read sys_close dirent_reclen wn sys_mmap ↻ sys_write ↻

structs

none

consts

10const OA_MAGIC_262144: i64 = 262144
11const OA_MAGIC_4096: i64 = 4096
13const OA_CAP: i64 = 262144

functions

15func w(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
16func 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 }
called by 1: main calls 2: sys_mmapsys_write
17func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
20func has(h: *u8, hn: i64, nd: *u8) -> i64
called by 2: is_instrumentmain calls 1: slen
33func ends_nx(nm: *u8) -> i64
called by 1: main calls 1: slen
42func is_instrument(nm: *u8) -> i64
called by 1: main calls 2: slenhas
51func main(argc: i64, argv: *i64) -> i64