code wiki / _hdl_build / nx_snapfeed_gate.nx

nx_snapfeed_gate.nx

buildroot/runtime/_hdl_build/nx_snapfeed_gate.nx

4914 B85 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_snapfeed_gate.nx -- PURE isolation gate for the /proc + supervisor.log parse tier (nx_snapfeed). Proves the two hard-won correctness lessons with fixtures shaped like the real nishihost ground truth: - robust /proc/<pid>/stat parse survives a comm with SPACES AND PARENS (T2) - a service is matched by its FULL cmdline, and a 15-char-truncated comm SILENTLY MISSES it (T4 vs T5 NEG) - crash-loop restart counting from the supervisor.log window (T6/T7) + a NEG (T8) - session-leader vs child distinction at the source data (T1 leader, T3 keeper child) = the lineage fix's input No IO/socket/exec. GREEN iff every assertion holds. Sovereign: nx_snapfeed + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_snapfeed.nx nx_syscalls.nx nx_snapfeed_gate.nx

imports: nx_snapfeed.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 sf_parse_stat sf_digit sf_atoi sf_digit ↻ g_len sf_is_leader g_row g_w ↻ sf_contains sf_contains_seg sf_count_restarts sf_contains_seg ↻ sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

11func 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
12func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
13func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
19func main() -> i64