code wiki / _hdl_build / nx_genealogy_tree.nx

nx_genealogy_tree.nx

buildroot/runtime/_hdl_build/nx_genealogy_tree.nx

22875 B284 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic genealogy
docsdependenciesstructsconstsfunctions

about

nx_genealogy_tree.nx -- the REAL visual FAMILY TREE of the genealogy (operator 2026-06-22: "walk the genealogy from god to the youngest child and back ... visually see like a family tree on familysearch.org ... with hard evidence ... no link-rot"). Generated LIVE from knowledge/registry/genesis_lineage.tsv (the god->...->endpoint tree) + knowledge/registry/build_registry.log (the ORGANS = youngest children under DESC-ORGANS). Emits a nested, navigable HTML tree: each node anchored (id) + an UP-link to its parent (walk back toward god) + nested children (walk down to the youngest). Then SELF-VERIFIES against the data so the page CANNOT lie: every genesis node + every organ rendered, every node's parent present (rooted), and a leaf organ walks parent->...->ORIGIN(god). HONEST: this WRITES the HTML file; publishing to nishifamily.com/wiki is via the Nishi Publisher (operator-gated) -- this organ does NOT claim it is live. 2026-06-25 (operator: "visual and the ability to see major callouts like orphans and other failures or successes or gaps at a glance"): added an AT-A-GLANCE DASHBOARD (counts by sovereignty: sovereign successes / third-party locks / building+future gaps / orphans) + a red ORPHAN-ALERT banner (orphans are otherwise INVISIBLE -- render only recurses god->down, so an unrooted node never appears) + per-node colored STATUS CHIPS (green=sovereign, red=third-party/locked, amber=building, grey=future, blue=emu) so problems pop. Sovereign: imports only nx_syscalls. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_genealogy_tree.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main tp sys_write sys_mmap tread sys_openat_rd sys_read sys_close sys_exit tfield tlen tkv tlen ↻ tstreq tcat card tcat ↻ tcatn sys_mmap ↻ tcatn ↻ render tstreq ↻ tcat ↻ sovcls tstreq ↻ render ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_openat_wr sys_write ↻ sys_close ↻ tpn sys_mmap ↻ sys_write ↻

structs

none

consts

17const K_MAGIC_1024: i64 = 1024
19const GEN: *u8 = "knowledge/registry/genesis_lineage.tsv"
20const REG: *u8 = "knowledge/registry/build_registry.log"
21const OUT: *u8 = "web_assets/genealogy_tree.html"
22const FB: i64 = 262144
23const OB: i64 = 1048576
24const MAXN: i64 = 4096
25const SLOT: i64 = 200

functions

27func tp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
28func tlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: tkvmain
29func tpn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
38func tstreq(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 3: sovclsrendermain
39func tread(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
45func tcat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o }
called by 3: cardrendermain
47func tcatn(dst: *u8, off: i64, v: i64) -> i64
called by 2: cardmain calls 1: sys_mmap
57func sovcls(sov: *u8) -> *u8
called by 1: render calls 1: tstreq
66func tfield(buf: *u8, ls: i64, le: i64, idx: i64, out: *u8) -> i64
called by 1: main
73func tkv(buf: *u8, ls: i64, le: i64, key: *u8, out: *u8) -> i64
called by 1: main calls 1: tlen
83func card(dst: *u8, off: i64, cls: *u8, v: i64, lbl: *u8) -> i64
called by 1: main calls 2: tcattcatn
91func render(dst: *u8, off: i64, node: *u8,
called by 2: rendermain calls 4: tstreqtcatsovclsrender
129func main() -> i64