code wiki / _hdl_build / nx_pub_exceed_gate.nx
nx_pub_exceed_gate.nx
buildroot/runtime/_hdl_build/nx_pub_exceed_gate.nx
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
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
structs
| none |
consts
| 13 | const EG_TORN_N: i64 = 3 |
| 14 | const EG_TORN_K: i64 = 50 |
| 15 | const EG_PUB_N: i64 = 2 |
functions
| 17 | 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 } |
| 18 | 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 } |
| 19 | func 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 } |
| 21 | func eg_reset(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd >= 0 { sys_close(fd) } return 0 } |
| 22 | func eg_make(path: *u8, content: *u8) -> i64 |
| 29 | func eg_count(path: *u8) -> i64 |
| 37 | func eg_scan_torn(path: *u8) -> i64 |
| 46 | func eg_sha_lean(path: *u8, outhex: *u8) -> i64 |
| 55 | func eg_dest(child: i64, k: i64, out: *u8) -> i64 |
| 59 | func eg_torn_child(qpath: *u8, srcpath: *u8, child: i64, framed: i64) -> i64 |
| 69 | func eg_torn_phase(qpath: *u8, srcpath: *u8, framed: i64) -> i64 |
| 78 | func eg_pub_child(qpath: *u8, ledpath: *u8, lockres: *u8, locked: i64) -> i64 { pub_run(qpath, ledpath, lockres, locked, 500); sys_exit(0); return 0 } |
| 79 | func eg_pub_phase(qpath: *u8, ledpath: *u8, lockres: *u8, locked: i64) -> i64 |
| 87 | func 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 } |
| 88 | func eg_seed(qpath: *u8, sa: *u8, sb: *u8, sc: *u8) -> i64 |
| 97 | func main() -> i64 |