code wiki / _hdl_build / nx_snapfeed_gate.nx
nx_snapfeed_gate.nx
buildroot/runtime/_hdl_build/nx_snapfeed_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 12 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 13 | func g_row(name: *u8, ok: i64) -> i64 |
| 19 | func main() -> i64 |