code wiki / _hdl_build / nx_genealogy_tree.nx
nx_genealogy_tree.nx
buildroot/runtime/_hdl_build/nx_genealogy_tree.nx
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
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
structs
| none |
consts
| 17 | const K_MAGIC_1024: i64 = 1024 |
| 19 | const GEN: *u8 = "knowledge/registry/genesis_lineage.tsv" |
| 20 | const REG: *u8 = "knowledge/registry/build_registry.log" |
| 21 | const OUT: *u8 = "web_assets/genealogy_tree.html" |
| 22 | const FB: i64 = 262144 |
| 23 | const OB: i64 = 1048576 |
| 24 | const MAXN: i64 = 4096 |
| 25 | const SLOT: i64 = 200 |
functions
| 27 | func tp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 28 | func tlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 29 | func tpn(v: i64) -> i64 |
| 38 | func 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 } |
| 39 | func tread(path: *u8, buf: *u8, cap: i64) -> i64 |
| 45 | func 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 } |
| 47 | func tcatn(dst: *u8, off: i64, v: i64) -> i64 |
| 57 | func sovcls(sov: *u8) -> *u8 |
| 66 | func tfield(buf: *u8, ls: i64, le: i64, idx: i64, out: *u8) -> i64 called by 1: main |
| 73 | func tkv(buf: *u8, ls: i64, le: i64, key: *u8, out: *u8) -> i64 |
| 83 | func card(dst: *u8, off: i64, cls: *u8, v: i64, lbl: *u8) -> i64 |
| 91 | func render(dst: *u8, off: i64, node: *u8, |
| 129 | func main() -> i64 |