code wiki / _hdl_build / nx_restart_strategy_gate.nx
nx_restart_strategy_gate.nx
buildroot/runtime/_hdl_build/nx_restart_strategy_gate.nx
about
nx_restart_strategy_gate.nx -- MEASURED gate for the S-class supervision restart strategy. Pure/offline. Proves
the crash-loop CONTAINMENT the operator wants (vs today's infinite restart): a flapping daemon is QUARANTINED
once it exceeds the OTP restart intensity, with exponential-backoff+jitter spacing and correct window aging.
T1 within intensity -> RESTART
T2 over intensity -> QUARANTINE (contained, not looped)
T3 exponential backoff capped -> 100,200,400,800,... -> cap
T4 window ages out old crashes -> a now-stable daemon is NOT quarantined for ancient crashes
T5 jitter bounded [d/2, d] -> no thundering herd
T6 the LIVE crash-loop case -> gallery/vroom-style rapid restarts -> QUARANTINE (the operator's exact bug, contained)
GREEN iff 6/6. Appends knowledge/status/restart_strategy_gate.log. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_restart_strategy.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
| 14 | func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func g_num(v: i64) -> i64 |
| 21 | func g_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 22 | func g_wn(fd: i64, v: i64) -> i64 |
| 29 | func main() -> i64 |