code wiki / (root) / nx_market_ladder.nx

nx_market_ladder.nx

buildroot/runtime/nx_market_ladder.nx

5326 B98 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic market
docsdependenciesstructsconstsfunctions

about

nx_market_ladder.nx -- THE MARKET-ENTRY VERDICT CLI over nx_market_ladder_lib (2026-08-24, /compare PT6). license_tier: ORIGINAL No hw writes (Rule 26). nx_market_ladder <domain> [compare_dir] (default buildroot/knowledge/compare/ -- the tree the regen reads; the nishihost twin is NOT the publish source, see the two-trees law) Prints one row per ladder level: the authored verdict word, the computed verdict, required/landed/unresolved counts and the binding rung, then a canonical LAST line `verdict=ML ...`. EXIT: 0 every authored verdict agrees with the computed one | 1 a DISAGREE exists (the page's prose is wrong: a defect, printed by name) | 2 usage | 3 no ladder rows (nothing to judge -- never a pass)

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_market_ladder_lib.nx nx_market_ladder.nx

imports: nx_syscalls.nxnx_market_ladder_lib.nx

imported by: nobody (leaf or entry point)

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

main mc_w sys_write 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 sys_write ↻ nxa_dump_sizes sys_write ↻ mc_cat ml_sibling_matrix ml_slen sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ml_field ml_span_starts ml_slen ↻ ml_span_cstr ml_entry_verdict ml_slen ↻ sys_mmap ↻ sys_read_file ↻ ml_span_starts ↻ ml_span_cstr ↻ ml_gate_green sys_mmap ↻

structs

none

consts

12const MC_EXIT_OK: i64 = 0
13const MC_EXIT_DISAGREE: i64 = 1
14const MC_EXIT_USAGE: i64 = 2
15const MC_EXIT_NONE: i64 = 3
16const MC_DIR_DEFAULT: *u8 = "buildroot/knowledge/compare/"
17const MC_PATH_CAP: i64 = 1024
18const MC_FIELD_CAP: i64 = 4096
19const MC_F_LEVEL: i64 = 1
20const MC_F_VERDICT: i64 = 5
21const MC_F_REQ: i64 = 6
22const MC_SLOT: i64 = 8
23const MC_LADDER_KW_LEN: i64 = 6

functions

25func mc_w(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 2: mc_wnmain calls 1: sys_write
26func mc_wn(v: i64) -> i64
called by 1: main calls 3: mc_wsys_mmapsys_write
39func mc_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var p: i64 = o; while s[i] != (0 as u8) { d[p] = s[i]; p = p + 1; i = i + 1 } d[p] = 0 as u8; return p }
called by 1: main
41func main(argc: i64, argv: *i64) -> i64