code wiki / _hdl_build / nx_evolution_ladder.nx
nx_evolution_ladder.nx
buildroot/runtime/_hdl_build/nx_evolution_ladder.nx
about
nx_evolution_ladder.nx -- THE GRACEFUL EVOLUTION LADDER organ.
module: nishi-core.doctrine.evolution_ladder
capability: CORE_COMPUTE (the honest "where we are" on the god->canopy technology tree)
Charter: knowledge/specs/2026-06-16-graceful-evolution-charter.md.
Reads knowledge/registry/evolution_ladder.tsv (one row per tree-layer) and, FRESH every run:
* VERIFIES each layer's evidence_src file actually exists (does not trust a declared grade);
* COMPUTES the verified maturity rung (ABSENT..PHYSICS-OPTIMUM) from (evidence_kind, file-exists);
* THE LIAR-KILL: a layer claiming measured/exceed/physics whose evidence file does NOT exist is
counted `unproven` -> VERDICT RED. No "S-class exceeds" claim survives without its artifact.
* tree-whole: every layer reaches the HW root (no broken parents), and carries a purpose;
* NEVER-BRICK (Rule 26, inherited from genesis): a layer doing persistent hardware writes but not
proven (safety=brickable) is counted `unsafe` -> RED.
Sovereign: imports only nx_syscalls (no gcc/sed/awk). license_tier: ORIGINAL
dependencies 1 imports · 3 importers
imports: nx_syscalls.nx
imported by: nx_evolution_ladder_gate.nxnx_wiki_ai_start_page.nxnx_wiki_charter_page.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 19 | const EL_FILE: *u8 = "knowledge/registry/evolution_ladder.tsv" |
| 22 | const RK_ABSENT: i64 = 0 |
| 23 | const RK_SPEC: i64 = 1 |
| 24 | const RK_BUILT: i64 = 2 |
| 25 | const RK_GATED: i64 = 3 |
| 26 | const RK_MEASURED: i64 = 4 |
| 27 | const RK_EXCEEDS: i64 = 5 |
| 28 | const RK_PHYSICS: i64 = 6 |
functions
| 40 | func el_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 } |
| 41 | func el_putn(v: i64) -> i64 |
| 51 | func el_streq(a: *u8, b: *u8) -> i64 |
| 59 | func el_field_dup(b: *u8, ls: i64, le: i64, f: i64) -> *u8 |
| 77 | func el_kind_code(s: *u8) -> i64 |
| 86 | func el_rung_name(r: i64) -> *u8 |
| 98 | func el_exists(path: *u8) -> i64 |
| 107 | func el_parse(file: *u8) -> i64 |
| 154 | func el_find(id: *u8) -> i64 |
| 163 | func el_count() -> i64 { return EL_N } |
| 164 | func el_id(i: i64) -> *u8 { let ids: *i64 = EL_IDS as *i64; return ids[i] as *u8 } |
| 165 | func el_label(i: i64) -> *u8 { let labels: *i64 = EL_LABELS as *i64; return labels[i] as *u8 } |
| 168 | func el_verified_rung(idx: i64) -> i64 |
| 179 | func el_analyze(file: *u8, outs: *i64) -> i64 |
| 224 | func el_print_ladder() -> i64 |
| 238 | func main() -> i64 |