code wiki / _hdl_build / nx_autofix_ensemble.nx

nx_autofix_ensemble.nx

buildroot/runtime/_hdl_build/nx_autofix_ensemble.nx

5964 B138 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_ensemble.nx -- THE LIVE ENSEMBLE (autonomous-builder lane, 2026-07-20). One command for the measured neuro-symbolic climb: run maker#1 over the whole manifest, auto-run each later maker ONLY on the previous stage's misses, then union the property-verified greens (nx_autofix_cascade). SOUND because the judge (nx_symjudge, autofix stage 5b) property-verifies every green, so unioning diverse makers can never admit a wrong fix. Forks the proven _offc/nx_autofix_auto.elf (per model) + _offc/nx_autofix_cascade.elf (union) -- pure orchestration, miss-extraction in nx_autofix_ens_lib. N-MAKER (2026-07-23, F960 consume half): argv[2..] is a MODEL LIST, not a fixed pair, so the hardware router feeds it directly -- `nx_autofix_ensemble <manifest> $(nx_hw_envelope makers)` runs whatever maker set this host's hwtier- row declares (phone->supercomputer, code unchanged). The measured 3-maker 92% union is now ONE command instead of three runs plus a manual cascade. BACK-COMPAT (rule 19, additive): with exactly two models the staging, prompts, ledger paths and cascade inputs are IDENTICAL to the 2-maker organ -- the old invocation is byte-for-byte the old run. PER-MAKER PROMPT LAW (NB11): maker#1 = the tuned primary -> `clean`; every later maker = general fallback -> `strict`. Bounded by construction: at most AE_MAXMK makers, and the cap is DECLARED in the output (a silently-truncated maker list would read as a complete ensemble). argv: <manifest> <model1> [model2 ...] (manifest rows: name|path) exit: 0. Prints per-stage summaries + the final NX-AUTOFIX-CASCADE ensemble line. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_autofix_ens_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_syscalls.nx nx_autofix_ensemble.nx

imports: nx_autofix_ens_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main ae_w sys_write sys_exit ae_wn ae_w ↻ sys_mmap sys_write ↻ sys_mmap ↻ ae_path sys_mmap ↻ ael_stage_path dep_run_capture sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve_clean sys_close sys_execve sys_exit ↻ sys_wait4 ae_readfile sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ ael_extract_misses sys_mmap ↻ ael_green sys_mmap ↻ ael_find ael_slen ss_writefile sys_openat_wr ↻ sys_write ↻ sys_close ↻

structs

none

consts

25const AE_CAP: i64 = 1048576
26const AE_MAXMK: i64 = 8
27const AE_PATH: i64 = 64
28const AE_ARGV: i64 = 128
29const AE_ZERO: i64 = 48

functions

31func ae_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: ae_wnmain calls 1: sys_write
32func ae_wn(v: i64) -> i64
called by 1: main calls 3: ae_wsys_mmapsys_write
45func ae_readfile(path: *u8, box: *i64) -> *u8
called by 2: ae_dumpmain calls 2: sys_mmapsys_read_file
52func ae_dump(path: *u8) -> i64
called by 1: main calls 3: sys_mmapae_readfilesys_write
61func ae_path(pre: *u8, k: i64, suf: *u8) -> *u8
called by 1: main calls 2: sys_mmapael_stage_path
67func main(argc: i64, argv: *i64) -> i64