code wiki / (root) / nx_adversarial_ci.nx

nx_adversarial_ci.nx

buildroot/runtime/nx_adversarial_ci.nx

3825 B70 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic adversarial
docsdependenciesstructsconstsfunctions

about

nx_adversarial_ci.nx -- CONTINUOUS ADVERSARIAL CI (census gap #1): runs the adversarial gate suite (data-driven from knowledge/adversarial_gates.conf, one gate module-name per line) via the sovereign build+run, FAIL-CLOSED: ANY gate RED (nonzero exit, incl. a SEGV -> 128+sig, never a silent pass) -> CI RED. WIRE before selfswap in the deploy plane so nothing ships unless the adversarial suite is GREEN. Composes _offc/nx_sov_build_run.elf. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_adversarial_ci.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main ci_puts sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit ci_run_gate sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve sys_exit ↻ sys_wait4 ci_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

8const CI_CONF: *u8 = "knowledge/adversarial_gates.conf" as *u8
9const CI_RUNNER: *u8 = "_offc/nx_sov_build_run.elf" as *u8

functions

11func ci_puts(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 1: main calls 1: sys_write
16func ci_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
19func ci_run_gate(gate: *u8) -> i64
37func main() -> i64