code wiki / _hdl_build / nx_capgraph_edges_lib.nx

nx_capgraph_edges_lib.nx

buildroot/runtime/_hdl_build/nx_capgraph_edges_lib.nx

19611 B591 linesdepth 4pulls 5 transitivereach 2 importersview sourcekind librarytopic capgraph
docsdependenciesstructsconstsfunctions

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

nx_capgraph_lib.nx nx_tool_run.nx nx_capgraph_edges_lib.nx nx_capgraph_edges.nx nx_capgraph_edges_gate.nx

imports: nx_capgraph_lib.nxnx_tool_run.nx

imported by: nx_capgraph_edges.nxnx_capgraph_edges_gate.nx

structs

none

consts

11const CE_CAP: i64 = 262144
12const CE_HEAD: i64 = 32768
13const CE_MAXDOM: i64 = 128
14const CE_MAXOWN: i64 = 2048
15const CE_MAXSRC: i64 = 2048
16const CE_MAXE: i64 = 1024
17const CE_NAMEW: i64 = 64
18const CE_PATHW: i64 = 160
19const CE_MAXQ: i64 = 512
24const CE_DEPTH_FALLBACK: i64 = 3
25const CE_DEPTH_SCANMAX: i64 = 8
26const CE_CFG: *u8 = "knowledge/status/capgraph.conf" as *u8
27const CE_DEPTH_KEY_LEN: i64 = 17
28const CE_SHARED: i64 = 0 - 2
29const CE_SOTA: *u8 = "/volume1/homes/elderwesto/nishihost/nx_sota_status.elf" as *u8
30const CE_OUTDEF: *u8 = "knowledge/status/capgraph_edges.conf" as *u8

functions

77func ce_init()
called by 2: mainmain
127func ce_cpy(dst: *u8, src: *u8, cap: i64) -> i64
145func ce_dom_add(nm: *u8) -> i64
called by 2: mainmain calls 1: ce_cpy
153func ce_dom_name(i: i64) -> *u8
called by 1: main
157func ce_own_find(base: *u8) -> i64
called by 1: main calls 1: cg_streq
169func ce_own_idx(base: *u8) -> i64
187func ce_own_add(base: *u8, d: i64)
called by 2: mainmain calls 2: ce_own_idxce_cpy
204func ce_src_add(d: i64, path: *u8)
called by 1: main calls 1: ce_cpy
211func ce_edge_add(a: i64, b: i64)
234func ce_infra_add(modidx: i64, d: i64)
252func ce_basename(src: *u8)
called by 2: mainmain calls 1: ce_cpy
262func ce_join(pfx: *u8, sfx: *u8)
286func ce_is_nx(p: *u8) -> i64
called by 2: mainmain
297func ce_field(ls: i64, le: i64, idx: i64) -> i64
called by 1: main
325func ce_read_into_buf(path: *u8, cap: i64) -> i64
called by 2: maince_resolve_base calls 1: sys_read
344func ce_w(s: *u8)
called by 1: main
350func ce_wi(x: i64)
called by 1: main
387func ce_enc_add(base: *u8, sd: i64)
409func ce_enc_owned() -> i64
called by 2: mainmain
419func ce_seen_has(base: *u8) -> i64
called by 1: ce_qpush calls 1: cg_streq
431func ce_qpush(base: *u8, depth: i64)
445func ce_resolve_base(base: *u8) -> i64
called by 1: main calls 2: ce_joince_read_into_buf
460func ce_scan_buf_imports(sd: i64, depth: i64, n: i64)
539func ce_load_depth()
called by 1: main calls 1: sys_read_file