code wiki / (root) / nx_librarian_review_gate.nx

nx_librarian_review_gate.nx

buildroot/runtime/nx_librarian_review_gate.nx

6119 B98 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic librarian
docsdependenciesstructsconstsfunctions

about

nx_librarian_review_gate.nx -- ORCHESTRATION rung-1 GATE: proves the librarian auto-reviews ingested material and flags "not up to scruff" docs on mechanical criteria (foundationed / substantive / not truncated), records the RACI handoff durably on the seg-store, and -- live -- reviews the REAL library (now that universal foundationing ran, most docs should be up-to-scruff). Fixture with known files gives exact counts + a neg-control (a stub + an unfoundationed doc MUST flag). Exits 0 iff ALL pass. ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_seg_store.nx nx_librarian_review.nx nx_librarian_review_gate.nx

imports: nx_syscalls.nxnx_seg_store.nxnx_librarian_review.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 mkf sys_mmap ↻ sys_openat_wr sys_write sys_close chk g_puts sys_write ↻ g_putn sys_write ↻ sys_mmap ↻ lr_fsize sys_openat_rd sys_lseek sys_close ↻ lr_exists sys_openat_rd ↻ sys_close ↻ lr_handoff sys_mmap ↻ lr_cat ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻

structs

none

consts

none

functions

10func 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 2: chkmain calls 1: sys_write
11func g_putn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0{sys_write(1,"-" as *u8,1);m=0-m} let d: *u8=sys_mmap(24); var k: i64=0; while m>0{d[k]=(48+(m%10)) as u8;m=m/10;k=k+1} let r: *u8=sys_mmap(24); var i: i64=0; while k>0{k=k-1;r[i]=d[k];i=i+1} sys_write(1,r,i); return 0 }
called by 2: chkmain calls 2: sys_writesys_mmap
12func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
17func mkf(dir: *u8, name: *u8, nbytes: i64) -> i64
25func main() -> i64