code wiki / _hdl_build / nx_pub_recover_gate.nx
nx_pub_recover_gate.nx
buildroot/runtime/_hdl_build/nx_pub_recover_gate.nx
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 2 imports · 0 importers
imports: nx_syscalls.nxnx_pub_recover.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
| 10 | const GT_MET: *u8 = "/tmp/pr_test_metrics.tsv" |
| 11 | const GT_Q: *u8 = "/tmp/pr_test_queue.tsv" |
functions
| 13 | func 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 } |
| 14 | func 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 } |
| 15 | func gt_write(path: *u8, buf: *u8, len: i64) -> i64 |
| 20 | func gt_row(buf: *u8, off: i64, url: *u8, maxv: i64) -> i64 |
| 38 | func main(argc: i64, argv: *i64) -> i64 |