code wiki / _hdl_build / nx_pub_exceed_gate.nx

nx_pub_exceed_gate.nx

buildroot/runtime/_hdl_build/nx_pub_exceed_gate.nx

11860 B178 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_exceed_gate.nx -- the MEASURED S-class exceed organ for THE NISHI PUBLISHER. A live head-to-head vs the NAIVE direct-deploy baseline (plain copy / multi-write = what ad-hoc workstream deploys do, and what crashed sites.elf). Four SAFETY/COORDINATION axes, each graded EXCEEDS *only if* the naive baseline MEASURABLY fails AND the publisher MEASURABLY succeeds (the liar-kill: no strawman -> no exceed). NEVER self-scored: every grade is a number computed here. HONEST SCOPE: this is exceed-on-safety vs the relevant naive baseline, achieved SOVEREIGNLY (no git/rsync/CI dep) + by construction; it is NOT a claim to beat mature CI/CD on features (those cells are ABSENT in the R0 census). Mirrors nx_ws_exceed_gate / nx_lockstep_exceed_gate. Sovereign, per-wsid. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_publisher.nx nx_runpath.nx nx_pub_exceed_gate.nx

imports: nx_syscalls.nxnx_publisher.nxnx_runpath.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 g_w sys_write rp_wsid sys_openat_rd sys_mmap ↻ sys_read sys_close rp_match rp_ensure sys_mmap ↻ rp_path eg_make sys_openat_wr sys_write ↻ sys_close ↻ eg_reset sys_openat_wr ↻ sys_close ↻ eg_seed sys_mmap ↻ eg_sha_lean sys_openat_rd ↻ sys_mmap ↻ sys_read ↻ sys_close ↻ pub_hexd eg_rec sys_mmap ↻ pub_build_rec fa_cat fa_appendz fa_append sys_mmap ↻ sys_openat_append sys_flock fa_write_all sys_write ↻ sys_close ↻

structs

none

consts

13const EG_TORN_N: i64 = 3
14const EG_TORN_K: i64 = 50
15const EG_PUB_N: i64 = 2

functions

17func 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_ng_rowmain calls 1: sys_write
18func 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
19func g_row(id: *u8, ok: i64, pass: *i64) -> i64 { g_w(" " as *u8); g_w(id); g_w(": " as *u8); if ok==1 { g_w("EXCEEDS\n" as *u8); pass[0]=pass[0]+1 } else { g_w("-- (not proven)\n" as *u8) } return 0 }
called by 1: main calls 1: g_w
21func eg_reset(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd >= 0 { sys_close(fd) } return 0 }
22func eg_make(path: *u8, content: *u8) -> i64
29func eg_count(path: *u8) -> i64
37func eg_scan_torn(path: *u8) -> i64
46func eg_sha_lean(path: *u8, outhex: *u8) -> i64
55func eg_dest(child: i64, k: i64, out: *u8) -> i64
called by 1: eg_torn_child calls 2: fa_catfa_catn
59func eg_torn_child(qpath: *u8, srcpath: *u8, child: i64, framed: i64) -> i64
69func eg_torn_phase(qpath: *u8, srcpath: *u8, framed: i64) -> i64
78func eg_pub_child(qpath: *u8, ledpath: *u8, lockres: *u8, locked: i64) -> i64 { pub_run(qpath, ledpath, lockres, locked, 500); sys_exit(0); return 0 }
called by 1: eg_pub_phase calls 2: pub_runsys_exit
79func eg_pub_phase(qpath: *u8, ledpath: *u8, lockres: *u8, locked: i64) -> i64
87func eg_rec(qpath: *u8, sha: *u8, dest: *u8) -> i64 { let rec: *u8 = sys_mmap(2048); pub_build_rec(rec, "nf" as *u8, "ws" as *u8, sha, "src" as *u8, dest, "internal" as *u8); fa_appendz(qpath, rec, 2048); return 0 }
88func eg_seed(qpath: *u8, sa: *u8, sb: *u8, sc: *u8) -> i64
called by 1: main calls 3: sys_mmapeg_sha_leaneg_rec
97func main() -> i64