code wiki / _hdl_build / nx_pub_audit_run.nx

nx_pub_audit_run.nx

buildroot/runtime/_hdl_build/nx_pub_audit_run.nx

4505 B78 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_audit_run.nx -- R7b: run the no-bypass LAW audit over the REAL source tree to produce the MIGRATION WORKLIST. Walks runtime/ + runtime/_hdl_build/ (sovereign getdents64 via nx_dirent), runs pub_audit_file on each .nx, and reports every file that references the raw transport (nx_aw_send/nx_aw_push) yet is NOT part of the sanctioned publisher/transport family (allowlisted by prefix: nx_aw_, nx_pub, nx_url, nx_synced, nx_hostctl). Read-only (no migration here -- migration touches sibling files and is operator-coordinated). Emits the worklist to knowledge/publish/bypass_worklist.txt + stdout with a count. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_publisher.nx nx_dirent.nx nx_pub_audit_run.nx

imports: nx_syscalls.nxnx_publisher.nxnx_dirent.nx

imported by: nobody (leaf or entry point)

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

main aw sys_write sys_openat_wr sys_mmap rep sys_write ↻ ax_scan nx_openat sys_mmap ↻ nx_dirent_read nx_dirent_iter ax_ends_nx pub_join pub_pcat pub_audit_call_strict sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pub_forbidden_call pub_substr ax_allowed ax_starts rep ↻ sys_close ↻ an aw ↻ sys_mmap ↻ sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

10const K_MAGIC_131072: i64 = 131072

functions

12func aw(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 2: anmain calls 1: sys_write
13func an(v: i64) -> i64 { var m: i64=v; if m<0{aw("-" as *u8);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 i:i64=0; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 1: main calls 3: awsys_mmapsys_write
14func rep(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); sys_write(fd,s,n); return 0 }
called by 2: ax_scanmain calls 1: sys_write
16func ax_starts(s: *u8, pfx: *u8) -> i64 { var i: i64=0; while pfx[i]!=(0 as u8){ if s[i]!=pfx[i]{ return 0 } i=i+1 } return 1 }
called by 1: ax_allowed
18func ax_allowed(name: *u8) -> i64
called by 1: ax_scan calls 1: ax_starts
26func ax_ends_nx(name: *u8) -> i64
called by 1: ax_scan
34func ax_scan(dirpath: *u8, repfd: i64, st: *i64) -> i64
64func main() -> i64