code wiki / _hdl_build / nx_autofix_ensemble.nx
nx_autofix_ensemble.nx
buildroot/runtime/_hdl_build/nx_autofix_ensemble.nx
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
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
structs
| none |
consts
| 25 | const AE_CAP: i64 = 1048576 |
| 26 | const AE_MAXMK: i64 = 8 |
| 27 | const AE_PATH: i64 = 64 |
| 28 | const AE_ARGV: i64 = 128 |
| 29 | const AE_ZERO: i64 = 48 |
functions
| 31 | func 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 } |
| 32 | func ae_wn(v: i64) -> i64 |
| 45 | func ae_readfile(path: *u8, box: *i64) -> *u8 |
| 52 | func ae_dump(path: *u8) -> i64 |
| 61 | func ae_path(pre: *u8, k: i64, suf: *u8) -> *u8 |
| 67 | func main(argc: i64, argv: *i64) -> i64 |