code wiki / (root) / nx_seat_warm.nx

nx_seat_warm.nx

buildroot/runtime/nx_seat_warm.nx

2154 B59 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind tooltopic seat
docsdependenciesstructsconstsfunctions

about

nx_seat_warm.nx -- SEAT PRIMER (the anti-prefill-tax capability, 2026-07-16). One POST /gen {prompt=<pack file>, max_new:1, chat, pfx:1} against a live serve builds the serve-resident prefix-KV snapshot ONCE; every later engine/loop/curves call sharing the pack prefix then re-prefills only its task suffix (boundary-safe, byte-identical -- nx_gen_pfx_live_gate 4/4). At 1.5B this converts ~20min prefill per run into a one-time cost per seat boot. usage: nx_seat_warm <packfile> <port> <chat> exit 0 = warmed ("ok":1 in reply), 1 = fail. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_forge_loop.nx nx_seat_warm.nx

imports: nx_forge_loop.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 flp_build_gen_body fm_build_gen_body fc_json_esc_bytes std_itoa sys_mmap std_itoa ↻ sys_now_ms sys_mmap ↻ sys_clock_gettime_mono fm_post_gen sys_socket nx_http_client_sockaddr_ip nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll nx_http_client_build_reque nx_dec_emit_u63 _drain sys_read std_puts ↻ std_pdec sys_mmap ↻ std_itoa ↻ sys_write ↻

structs

none

consts

none

functions

10func main(argc: i64, argv: *i64) -> i64