nx_forge_model_gate.nx
buildroot/runtime/nx_forge_model_gate.nx
about
nx_forge_model_gate.nx -- gate for the F3 rung-2 model backend (nx_forge_model.nx). Proves the
model-stage mechanics sovereignly, no external model:
T1 extract+strip from the canned /gen JSON fixture -> valid program bytes (fences gone)
T2 NEG malformed response (no "text") -> fm_extract_text returns -1
T3 prompt compose -> contains a pack marker AND the task statement
T4 LIVE loopback: fork an in-process stub serve, POST /gen to 127.0.0.1, extract -> program
T5 INTEGRATION: the extracted program -> candidate file -> fg_run judges it GREEN byte-exact
T6 fence-strip idempotent on unfenced text (no-op)
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_forge_model.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
structs
| none |
consts
| 13 | const FMG_PORT: i64 = 17719 |
functions
| 15 | func fmg_write(path: *u8, src: *u8, n: i64) -> i64 |
| 23 | func main(argc: i64, argv: *i64) -> i64 |