code wiki / _hdl_build / nx_ng_lineage.nx

nx_ng_lineage.nx

buildroot/runtime/_hdl_build/nx_ng_lineage.nx

12789 B212 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic ng
docsdependenciesstructsconstsfunctions

about

nx_ng_lineage.nx -- the NEURAL-GRAPHICS frontier lineage emitter: grafts the instant-ngp-class stretch targets onto the genesis family tree (knowledge/registry/genesis_lineage.tsv, the tree nx_genealogy_tree renders + nx_genesis_trace verifies) so every frontier capability has CLEAR PATHING BACK TO GOD (operator 2026-06-22). GROWS THE TEAM (operator: "use the nishi team to grow their capabilities via this work"): this is a NEW genealogist organ -- a sibling of nx_genesis_lineage but for the 7-column genesis tree (id, type, parent_id, axis, sovereignty, label, safety) with a SINGLE parent per node. It mirrors that organ's proven machinery: idempotent (a node already present is SKIPPED), and it REFUSES any node whose parent is not already in the tree or an earlier batch sibling -> it can NEVER author a broken link / floating orphan (the "born with a home or not at all" guard). The independent PROOF the graft actually roots at god is nx_genealogy_tree (V2 orphans==0 + V4 leaf walks to ORIGIN) + nx_genesis_trace -- a wrong edge here cannot go green there. HONEST (operator's first genealogy law = don't lie): these nodes are sovereignty=future -- they are research-grounded TARGETS (cited to knowledge/fetched/ng_*.raw, the 34-source sovereign frontier round), NOT built capabilities. The built sovereign-visual ancestors they descend from are real + gated (CAP-GEOMETRY = nx_gpu_geometry, CAP-RASTERIZER = nx_nishios_raster). Additive-only (append, rule 13). Sovereign syscalls only. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_ng_lineage.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ng_load_ids sys_mmap ↻ sys_openat_rd sys_read sys_close ng_w sys_write sys_exit ng_wn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap ng_last_byte sys_mmap ↻ sys_openat_rd ↻ sys_read ↻ sys_close ↻ sys_openat_append ng_w1 sys_mmap ↻ sys_write ↻ ng_in_set ng_streq ng_emit ng_w ↻ ng_w1 ↻ sys_close ↻ ng_report ng_w ↻ ng_wn ↻

structs

none

consts

22const NG_MAGIC_1048576: i64 = 1048576
23const NG_MAGIC_1048575: i64 = 1048575
25const NG_GEN: *u8 = "knowledge/registry/genesis_lineage.tsv"
26const NG_LOG: *u8 = "knowledge/status/ng_lineage.log"
27const NG_IDCAP: i64 = 48

functions

29func ng_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 3: ng_emitng_reportmain calls 1: sys_write
34func ng_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 2: ng_reportmain calls 1: nxi_fd
35func ng_w1(fd: i64, c: i64) -> i64 { let b: *u8 = sys_mmap(1); b[0] = c as u8; sys_write(fd, b, 1); return 0 }
called by 2: ng_emitmain calls 2: sys_mmapsys_write
37func ng_streq(a: *u8, b: *u8) -> i64
called by 1: ng_in_set
42func ng_in_set(arena: i64, cnt: i64, idcap: i64, name: *u8) -> i64
called by 1: main calls 1: ng_streq
49func ng_load_ids(path: *u8, arena: i64, idcap: i64, maxc: i64) -> i64
89func ng_last_byte(path: *u8) -> i64
102func ng_emit(fd: i64, id: *u8, t: *u8, p: *u8, a: *u8, s: *u8, l: *u8, sf: *u8) -> i64
called by 1: main calls 2: ng_wng_w1
113func ng_report(fd: i64, total: i64, emitted: i64, skipped: i64, refused: i64, ok: i64) -> i64
called by 1: main calls 2: ng_wng_wn
122func main() -> i64