nx_torrent_keep_gate.nx
buildroot/runtime/nx_torrent_keep_gate.nx
about
nx_torrent_keep_gate.nx -- SOVEREIGN proof that the local keeper (nx_torrent_keep) supervises the media
daemon: with the keeper running, KILLING the daemon results in it being RESPAWNED with a NEW live pid.
This is the measured, re-runnable S-class regression guard for the workstation-local death-respawn
supervision that brings the local daemon to NAS-parity (the NAS already has nx_hostctl). The whole
scenario runs in ONE process so it is not affected by cross-call WSL VM recycling.
Run: build the keeper elf first (nx_sov_build_run.elf nx_torrent_keep --build-only), then run this gate.
license_tier: ORIGINAL layer: gate over the L7 keeper
module: nishi-core.torrent.keep_gate
depends: nishi-core.syscalls
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.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 g_puts(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 g_putn(v: i64) -> i64 |
| 22 | func g_report(label: *u8, ok: i64) -> i64 |
| 26 | func g_read_pid(path: *u8) -> i64 |
| 34 | func g_alive(pid: i64) -> i64 { if pid <= 0 { return 0 } if nx_kill(pid, 0) == 0 { return 1 } return 0 } |
| 36 | func g_ensure_up(envp: *i64) -> i64 |
| 49 | func main() -> i64 |