code wiki / _hdl_build / nx_ecosystem_test.nx

nx_ecosystem_test.nx

buildroot/runtime/_hdl_build/nx_ecosystem_test.nx

182987 B364 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic ecosystem
docsdependenciesstructsconstsfunctions

about

nx_ecosystem_test.nx -- the LIVING SELF-MODEL of the Nishi invention-engine ecosystem. The "accumulate" leg of the loop made real: not another kernel, but the system's OWN data-driven map of what it has built, organized by layer so the loop can build ON its proven capabilities (and the Seed can carry them). Run directly, it REPORTS the growing whole (layers x proven capabilities + this-cycle growth + what the loop builds next). Run by the sovereign gate runner, it SELF-VERIFIES the ecosystem's health (exit 0 iff the invariants hold) -- so the ecosystem's self-model is itself a verified capability in the loop. This is the ecosystem cohering + growing, vs scattered gates. Each capability is DATA {layer, name, status}: 2=PROVEN (a green gate backs it), 1=IN-FLIGHT (partial, building), 0=PLANNED. The loop grows this as gates land.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ecosystem_test.nx

imports: nx_syscalls.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 eco_puts sys_write eco_layer_name eco_putn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

17const ECO_PROVEN: i64 = 2
18const ECO_INFLIGHT: i64 = 1
19const ECO_PLANNED: i64 = 0
20const ECO_NLAYERS: i64 = 6
21const ECO_NCAPS: i64 = 257

functions

23func eco_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
24func eco_putn(v: i64) -> i64 {
called by 1: main calls 2: sys_mmapsys_write
33func eco_layer_name(li: i64) -> *u8 {
called by 1: main
43func main() -> i64 {