code wiki / _hdl_build / nx_capgraph_derive_lib.nx

nx_capgraph_derive_lib.nx

buildroot/runtime/_hdl_build/nx_capgraph_derive_lib.nx

16730 B508 linesdepth 4pulls 5 transitivereach 2 importersview sourcekind librarytopic capgraph
docsdependenciesstructsconstsfunctions

about

nx_capgraph_derive_lib.nx -- pure core for nx_capgraph_derive: level thresholds, row parsing, the progress-rail snapshot compare, and the history reader. SPLIT OUT 2026-07-31 for the SAME reason as nx_capgraph_edges_lib: these helpers sat beside a main() and were therefore unreachable from any gate, which pinned the progress rail at level 2 (WORKS) on this system's own ladder. Gating the edges organ but not this one would have been applying the standard selectively -- exactly the kind of convenient inconsistency this arc exists to catch. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 2 importers

nx_capgraph_lib.nx nx_tool_run.nx nx_capgraph_derive_lib.nx nx_capgraph_derive.nx nx_capgraph_derive_gate.nx

imports: nx_capgraph_lib.nxnx_tool_run.nx

imported by: nx_capgraph_derive.nxnx_capgraph_derive_gate.nx

structs

none

consts

12const CD2_CAP: i64 = 262144
13const CD2_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_sota_status.elf" as *u8
14const CD2_EDGES: *u8 = "knowledge/status/capgraph_edges.conf" as *u8
16const CD2_HIST: *u8 = "knowledge/status/capgraph_history.jrnl" as *u8
17const CD2_SBMAX: i64 = 16384
18const CD2_AX_COVER: i64 = 0
19const CD2_AX_EVID: i64 = 1
20const CD2_AX_FRONTIER: i64 = 2
192const CD2_MAXPAIR: i64 = 512
193const CD2_PW: i64 = 48

functions

22func cd2_match(buf: *u8, at: i64, end: i64, pat: *u8) -> i64
called by 1: cd2_find
39func cd2_find(buf: *u8, ls: i64, le: i64, pat: *u8) -> i64
called by 1: main calls 1: cd2_match
51func cd2_num(buf: *u8, at: i64, end: i64) -> i64
called by 1: main
78func cd2_cov_level(permil: i64) -> i64
called by 2: mainmain
88func cd2_gap_level(gaps: i64) -> i64
called by 2: mainmain
105func cd2_sput(s: *u8)
117func cd2_sputi(x: i64)
called by 1: cd2_snapshot calls 1: cd2_sput
144func cd2_is_infra(s: *u8) -> i64
called by 2: mainmain
154func cd2_name_of(buf: *u8, ls: i64, le: i64, dst: *u8) -> i64
called by 1: main
201func cd2_parse_row(buf: *u8, s: i64, e: i64)
called by 2: maincd2_progress
272func cd2_prev_lookup(nm: *u8) -> i64
called by 2: maincd2_progress calls 1: cg_streq
284func cd2_progress() -> i64
385func cd2_last_row_start(hb: *u8, hn: i64) -> i64
399func cd2_prev_row_start(hb: *u8, hn: i64) -> i64
called by 2: maincd2_progress calls 1: cd2_last_row_start
419func cd2_last_row_matches(hb: *u8, hn: i64, st: *u8, stn: i64) -> i64
called by 2: maincd2_snapshot calls 1: cd2_last_row_start
453func cd2_snapshot(edges: i64) -> i64