code wiki / (root) / nx_forge_engine_gate.nx

nx_forge_engine_gate.nx

buildroot/runtime/nx_forge_engine_gate.nx

8479 B181 linesdepth 9pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic forge
docsdependenciesstructsconstsfunctions

about

nx_forge_engine_gate.nx -- gate for the assembled autonomous-coding engine. Deterministic, NO model: the raceless bind-pre-fork stub maker serves scripted /gen responses + captures request bodies. Proves the two-stage engine: T1 GREEN at loop stage (good candidate -> rc=1; sampling never engaged) T2 GREEN at sample stage: loop exhausts (broken, maxc=1) -> sample1 broken -> sample2 good -> rc=102 (100+k). The free-verifier best-of-N lever, mechanized. T2b sample requests carry "temp" + DETERMINISTIC per-sample seeds (11001, 11002) T2c loop-stage request has NO "temp" key (greedy preserved) AND sample requests carry NO repair header (independence between samples) T3 NEG: everything broken -> rc=-40 (exhausted, never a fake GREEN) Fixture JSONs built at gate time from the SAME flp_* fixture programs (never drift). license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_forge_engine.nx nx_gate_verdict.nx nx_forge_engine_gate.nx

imports: nx_forge_engine.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main std_putln std_puts std_slen sys_write feg_mkjson fc_json_esc_bytes fc_wb sys_write ↻ feg_case feg_bind feg_serve fc_wb ↻ std_itoa sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable nxa_dump_sizes fe_run std_putln ↻ flp_run std_slen ↻ fg_mkpath std_puts ↻ std_pdec sys_mmap ↻ std_itoa ↻ sys_write ↻ flp_cycle fm_compose_prompt flp_build_gen_body

structs

none

consts

none

functions

16func feg_bind(port: i64) -> i64
called by 1: feg_case
34func feg_serve(lfd: i64, n: i64, resps: *i64, caps: *i64) -> i64
called by 1: feg_case calls 2: fc_wbstd_itoa
70func feg_mkjson(progpath: *u8, outpath: *u8) -> i64
called by 1: main calls 2: fc_json_esc_bytesfc_wb
92func feg_case(organ: *u8, n: i64, resps: *i64, caps: *i64, port: i64, maxc: i64, nsamples: i64, temp_pm: i64) -> i64
called by 1: main calls 3: feg_bindfeg_servefe_run
110func feg_cap_has(cappath: *u8, needle: *u8) -> i64
called by 1: main calls 1: std_slen
119func main(argc: i64, argv: *i64) -> i64