code wiki / _hdl_build / nx_pub_recover_pulse_gate.nx
nx_pub_recover_pulse_gate.nx
buildroot/runtime/_hdl_build/nx_pub_recover_pulse_gate.nx
about
nx_pub_recover_pulse_gate.nx -- SOVEREIGN gate for the Publisher self-healing pulse (full chain end-to-end).
Proves metrics -> data-driven map -> DECIDE -> EXECUTE -> a REAL daemon dies. Spawns nx_pr_mock, maps a test
URL to it, and: T1 NEG-CONTROL healthy metrics -> 0 recoveries + mock ALIVE; T2 WEDGED metrics -> 1 recovery;
T3 mock KILLED; T4 ledgered. Per-run /tmp files. Build /tmp/nx_pr_mock.sov.elf first. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_pub_recover_pulse.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
| 8 | const GP_MET: *u8 = "/tmp/pp_test_metrics.tsv" |
| 9 | const GP_Q: *u8 = "/tmp/pp_test_queue.tsv" |
| 10 | const GP_LED: *u8 = "/tmp/pp_test_ledger.tsv" |
| 11 | const GP_MAP: *u8 = "/tmp/pp_test_map.tsv" |
| 12 | const GP_MOCK: *u8 = "/tmp/nx_pr_mock.sov.elf" |
| 13 | const GP_NEEDLE: *u8 = "nx_pr_mock" |
functions
| 15 | func gp_uw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func gp_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 } |
| 17 | func gp_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 } |
| 18 | func gp_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 } |
| 20 | func gp_row(buf: *u8, off: i64, url: *u8, maxv: i64) -> i64 |
| 38 | func main(argc: i64, argv: *i64) -> i64 |