code wiki / _hdl_build / nx_ng_lineage.nx
nx_ng_lineage.nx
buildroot/runtime/_hdl_build/nx_ng_lineage.nx
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
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
structs
| none |
consts
| 22 | const NG_MAGIC_1048576: i64 = 1048576 |
| 23 | const NG_MAGIC_1048575: i64 = 1048575 |
| 25 | const NG_GEN: *u8 = "knowledge/registry/genesis_lineage.tsv" |
| 26 | const NG_LOG: *u8 = "knowledge/status/ng_lineage.log" |
| 27 | const NG_IDCAP: i64 = 48 |
functions
| 29 | func 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 } |
| 34 | func ng_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 35 | func 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 } |
| 37 | func ng_streq(a: *u8, b: *u8) -> i64 called by 1: ng_in_set |
| 42 | func ng_in_set(arena: i64, cnt: i64, idcap: i64, name: *u8) -> i64 |
| 49 | func ng_load_ids(path: *u8, arena: i64, idcap: i64, maxc: i64) -> i64 |
| 89 | func ng_last_byte(path: *u8) -> i64 |
| 102 | func ng_emit(fd: i64, id: *u8, t: *u8, p: *u8, a: *u8, s: *u8, l: *u8, sf: *u8) -> i64 |
| 113 | func ng_report(fd: i64, total: i64, emitted: i64, skipped: i64, refused: i64, ok: i64) -> i64 |
| 122 | func main() -> i64 |