code wiki / (root) / nx_triple_companion_compose_test.nx

nx_triple_companion_compose_test.nx

buildroot/runtime/nx_triple_companion_compose_test.nx

6967 B194 linesdepth 6pulls 18 transitivereach 0 importersview sourcekind gate/prooftopic triple
docsdependenciesstructsconstsfunctions

about

nx_triple_companion_compose_test.nx -- heterogeneous 3-modality smoke. Goes beyond [[nx_dual_companion_compose_test]]: instead of two LLM clones, runs THREE actors of DIFFERENT modalities concurrently: NARRATOR (LLM, priority 80) -- nx_actor_role_llm NPC (LLM, priority 60) -- nx_actor_role_llm AUDIO_QC (audio scene grader, priority 50) -- nx_actor_role_audio_grader All three share one scheduler + one message bus + one multiplexer. Each actor calls a DIFFERENT other-agent primitive: NARRATOR/NPC -> embedding_lookup + blas_matmul + sample_categorical AUDIO_QC -> audio_scene_grade This is the smallest-honest demonstration that the parallel-companion substrate handles HETEROGENEOUS modalities, not just N copies of the same primitive. The DND companion north star is one of these scenarios (LLM narrative + NPC dialogue + ambient audio grading + game action processing) running in coherent interleaved fashion.

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_tensor.nx nx_actor.nx nx_message.nx nx_stream_multiplexer.nx nx_actor_role_llm.nx nx_actor_role_audio_grader.nx nx_triple_companion_compose_te

imports: nx_syscalls.nxnx_tier.nxnx_tensor.nxnx_actor.nxnx_message.nxnx_stream_multiplexer.nxnx_actor_role_llm.nxnx_actor_role_audio_grader.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_t_alloc nx_dt_is_valid nx_dt_element_bytes sys_mmap ↻ nx_t_compute_strides_rowma _fill_q10 nx_ac_sched_new sys_mmap ↻ nx_ms_bus_new sys_mmap ↻ nx_sm_new sys_mmap ↻ nx_ac_spawn nx_ms_register sys_mmap ↻ nx_ms_subscribe nx_ms_kind_is_valid nx_lr_actor_new sys_mmap ↻ nx_t_alloc ↻ nx_prng_init nx_ag_actor_new sys_mmap ↻ nx_ac_pick_next _ac_at nx_ac_state_is_runnable nx_lr_actor_step _lr_step_embed sys_mmap ↻ nx_embedding_lookup nx_t_is_contiguous _lr_step_proj nx_blas_matmul nx_blas_gemm _blas_check_matmul nx_t_is_contiguous ↻ _lr_step_sample nx_logit_apply_temperature

structs

none

consts

none

functions

30func _fill_q10(t: *NxTensor, base: i64, stride: i64) -> i64
called by 1: main
40func main() -> i64