code wiki / _hdl_build / nx_pub_recover_gate.nx

nx_pub_recover_gate.nx

buildroot/runtime/_hdl_build/nx_pub_recover_gate.nx

5514 B86 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_recover_gate.nx -- SOVEREIGN gate for the publisher's recovery DECISION (nx_pub_recover). Proves: (1) a WEDGED daemon (from the monitor's metrics) -> exactly ONE idempotent recovery request (both /library + /media map to the same reader daemon -> deduped to 1); (2) IDEMPOTENT re-run -> 0 new; (3) NEG-CONTROL all-green metrics -> 0 (no healthy daemon ever requested); (4) LIAR-KILL the owner-only sites.elf (landing/status) is UNMAPPED -> never auto-requested even when wedged (coordinate, don't solo). Per-run /tmp test files (no clobber of the real apm_metrics.tsv / recovery_queue.tsv). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_pub_recover.nx nx_gate_verdict.nx nx_pub_recover_gate.nx

imports: nx_syscalls.nxnx_pub_recover.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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gt_row pr_n sys_mmap ↻ pr_s gt_write sys_openat_wr sys_write ↻ sys_close pr_recover sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ↻ pr_field pr_atoi pr_slen pr_daemon_for pr_has pr_slen ↻ pr_s ↻

structs

none

consts

11const GT_MET: *u8 = "/tmp/pr_test_metrics.tsv"
12const GT_Q: *u8 = "/tmp/pr_test_queue.tsv"

functions

14func gt_uw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
15func gt_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 }
called by 1: main calls 3: sys_mmappr_nsys_write
16func gt_write(path: *u8, buf: *u8, len: i64) -> i64
21func gt_row(buf: *u8, off: i64, url: *u8, maxv: i64) -> i64
called by 1: main calls 2: pr_npr_s
39func main(argc: i64, argv: *i64) -> i64