code wiki / _hdl_build / nx_autofix_cascade.nx

nx_autofix_cascade.nx

buildroot/runtime/_hdl_build/nx_autofix_cascade.nx

7314 B179 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_cascade.nx -- THE NEURO-SYMBOLIC ENSEMBLE (autonomous-builder lane, 2026-07-20). The insight the symbolic judge unlocks: because EVERY accepted fix is property-verified over an exhaustive domain sweep (symj=GREEN), unioning greens across DIVERSE makers is SOUND -- no wrong fix can slip in. So a cascade of complementary makers beats any single one. MEASURED: 1.5B=10/14, coder15-adapted=9/14, but they miss DIFFERENT instances -> cascade union = 12/14 = 86% (coder15 rescues the operand-binding absdiff + negation-semantics neg the 1.5B can't; 1.5B carries the syntax-clean cases coder15 fumbles). This organ computes the ensemble resolve rate from N maker ledgers, model-free (pure ledger union) -- fast, reusable for ANY maker set, gate-provable. A per-instance resolve = maker=GREEN in ANY ledger (property-verified preferred: symj=GREEN). argv: <manifest> <ledger1> [ledger2 ...] (manifest rows: name|path) emit: per-instance resolved-by + CASCADE resolve rate + honest property-verified count. exit: 0 always (report); the resolve rate IS the payload. license_tier: ORIGINAL No hw writes.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_autofix_cascade.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 ac_w sys_write sys_exit sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ac_verdict sys_mmap ↻ ac_find ac_slen ac_wn ac_w ↻ sys_mmap ↻ sys_write ↻

structs

none

consts

15const AC_CAP: i64 = 1048576
16const AC_NL: i64 = 10
17const AC_PIPE: i64 = 124
18const AC_MAXLED: i64 = 8

functions

20func ac_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: ac_wnmain calls 1: sys_write
21func ac_wn(v: i64) -> i64
called by 1: main calls 3: ac_wsys_mmapsys_write
34func ac_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ac_find
35func ac_find(hay: *u8, hn: i64, needle: *u8, from: i64) -> i64
called by 1: ac_verdict calls 1: ac_slen
50func ac_verdict(led: *u8, ln: i64, name: *u8, symout: *i64) -> i64
called by 1: main calls 2: sys_mmapac_find
83func main(argc: i64, argv: *i64) -> i64