code wiki / (root) / nx_forge_curves.nx

nx_forge_curves.nx

buildroot/runtime/nx_forge_curves.nx

4035 B80 linesdepth 9pulls 16 transitivereach 0 importersview sourcekind tooltopic forge
docsdependenciesstructsconstsfunctions

about

nx_forge_curves.nx -- PASS@N CURVE HARNESS (dossier N3's remaining adversary: "per-tier pass-at-1 vs pass-at-N curves must be published so an insufficient tier is measured not asserted"). Runs the ENGINE's pure sampling stage (maxc=1, no repair advantage) per fbench task with nsamples=N and records AT WHICH SAMPLE k GREEN landed (engine rc 100+k) or -40. pass@k for the row = 1 if greenk>0 && greenk<=k. Emits append-only rows to knowledge/forge/pass_curves.tsv: CURVE|tier|task|nsamples|greenk|rc|us (derivable into pass@1..pass@N columns by any reader; the /compare/coding page consumes this). The pfx route (engine sample stage) makes N samples ~1 prefill + N generations = affordable. MEASUREMENT organ (expect_exit 0: the rows are the deliverable, RED runs are honest rows). usage: nx_forge_curves <tier-label> <port> <nsamples> <temp_pm> <chat> license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_forge_engine.nx nx_sov_ledger.nx nx_forge_curves.nx

imports: nx_forge_engine.nxnx_sov_ledger.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 std_atoi cv_task fe_run std_putln ↻ flp_run std_slen ↻ fg_mkpath sys_openat_wr std_puts ↻ std_pdec sys_mmap std_itoa sys_mmap ↻ sys_write ↻ flp_cycle fm_compose_prompt sys_read flp_build_gen_body fm_build_gen_body std_itoa ↻ flp_splice_sampling std_itoa ↻ fm_post_gen sys_socket nx_http_client_sockaddr_ip nx_connect_bounded nx_http_client_build_reque _drain fm_extract_text std_slen ↻ fm_hexval fm_strip_fences sys_openat_wr ↻ fc_ws std_slen ↻

structs

none

consts

none

functions

17func cv_row(tier: *u8, task: *u8, nsamples: i64, greenk: i64, rc: i64) -> i64
called by 1: cv_task calls 2: sys_now_ussov_put_ints
37func cv_task(tier: *u8, tag: *u8, organ: *u8, taskf: *u8, expectf: *u8, packf: *u8, port: i64, nsamples: i64, temp_pm: i64, chat: i64) -> i64
called by 1: main calls 4: fe_runcv_rowstd_putsstd_pdec
53func main(argc: i64, argv: *i64) -> i64