code wiki / _hdl_build / nx_pub_receipt_census.nx

nx_pub_receipt_census.nx

buildroot/runtime/_hdl_build/nx_pub_receipt_census.nx

6145 B61 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_receipt_census.nx -- the honest, organ-graded BREADTH scorecard for the publish-receipt / return-and-report system (operator: "census it ... s-class exceed on breadth"). Each axis is graded PRESENT/EXCEEDS only if BOTH: (a) it is RESEARCH-GROUNDED -- the sovereign researcher actually fetched the authoritative source for it (knowledge/fetched/rcpt_*.raw exists), so the breadth is real, not invented; AND (b) it is IMPLEMENTED + PROVEN -- the receipt gate (nx_pub_receipt_gate) verdict is GREEN. EXCEEDS where we go beyond a plain acknowledgment by construction: SIGNED non-repudiation (Ed25519, verifiable) and CONTENT-ADDRESSED provenance (receipt keyed by the artifact's sha). LIAR-KILL neg-control: an axis whose research source does NOT exist grades ABSENT (no fabricated breadth). GREEN iff 7 PRESENT + 2 EXCEEDS + neg-control ABSENT.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_pub_receipt_census.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 g_w sys_write prc_gate_green sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close prc_last g_n g_w ↻ sys_mmap ↻ sys_write ↻ sys_mmap ↻ prc_cell prc_have sys_openat_rd ↻ sys_close ↻ g_w ↻ sys_openat_append gw sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

none

functions

11func g_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 3: g_nprc_cellmain calls 1: sys_write
12func g_n(v: i64) -> i64 { var m: i64=v; if m<0{g_w("-" 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: g_wsys_mmapsys_write
13func gw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
14func prc_have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 {return 0} sys_close(fd); return 1 }
called by 1: prc_cell calls 2: sys_openat_rdsys_close
15func prc_last(buf: *u8, n: i64, needle: *u8) -> i64 { var nl: i64=0; while needle[nl]!=(0 as u8){nl=nl+1} if nl==0{return 0-1} var last: i64=0-1; var i: i64=0; while i+nl<=n { var j: i64=0; var ok: i64=1; while j<nl { if buf[i+j]!=needle[j]{ok=0;j=nl} else {j=j+1} } if ok==1{last=i;i=i+nl} else {i=i+1} } return last }
called by 1: prc_gate_green
16func prc_gate_green(path: *u8) -> i64 { let lp: *i64=sys_mmap(8) as *i64; lp[0]=0; let d: *u8=sys_read_file(path,lp); if (d as i64)==0 {return 0} let g: i64=prc_last(d,lp[0],"verdict=GREEN" as *u8); if g<0 {return 0} let r: i64=prc_last(d,lp[0],"verdict=RED" as *u8); if g>r {return 1} return 0 }
called by 1: main calls 3: sys_mmapsys_read_fileprc_last
19func prc_cell(name: *u8, src: *u8, gate_green: i64, is_exceed: i64, pres: *i64, exc: *i64, absent: *i64) -> i64
called by 1: main calls 2: prc_haveg_w
29func main() -> i64