code wiki / _hdl_build / nx_mgmt_snapshot_gate.nx

nx_mgmt_snapshot_gate.nx

buildroot/runtime/_hdl_build/nx_mgmt_snapshot_gate.nx

5536 B102 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic mgmt
docsdependenciesstructsconstsfunctions

about

nx_mgmt_snapshot_gate.nx -- PURE isolation gate for the R1b health-snapshot PRODUCER (nx_mgmt_snapshot). Feeds raw-proc/log FIXTURES (shaped exactly like the live nishihost ground truth) through ss_synth and asserts the emitted "SUP <n>" / "SVC ..." snapshot byte-for-byte. The headline test is the live-proven FALSE-POSITIVE fix: the supervisor + its reader-keeper child (same sid, pid!=sid) must yield SUP 1, NOT SUP 2. Two negative controls (T7 no-false-duel, T8 no-false-UP) keep it from being a fabricated green. No IO/socket/exec/auth. GREEN iff every assertion holds. Sovereign: nx_mgmt_snapshot + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_mgmt_snapshot.nx nx_syscalls.nx nx_mgmt_snapshot_gate.nx

imports: nx_mgmt_snapshot.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write sys_mmap ss_synth sys_mmap ↻ ss_eol ss_split ss_tok_eq ss_atoi ss_slice_eq ss_cat ss_catn sys_mmap ↻ ss_cat_slice g_len g_present g_row g_w ↻ g_has g_absent g_has ↻ g_row ↻ sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

10func g_w(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 2: g_rowmain calls 1: sys_write
11func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
12func g_row(name: *u8, ok: i64) -> i64
called by 2: g_presentg_absent calls 1: g_w
19func g_has(out: *u8, n: i64, s: *u8) -> i64
called by 2: g_presentg_absent
34func g_present(name: *u8, out: *u8, on: i64, needle: *u8) -> i64 { return g_row(name, g_has(out, on, needle)) }
called by 1: main calls 2: g_rowg_has
35func g_absent(name: *u8, out: *u8, on: i64, needle: *u8) -> i64
called by 1: main calls 2: g_hasg_row
41func main() -> i64