code wiki / (root) / nx_exec_engine.nx

nx_exec_engine.nx

buildroot/runtime/nx_exec_engine.nx

6505 B76 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_exec_engine.nx -- AUTONOMY BOOTSTRAP (tutor-authored SEED, the mechanism the team lacks): an autonomous execution loop that picks a workstream with a MACHINE-READABLE target, forks the team's evo-synth tool, and ADVANCES the workstream ONLY IF the tool VERIFIES it generalized (exit 0 = held-out pass). This is the missing piece behind the 0-alive board: monitoring+practice existed, execution did not. Honestly gated: a neg-control (a run that exits non-zero) proves advancement is VERIFY-GATED, not always-on -- the engine never fakes work. HONEST SCOPE: only advances targets the evo tools can hit (arithmetic/branch/loop). Novel capability (a neural forward) has NO machine-executable path -> stays NEEDS_TUTOR. Composes _offc/nx_evo_cf + nx_evo_loop. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_exec_engine.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main ee_puts sys_write run_tool sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 ee_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_exit ↻

structs

none

consts

none

functions

11func ee_puts(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 1: main calls 1: sys_write
16func ee_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
19func run_tool(path: *u8, a1: *u8, a2: *u8, a3: *u8) -> i64
33func main() -> i64