code wiki / _hdl_build / nx_gen_conf_lib.nx
nx_gen_conf_lib.nx
buildroot/runtime/_hdl_build/nx_gen_conf_lib.nx
about
nx_gen_conf_lib.nx -- the gen lane's ONE conf reader (2026-08-30): the two-path read (daemon cwd first, then the
nishihost tree -- the gen daemon runs from /volume1/ai/gen, so a bare knowledge/ path resolves there) plus the
integer-row parser that skips '#' and ';' comment lines. Extracted because the identical two-path idiom already
existed in go_default_steps and gw_chat_budget_s and a THIRD copy was about to be typed for gen_hires.conf and
gen_prompt_weight.conf (rule 15: three copies is the extraction trigger). Those two incumbents are deliberately
NOT migrated in the same change -- a refactor of a live daemon's config path travels on its own proof.
license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_companion_wardrobe.nxnx_gen_worker.nx
structs
| none |
consts
| 10 | const GC_CH_HASH: i64 = 35 |
| 11 | const GC_CH_SEMI: i64 = 59 |
| 12 | const GC_CH_NL: i64 = 10 |
| 13 | const GC_CH_D0: i64 = 48 |
| 14 | const GC_CH_D9: i64 = 57 |
| 15 | const GC_B10: i64 = 10 |
functions
| 18 | func gc_read2(rel: *u8, abs: *u8, szp: *i64) -> i64 |
| 27 | func gc_ints(b: *u8, n: i64, out: *i64, want: i64) -> i64 called by 1: cw_weights_parse |