code wiki / _hdl_build / nx_health_template_gate.nx

nx_health_template_gate.nx

buildroot/runtime/_hdl_build/nx_health_template_gate.nx

4417 B72 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic health
docsdependenciesstructsconstsfunctions

about

nx_health_template_gate.nx -- PURE gate for the content-aware health verdict. The load-bearing test (T1) is the OPERATOR'S EXACT CASE: the real sites.elf 404 body served WITH a 200 status -> must verdict DOWN (HT_ERROR_CONTENT), proving "a 404 being up with a 200 status is wrong" is caught. Plus: a known-good page is OK, a real non-200 is WRONG_STATUS, and a 200 missing its template marker is MISSING_TEMPLATE. GREEN iff T1..T8. Sovereign: nx_health_template + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_health_template.nx nx_syscalls.nx nx_health_template_gate.nx

imports: nx_health_template.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 g_len g_eq g_row g_w ↻ htpl_verdict htpl_has_error htpl_contains htpl_contains ↻ htpl_healthy htpl_verdict ↻ g_row ↻ sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

9func 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
10func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
11func g_row(name: *u8, ok: i64) -> i64
called by 2: g_eqmain calls 1: g_w
16func g_eq(name: *u8, got: i64, want: i64) -> i64 { var ok: i64 = 0; if got == want { ok = 1 } return g_row(name, ok) }
called by 1: main calls 1: g_row
18func main() -> i64