code wiki / (root) / nx_source_health_gate.nx

nx_source_health_gate.nx

buildroot/runtime/nx_source_health_gate.nx

4341 B71 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic source
docsdependenciesstructsconstsfunctions

about

nx_source_health_gate.nx -- GATE for nx_source_health (/compare/mediaingest R1, sh_preflight). No network: the decision is pure (sh_decide) so every one of the five states is a planted-number proof, the skip logic is proven, and sh_preflight's classify+persist+lookup round-trips on a fixture host (reset before and after so the production table keeps no fixture history). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_source_health.nx nx_gate_verdict.nx nx_source_health_gate.nx

imports: nx_syscalls.nxnx_source_health.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_head gv_puts sys_write gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sh_decide gv_check gv_puts ↻ sh_should_skip sh_preflight sh_decide ↻ sh_slow_ms sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close sh_atoi sh_record sh_load_tbl sys_mmap ↻ sh_load_tbl_into

structs

none

consts

9const G_SLOW: i64 = 8000 // the slow bar used in the planted decision proofs
10const G_HOST: *u8 = "sh-fixture.invalid"
11const G_HOST_LEN: i64 = 18 // strlen("sh-fixture.invalid")
12const G_NOW: i64 = 1788000000000 // a fixed 'now' in ms for the record/lookup round-trip
13const G_ABT_VENDOR_WALL: i64 = 3 // a non-clean nx_antibot code

functions

15func main() -> i64