code wiki / (root) / nx_deploy_leash_gate.nx

nx_deploy_leash_gate.nx

buildroot/runtime/nx_deploy_leash_gate.nx

4731 B95 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic deploy
docsdependenciesstructsconstsfunctions

about

nx_deploy_leash_gate.nx -- gate for deployments-on-a-leash (owner accountability, anti-walk-away). T1 PURE verdict table: alive+fresh=HEALTHY · alive+stale-beat=ABANDONED (the walk-away case, invisible to pid-checks) · dead pid=DEAD (trumps fresh beat). T2 DEAD roundtrip: registered deployment with a dead pid -> status reports DEAD, no reclaim. T3 ABANDONED+RECLAIM: LIVE pid (this gate) with a FORCED-ancient beat -> walk reclaims: its declared stop-file is touched + watch mark RECLAIMED (reads as RED in nx_watch = loud). T4 HEALTHY: live pid + fresh beat -> HEALTHY, stop-file NOT touched. T5 empty registry -> clean walk, verdict 0. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_deploy_leash.nx nx_deploy_leash_gate.nx

imports: nx_deploy_leash.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main std_putln std_puts std_slen sys_write dl_verdict lz_reset sov_put ss_begin ss_begin_cap sys_mmap ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32

structs

none

consts

none

functions

12func lz_reset() -> i64
called by 1: main calls 1: sov_put
17func main(argc: i64, argv: *i64) -> i64
79func sq_getpid_leash() -> i64
called by 1: main calls 1: sys_read