code wiki / (root) / nx_autofix_intake_gate.nx

nx_autofix_intake_gate.nx

buildroot/runtime/nx_autofix_intake_gate.nx

7586 B161 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_intake_gate.nx -- THE WILD/FOREIGN-BUG INTAKE GATE (2026-07-16): turns proposed fix-loop instances into a VERIFIED episode manifest. Any lane (mutation, janitor, doctor, human, other-model) appends `name|path` rows to knowledge/forge/fix/mut_proposed.txt; this gate BUILDS+RUNS each one and keeps ONLY instances whose bug REPRODUCES (>=1 failing FNRES row) -- the classic equivalent-mutant discipline: a mutation every test passes is NOT an instance, and a build-broken file is not either. Output: knowledge/forge/fix/mut_manifest.txt (nx_autofix_auto's episode list). Teeth: T1 parsed >=10 proposed rows; T2 kept >=10 reproducing; T3 THE DISCARD TOOTH -- the deliberate equivalent mutant (nx_autofix_mut_eqv, all-pass by construction) MUST be absent from the output; T4 verified manifest written. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_tool_run.nx nx_autofix_intake_gate.nx

imports: nx_tool_run.nx

imported by: nobody (leaf or entry point)

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

main w sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close ↻ sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit sys_read ↻ sys_wait4 wait_exit_code has_failing find_first slen find_first ↻ sys_openat_wr wn w ↻

structs

none

consts

none

functions

12func 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: wnmain
13func wn(v: i64) -> i64
called by 1: main calls 1: w
26func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: find_first
27func find_first(hay: *u8, hn: i64, needle: *u8, from: i64) -> i64
called by 2: has_failingmain calls 1: slen
42func has_failing(out: *u8, n: i64) -> i64
called by 1: main calls 1: find_first
78func main(argc: i64, argv: *i64) -> i64