code wiki / _hdl_build / nx_ecosystem_test.nx
nx_ecosystem_test.nx
buildroot/runtime/_hdl_build/nx_ecosystem_test.nx
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
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
structs
| none |
consts
| 17 | const ECO_PROVEN: i64 = 2 |
| 18 | const ECO_INFLIGHT: i64 = 1 |
| 19 | const ECO_PLANNED: i64 = 0 |
| 20 | const ECO_NLAYERS: i64 = 6 |
| 21 | const ECO_NCAPS: i64 = 257 |
functions
| 23 | func 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 } |
| 24 | func eco_putn(v: i64) -> i64 { |
| 33 | func eco_layer_name(li: i64) -> *u8 {
called by 1: main |
| 43 | func main() -> i64 { |