code wiki / _hdl_build / nx_worldgen_tuner_test.nx
nx_worldgen_tuner_test.nx
buildroot/runtime/_hdl_build/nx_worldgen_tuner_test.nx
about
nx_worldgen_tuner_test.nx -- KATs for the verdict-targeted tuner
machinery (nx_worldgen_tunelib). Gate module: /tmp-only side effects
(the real tuner's durable banking is exercised by its live runs, not
here -- a gate beat must never mutate team state).
Exit 0 = all pass; first failing KAT's number is the exit code.
KAT 1 conf parse: ints, negatives, missing-key fallback.
KAT 2 refine-axis string parse (the banked verdict's form).
KAT 3 axis mapping: every refine axis -> a verdict offset; FLATNESS
value inverted (lower flat = higher score).
KAT 4 score is lexicographic: one grade step beats any axis value.
KAT 5 eval determinism: same (preset, density, knobs) -> identical
12-slot verdicts.
KAT 6 the knob does its job: detail_amp 140 raises LOCAL_VARIATION
vs detail_amp 0 (same preset/density -- the ADD_DETAIL claim
at tuner level).
KAT 7 knob banking round-trip: write a /tmp conf, tl_load_knobs reads
it back exactly; missing file falls back to preset defaults.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_worldgen_tunelib.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
| none |
functions
| 24 | func main() -> i64 |