nx_forge_bestof.nx
buildroot/runtime/nx_forge_bestof.nx
about
nx_forge_bestof.nx -- BEST-OF-N sampling on fbench T1 with the 1.5B coder + mini-pack (quality lever #2,
2026-07-15). Greedy 1.5B+minipack COMPILES+RUNS but misses bytes (semantic near-miss); temperature sampling
explores variants and the byte-exact judge (fg_run) picks any GREEN -- soundness by judging, diversity by
sampling. PREFIX-CACHE makes this affordable: sample 1 prefills the ~1350-tok prompt ONCE (snapshot), every
further sample re-prefills only the clamped last token (identical prompt) + generates. Early-exit on GREEN.
Appends an organ-authored living record (localpass=) to the codegen bench ledger. license_tier: ORIGINAL
expect_exit: 0 (measurement organ; the count is the deliverable)
dependencies 2 imports · 0 importers
imports: nx_nofloat_serve_core.nxnx_forge.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
| 10 | const K_MAGIC_32768: i64 = 32768 |
| 11 | const K_MAGIC_16384: i64 = 16384 |
| 12 | const K_MAGIC_30000: i64 = 30000 |
| 13 | const K_MAGIC_65536: i64 = 65536 |
functions
| 16 | func bo_read_pack(buf: *u8, cap: i64) -> i64 |
| 35 | func bo_cat(buf: *u8, o: i64, s: *u8) -> i64 called by 1: main |
| 44 | func bo_strip(src: *u8, n: i64, out: *u8) -> i64 called by 1: main |
| 89 | func bo_write(path: *u8, buf: *u8, n: i64) -> i64 |
| 107 | func main(argc: i64, argv: *i64) -> i64 |