code wiki / _hdl_build / nx_cap_gap_sov.nx
nx_cap_gap_sov.nx
buildroot/runtime/_hdl_build/nx_cap_gap_sov.nx
about
nx_cap_gap_sov.nx -- SOVEREIGN endpoint/missing-generation finder (operator 2026-06-22: "no more tsvs ...
nishi ecosystem only"). REPLACES the deleted endpoint_paths.tsv: the capability path lives in the sovereign
content-addressed store nx_seg_store (NOT a flat file). Authored by this organ via ss_begin/ss_add/ss_commit,
read back via ss_open/ss_hget, built-status DERIVED from real organ-file existence (so it can't be fiction).
Reports the frontier, the next missing generation, and a RACI hand-off. GATE w/ neg-control: a real organ
classifies BUILT, a fake one MISSING. Sovereign: imports nx_seg_store (+ nx_syscalls). expect_exit: 0 ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_seg_store.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const CAP_STORE: *u8 = "knowledge/store/capability" // sovereign seg_store prefix (segments+manifest, NOT a flat TSV) |
| 11 | const NSTEPS: i64 = 45 |
functions
| 13 | func cp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func clen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: sa |
| 15 | func cpn(v: i64) -> i64 |
| 24 | func cstreq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } called by 1: org_resolve |
| 26 | func nbuf(buf: *u8, off: i64, v: i64) -> i64 |
| 35 | func cexists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 36 | func cjoin(pfx: *u8, name: *u8, out: *u8) -> i64 { var o: i64 = 0; var i: i64 = 0; while pfx[i] != (0 as u8) { out[o] = pfx[i]; o = o + 1; i = i + 1 } i = 0; while name[i] != (0 as u8) { out[o] = name[i]; o = o + 1; i = i + 1 } out[o] = 0 as u8; return 0 } called by 1: org_resolve |
| 38 | func org_resolve(name: *u8) -> i64 |
| 47 | func cap_key(k: i64, out: *u8) -> i64 |
| 54 | func cap_field(src: *u8, slen: i64, idx: i64, out: *u8) -> i64 called by 1: main |
| 61 | func sa(w: *i64, key: *u8, val: *u8) -> i64 { ss_add(w, 1, key, val, clen(val)); return 0 } |
| 65 | func cap_seed() -> i64 |
| 118 | func main() -> i64 |