code wiki / (root) / nx_ecosystem_compose_test.nx

nx_ecosystem_compose_test.nx

buildroot/runtime/nx_ecosystem_compose_test.nx

8818 B195 linesdepth 7pulls 18 transitivereach 0 importersview sourcekind gate/prooftopic ecosystem
docsdependenciesstructsconstsfunctions

about

nx_ecosystem_compose_test.nx -- silicon up to Steam partnership. Per user 2026-05-19: "think of it like playing nms via steam, where can we build from the silicon up to get the best experience on the nishi ecosystem and then as it moves off our ecosystem into steam partnering with steam to improve things like vram usage, disk space usage." The concrete scenario this smoke validates: HOST: laptop with 16 GB RAM + 12 GB VRAM (RTX 4080-class) NATIVE NISHI ECOSYSTEM: - voxel-world cell (foreground game) -- 4 GB RAM, 2 GB VRAM - reader-audio cell (background) -- 2 GB RAM, 1 GB VRAM - image-grader cell (background) -- 1 GB RAM, 1 GB VRAM FOREIGN SYMBIOTE: - Steam-hosted NMS (foreground game) -- 8 GB RAM, 6 GB VRAM declared; observed varies as user plays TOTAL DECLARED: 15 GB RAM, 10 GB VRAM -- fits in host with slack Lifecycle simulated by the smoke: 1. Build the ecosystem: organism holds the pathway + symbiote 2. Propose treaty: NMS-Steam + voxel-world share VRAM 60/40 3. NMS pushes VRAM observed to 7 GB (within share) 4. NMS overshoots to 9 GB -> treaty BREACHED 5. Renegotiate to 50/50; NMS comes back to 5.5 GB 6. Host pressure low again; ecosystem steady 7. Spawn an opportunistic background cell, force host pressure to 95%, hypothalamus (organism arbiter) picks idle cell to displace (NOT the foreground NMS, NOT the foreground voxel) 8. Idle cell yields; pressure returns to steady This proves the WHOLE optimization stack runs across native + foreign in the actual NMS-via-Steam user scenario.

dependencies 16 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_budget.nx nx_attention_class.nx nx_yield.nx nx_evict_journal.nx nx_metabolism.nx nx_homeostasis.nx nx_palette.nx nx_tropism.nx nx_ecosystem_compose_test.nx

diagram shows first 10 each side; +6 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_tier.nxnx_budget.nxnx_attention_class.nxnx_yield.nxnx_evict_journal.nxnx_metabolism.nxnx_homeostasis.nxnx_palette.nxnx_tropism.nxnx_ribosome.nxnx_pathway.nxnx_tissue.nxnx_symbiote.nxnx_organism.nxnx_treaty.nx

imported by: nobody (leaf or entry point)

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

main nx_budget_new sys_mmap nx_evict_journal_new sys_mmap ↻ nx_organism_new sys_mmap ↻ nx_pathway_new sys_mmap ↻ _add_cell nx_budget_new ↻ sys_mmap ↻ nx_pathway_add_cell nx_ac_is_valid nx_tropism_is_valid nx_rbt_is_valid _pathway_cell_at nx_organism_add_pathway _organism_pathway_set nx_symbiote_new sys_mmap ↻ nx_organism_add_symbiote _organism_symbiote_set nx_organism_total_ram_max nx_pathway_aggregate_ram_m _pathway_cell_at ↻ _organism_pathway_at _organism_symbiote_at nx_organism_total_vram_max nx_pathway_aggregate_vram_ _pathway_cell_at ↻ _organism_pathway_at ↻ _organism_symbiote_at ↻ nx_treaty_propose nx_ac_priority nx_ac_is_valid ↻ sys_mmap ↻ nx_treaty_accept nx_treaty_is_active nx_symbiote_update

structs

none

consts

none

functions

57func _add_cell(p: *NxPathway, cell_id: nx_int, ac: nx_int,
72func main() -> i64