code wiki / _hdl_build / nx_capgraph_edges_lib.nx
nx_capgraph_edges_lib.nx
buildroot/runtime/_hdl_build/nx_capgraph_edges_lib.nx
about
nx_capgraph_edges_lib.nx -- pure core for nx_capgraph_edges: ownership, resolution, closure walk.
SPLIT OUT 2026-07-31 so the measuring organ can be GATED. By this ecosystem's own ladder (L5) a
capability with no non-vacuous gate is at most level 2 (WORKS), never 3 (GATED) -- and it would have
been dishonest for the organ that MEASURES capability levels to claim a level it had not earned. The
helpers below were unreachable from a gate while they sat beside a main(), so they moved here.
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_edges.nxnx_capgraph_edges_gate.nx
structs
| none |
consts
| 11 | const CE_CAP: i64 = 262144 |
| 12 | const CE_HEAD: i64 = 32768 |
| 13 | const CE_MAXDOM: i64 = 128 |
| 14 | const CE_MAXOWN: i64 = 2048 |
| 15 | const CE_MAXSRC: i64 = 2048 |
| 16 | const CE_MAXE: i64 = 1024 |
| 17 | const CE_NAMEW: i64 = 64 |
| 18 | const CE_PATHW: i64 = 160 |
| 19 | const CE_MAXQ: i64 = 512 |
| 24 | const CE_DEPTH_FALLBACK: i64 = 3 |
| 25 | const CE_DEPTH_SCANMAX: i64 = 8 |
| 26 | const CE_CFG: *u8 = "knowledge/status/capgraph.conf" as *u8 |
| 27 | const CE_DEPTH_KEY_LEN: i64 = 17 |
| 28 | const CE_SHARED: i64 = 0 - 2 |
| 29 | const CE_SOTA: *u8 = "/volume1/homes/elderwesto/nishihost/nx_sota_status.elf" as *u8 |
| 30 | const CE_OUTDEF: *u8 = "knowledge/status/capgraph_edges.conf" as *u8 |
functions
| 77 | func ce_init() |
| 127 | func ce_cpy(dst: *u8, src: *u8, cap: i64) -> i64 |
| 145 | func ce_dom_add(nm: *u8) -> i64 |
| 153 | func ce_dom_name(i: i64) -> *u8 called by 1: main |
| 157 | func ce_own_find(base: *u8) -> i64 |
| 169 | func ce_own_idx(base: *u8) -> i64 |
| 187 | func ce_own_add(base: *u8, d: i64) |
| 204 | func ce_src_add(d: i64, path: *u8) |
| 211 | func ce_edge_add(a: i64, b: i64) |
| 234 | func ce_infra_add(modidx: i64, d: i64) |
| 252 | func ce_basename(src: *u8) |
| 262 | func ce_join(pfx: *u8, sfx: *u8) |
| 286 | func ce_is_nx(p: *u8) -> i64 |
| 297 | func ce_field(ls: i64, le: i64, idx: i64) -> i64 called by 1: main |
| 325 | func ce_read_into_buf(path: *u8, cap: i64) -> i64 |
| 344 | func ce_w(s: *u8) called by 1: main |
| 350 | func ce_wi(x: i64) called by 1: main |
| 387 | func ce_enc_add(base: *u8, sd: i64) |
| 409 | func ce_enc_owned() -> i64 |
| 419 | func ce_seen_has(base: *u8) -> i64 |
| 431 | func ce_qpush(base: *u8, depth: i64) |
| 445 | func ce_resolve_base(base: *u8) -> i64 |
| 460 | func ce_scan_buf_imports(sd: i64, depth: i64, n: i64) |
| 539 | func ce_load_depth() |