code wiki / (root) / nx_autofix_candidate.nx

nx_autofix_candidate.nx

buildroot/runtime/nx_autofix_candidate.nx

927 B22 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_candidate.nx -- a REAL buildable "code under repair" for the autonomous fix loop (nx_autofix_gate). It SELF-GRADES against objective cases and emits CGR=<pass> (byte-built, no string literals so the fixer can patch it by targeted line-replace without quote-escaping). SEEDED BUG: max2 returns the first arg always (the same shape as a bug Claude fixed by hand this session) -> pass=1/3. The fixer flips it to the correct body -> pass=3/3. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_autofix_candidate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main max2 sys_mmap sys_write

structs

none

consts

none

functions

7func max2(a: i64, b: i64) -> i64 { return a }
called by 1: main
8func main() -> i64