code wiki / _hdl_build / _ark_gate_authored.nx
_ark_gate_authored.nx
buildroot/runtime/_hdl_build/_ark_gate_authored.nx
about
_ark_gate_authored.nx -- gate for X-REP-005 (the ark). REAL organ elf on
scratch worlds + the REAL live set:
SNAP-GREEN scratch set (2 files) -> pack+manifest written, entries=2
SKIP-UNCHANGED immediate re-snap -> unchanged=1 (resource law)
CHANGE-RESNAP source file modified -> unchanged=0 + manifest cid moves
VERIFY-GREEN verify on the fresh pack -> bad=0
TAMPER-RED flip one pack byte -> verify bad>0 RED; restore -> GREEN
LIVE-ARK the REAL survival set snaps green (entries>=18)
Markers: AKG-*; final ARKGATE row -> knowledge/status/ark.log
license_tier: ORIGINAL
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
| 14 | func akg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func akg_f(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 } |
| 16 | func akg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 18 | func akg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 25 | func akg_write(path: *u8, s: *u8) -> i64 |
| 36 | func akg_run(mode: *u8, setp: *u8, packp: *u8, manp: *u8, outpath: *u8) -> i64 |
| 58 | func akg_has(path: *u8, pat: *u8) -> i64 |
| 83 | func akg_tamper(path: *u8, unused: i64) -> i64 |
| 105 | func main() -> i64 |