code wiki / _hdl_build / nx_capgraph_derive_lib.nx
nx_capgraph_derive_lib.nx
buildroot/runtime/_hdl_build/nx_capgraph_derive_lib.nx
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
imports: nx_capgraph_lib.nxnx_tool_run.nx
imported by: nx_capgraph_derive.nxnx_capgraph_derive_gate.nx
structs
| none |
consts
| 12 | const CD2_CAP: i64 = 262144 |
| 13 | const CD2_ELF: *u8 = "/volume1/homes/elderwesto/nishihost/nx_sota_status.elf" as *u8 |
| 14 | const CD2_EDGES: *u8 = "knowledge/status/capgraph_edges.conf" as *u8 |
| 16 | const CD2_HIST: *u8 = "knowledge/status/capgraph_history.jrnl" as *u8 |
| 17 | const CD2_SBMAX: i64 = 16384 |
| 18 | const CD2_AX_COVER: i64 = 0 |
| 19 | const CD2_AX_EVID: i64 = 1 |
| 20 | const CD2_AX_FRONTIER: i64 = 2 |
| 192 | const CD2_MAXPAIR: i64 = 512 |
| 193 | const CD2_PW: i64 = 48 |
functions
| 22 | func cd2_match(buf: *u8, at: i64, end: i64, pat: *u8) -> i64 called by 1: cd2_find |
| 39 | func cd2_find(buf: *u8, ls: i64, le: i64, pat: *u8) -> i64 |
| 51 | func cd2_num(buf: *u8, at: i64, end: i64) -> i64 called by 1: main |
| 78 | func cd2_cov_level(permil: i64) -> i64 |
| 88 | func cd2_gap_level(gaps: i64) -> i64 |
| 105 | func cd2_sput(s: *u8) |
| 117 | func cd2_sputi(x: i64) |
| 144 | func cd2_is_infra(s: *u8) -> i64 |
| 154 | func cd2_name_of(buf: *u8, ls: i64, le: i64, dst: *u8) -> i64 called by 1: main |
| 201 | func cd2_parse_row(buf: *u8, s: i64, e: i64) |
| 272 | func cd2_prev_lookup(nm: *u8) -> i64 |
| 284 | func cd2_progress() -> i64 called by 1: main calls 8: sys_read_filecax_putscd2_last_row_startcd2_prev_row_startcd2_parse_rowcd2_prev_lookup+2 |
| 385 | func cd2_last_row_start(hb: *u8, hn: i64) -> i64 |
| 399 | func cd2_prev_row_start(hb: *u8, hn: i64) -> i64 |
| 419 | func cd2_last_row_matches(hb: *u8, hn: i64, st: *u8, stn: i64) -> i64 |
| 453 | func cd2_snapshot(edges: i64) -> i64 called by 1: main calls 8: cd2_sputcd2_sputicg_node_namecg_effectivesys_read_filecd2_last_row_matches+2 |