nx_heal_gate.nx
buildroot/runtime/nx_heal_gate.nx
about
nx_heal_gate.nx -- gates the consolidated heal-plane tool on SYNTHETIC fixtures (asserts the lib's
RETURN VALUES, not stdout): a DOWN service is detected + counted; an all-UP snap is GREEN; log tail
counts lines; an ABSENT plane log is graceful; remediation events are counted across planes.
Runner must clean /tmp/healgate first. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_heal_lib.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
| 7 | const GATE_CHECKS: i64 = 9 |
| 8 | const OLD_AGE: i64 = 100000 // classifier fixture: clearly a long-lived parent |
| 9 | const YOUNG_AGE: i64 = 45 // classifier fixture: clearly a fresh restart |
| 10 | const SOME_REMED: i64 = 3 // classifier fixture: recent heal-plane remediations |
| 11 | const DIR_MODE: i64 = 0x1ed // 0755 |
| 12 | const FIX_LOG_LINES: i64 = 3 // fixture tools_selfheal.log line count |
| 13 | const FIX_EVENTS: i64 = 3 // fixture remediation event count |
functions
| 15 | func hg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 20 | func hg_write(dir: *u8, name: *u8, body: *u8) -> i64 |
| 28 | func main(argc: i64, argv: *i64) -> i64 |