code wiki / _hdl_build / nx_pub_receipt_census.nx
nx_pub_receipt_census.nx
buildroot/runtime/_hdl_build/nx_pub_receipt_census.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 12 | func 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 } |
| 13 | func 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 } |
| 14 | func prc_have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 {return 0} sys_close(fd); return 1 } |
| 15 | func 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 |
| 16 | func 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 } |
| 19 | func prc_cell(name: *u8, src: *u8, gate_green: i64, is_exceed: i64, pres: *i64, exc: *i64, absent: *i64) -> i64 |
| 29 | func main() -> i64 |