code wiki / (root) / nx_swarm_maturity.nx

nx_swarm_maturity.nx

buildroot/runtime/nx_swarm_maturity.nx

17998 B358 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic swarm
docsdependenciesstructsconstsfunctions

about

nx_swarm_maturity.nx -- SWARM FABRIC MATURITY census (SF-MAT): the HONEST measurement the operator demanded -- "maturity is the real feedback", NOT feature-presence (944/1000 was inflatable: 'do we have a form of X'). This grades every capability on a PRODUCTION-MATURITY ladder, EVIDENCE-CAPPED so it cannot overclaim: L0 not-built · L1 GATED (liar-killed synthetic/single-machine) · L2 LIVE (real data/telemetry) · L3 MCP (operationally callable) · L4 MULTI-NODE (live across >=2 real remote participants) · L5 MATURE (hardened + externally PERF-benchmarked vs the actual tool, not feature-presence). ★★THE ANTI-OVERCLAIM LIAR-KILLER (mechanical): L1 requires the gate symbol to VERIFY ON DISK (a claimed gate that isn't in the organ file -> L0, never fabricated). L4 requires knowledge/compare/swarm_multinode .proof; L5 requires swarm_hardened.proof + swarm_extbench.proof. Those files do NOT exist -> EVERY capability is mechanically CAPPED at L3. So the maturity score reflects what's PROVEN, not claimed; it RATCHETS up only when a real multi-node/hardened/benchmark proof is produced (create the proof file). Reads knowledge/compare/swarm.maturity (label|organ|gate|mcp|live). Score = sum(level)/(n*5) permille. nx_swarm_maturity [maturity-file] -- grade + honest score + the maturity roadmap + self-liar-kills license_tier: ORIGINAL expect_exit:0

dependencies 3 imports · 0 importers

nx_swarm_lib.nx nx_matrix_sym_lib.nx nx_estate_path.nx nx_swarm_maturity.nx

imports: nx_swarm_lib.nxnx_matrix_sym_lib.nxnx_estate_path.nx

imported by: nobody (leaf or entry point)

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

main fa_cat mt_exists mt_puts mt_auto_matrix sb_read sys_openat_rd sys_read sys_close mt_field msym_is_bare_absent_z msym_is_bare_absent msym_has_absent_prefix msym_zlen mt_file_has ep_open_rd sys_openat_rd ↻ sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable nxa_dump_sizes ep_join mt_puts ↻ sb_has fa_len msym_real_z msym_real_start msym_is_watch msym_has_absent_prefix ↻ msym_zlen ↻ mt_putn

structs

none

consts

21const MT_MAGIC_262144: i64 = 262144
22const MT_MAGIC_65536: i64 = 65536
24const MT_ROOT: *u8 = "knowledge/compare/"

functions

26func mt_puts(s: *u8) -> i64 { sys_write(1, s, fa_len(s)); return 0 }
27func mt_putn(v: i64) -> i64
called by 2: mt_barmain
57func mt_file_has(path: *u8, needle: *u8) -> i64
77func mt_exists(path: *u8) -> i64
called by 1: main
85func mt_field(line: *u8, ln: i64, idx: i64, out: *u8) -> i64
100func mt_streq(a: *u8, b: *u8) -> i64
106func mt_starts(s: *u8, pfx: *u8) -> i64
called by 1: mt_grade_dims
113func mt_grade_dims(dimp: *u8, rowsb: *i64, secminb: *i64) -> i64
166func mt_grade(gate_ok: i64, live: i64, mcp: i64, mn_proof: i64, hard_proof: i64, ext_proof: i64) -> i64
called by 1: main
176func mt_bar(L: i64) -> i64
called by 2: mt_grade_dimsmain calls 2: mt_putsmt_putn
188func mt_auto_matrix(matrixp: *u8, rowsb: *i64, l1b: *i64, l0b: *i64) -> i64
222func main(argc: i64, argv: *i64) -> i64