code wiki / (root) / nx_librarian_audit_gate.nx

nx_librarian_audit_gate.nx

buildroot/runtime/nx_librarian_audit_gate.nx

7123 B183 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic librarian
docsdependenciesstructsconstsfunctions

about

nx_librarian_audit_gate.nx -- LIBRARIAN rung-1 GATE + the live census console. Proves classification and tallies EXACTLY on a synthetic fixture directory (known files, known bytes, computed permille), liar-kills the empty case, then runs the REAL audit across the data roots and prints the sprawl table -- the measured baseline the TSV-migration ladder must move. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_librarian_audit.nx nx_librarian_audit_gate.nx

imports: nx_syscalls.nxnx_librarian_audit.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mkdir mkfile sys_mmap ↻ sys_openat_wr sys_write sys_close la_scan_dir sys_openat_rd sys_mmap ↻ sys_getdents64 la_class la_has la_ends la_fsize sys_openat_rd ↻ sys_lseek sys_close ↻ sys_close ↻ chk g_puts sys_write ↻ g_putn sys_write ↻ sys_mmap ↻ la_permil g_puts ↻ g_putn ↻ prow g_puts ↻ g_putn ↻

structs

none

consts

none

functions

8func g_puts(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 3: chkprowmain calls 1: sys_write
9func g_putn(v: i64) -> i64
called by 3: chkprowmain calls 2: sys_writesys_mmap
22func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
27func mkfile(dir: *u8, name: *u8, nbytes: i64) -> i64
46func prow(label: *u8, st: *i64, cls: i64) -> i64
called by 1: main calls 2: g_putsg_putn
57func main() -> i64