code wiki / _hdl_build / nx_pub_recover_exec_gate.nx
nx_pub_recover_exec_gate.nx
buildroot/runtime/_hdl_build/nx_pub_recover_exec_gate.nx
about
nx_pub_recover_exec_gate.nx -- SOVEREIGN gate for the recovery EXECUTOR (real kill of a real process).
Spawns a live mock daemon (nx_pr_mock, distinct cmdline so no self-kill), confirms it's ALIVE, runs
pe_exec on a seeded PENDING queue, then proves: the mock is KILLED, the queue line flips PENDING->DONE,
the recovery is LEDGERED, and a re-run is a NO-OP (idempotent, no PENDING left). Per-run /tmp test files.
Requires /tmp/nx_pr_mock.sov.elf built first. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_pub_recover_exec.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
| 9 | const GE_Q: *u8 = "/tmp/pe_test_queue.tsv" |
| 10 | const GE_LED: *u8 = "/tmp/pe_test_ledger.tsv" |
| 11 | const GE_MOCK: *u8 = "/tmp/nx_pr_mock.sov.elf" |
| 12 | const GE_NEEDLE: *u8 = "nx_pr_mock" |
functions
| 14 | func ge_uw(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 ge_wn(v: i64) -> i64 { let b: *u8=sys_mmap(24); let e: i64=pr_n(b,0,v); sys_write(1,b,e); return 0 } |
| 16 | func ge_sleep_ms(ms: i64) -> i64 { let ts: *i64=sys_mmap(16) as *i64; ts[0]=ms/1000; ts[1]=(ms-(ms/1000)*1000)*1000000; __syscall(35, ts as i64, 0,0,0,0,0); return 0 } |
| 17 | func ge_write(path: *u8, buf: *u8, len: i64) -> i64 { let fd: i64=sys_openat_wr(path, 0x1a4); if fd<0 {return 0-1} if len>0 { sys_write(fd, buf, len) } sys_close(fd); return 0 } |
| 19 | func main(argc: i64, argv: *i64) -> i64 |