code wiki / (root) / nx_actor_role_llm_v2_test.nx

nx_actor_role_llm_v2_test.nx

buildroot/runtime/nx_actor_role_llm_v2_test.nx

6857 B126 linesdepth 11pulls 37 transitivereach 0 importersview sourcekind gate/prooftopic actor
docsdependenciesstructsconstsfunctions

about

nx_actor_role_llm_v2_test.nx -- wiring smoke for nx_actor_role_llm_v2. HONEST SCOPE: this smoke proves the adapter compiles, constructs, validates inputs, and exposes correct accessors / phase + verdict enums. It does NOT drive the v2 runner end-to-end because that requires a real GGUF fixture (the v2 runner has its own real-GGUF happy-path smoke at nx_llm_run_v2_test.nx). Driving the runner with null/empty inputs segfaults inside nx_bpe_encode -- so the adapter's constructor rejects all null pointers at the boundary per the defensive-at-boundaries discipline, and this smoke verifies those rejections. Future smoke would compose with a synthetic GGUF builder to exercise the RUN -> EMIT path end-to-end.

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_model_spec.nx nx_gguf.nx nx_bpe.nx nx_actor.nx nx_message.nx nx_actor_role_llm_v2.nx nx_actor_role_llm_v2_test.nx

imports: nx_syscalls.nxnx_tier.nxnx_model_spec.nxnx_gguf.nxnx_bpe.nxnx_actor.nxnx_message.nxnx_actor_role_llm_v2.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_lv_phase_is_valid nx_lv_v_is_valid nx_model_spec_gpt2_small nx_model_spec_new sys_mmap nx_model_spec_validate nx_norm_is_valid nx_act_is_valid nx_pos_is_valid nx_ffn_is_valid sys_mmap ↻ nx_lv_actor_new sys_mmap ↻ nx_lv_actor_phase nx_lv_actor_token nx_lv_actor_runner_verdict nx_lv_actor_is_done nx_ac_sched_new sys_mmap ↻ nx_ms_bus_new sys_mmap ↻ nx_lv_actor_step _lv_step_run nx_llm_generate_one_v2 nx_model_spec_validate ↻ sys_mmap ↻ nx_bpe_encode sys_mmap ↻ nx_intern_get nx_hash_fnv1a_bytes nx_hash_get nx_intern_bytes_eq nx_hash_put _bpe_find_merge_rank nx_gguf_load_model_weights sys_mmap ↻ nx_gguf_load_tensor nx_gguf_find_tensor nx_gguf_tensor_at

structs

none

consts

none

functions

23func main() -> i64