code wiki / _hdl_build / nx_genesis_trace.nx

nx_genesis_trace.nx

buildroot/runtime/_hdl_build/nx_genesis_trace.nx

16554 B345 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic genesis
docsdependenciesstructsconstsfunctions

about

nx_genesis_trace.nx -- THE GENESIS GENEALOGY TRACER. module: nishi-core.genealogy.genesis_trace capability: CORE_COMPUTE (the god->adam&eve->...->IO-endpoint lineage, made queryable) THE MODEL (operator 2026-06-16): god = the ORIGINATION point -- ANY hardware substrate, not locked to one chip. adam & eve = the conceptual 1 and 0 (binary; quantum = the higher register) god passes down. FRAGMENTATION points = 3rd-party divergence axes (hardware, os, ...) where you can get LOCKED to a vendor/variant. UNIFICATION points = layers that SPAN a fragmentation axis ("runs on all hardware", "one app on all OSes") so you are NOT locked. A fragmentation axis with NO unification node = a lock-in (a BOOTSTRAP_MAP broken link). final endpoint = the APP <-> IO LOOP with a human or machine (OS is NOT the top). This organ READS the lineage straight from DATA (knowledge/registry/genesis_lineage.tsv) and re-derives, FRESH every run (Cardinal 11/25 -- add an axis = add rows, no code change): * traces the endpoint DOWN to god, asserting it bottoms out at the origination (any HW); * flags BROKEN LINKS (a parent_id that names no node) -- loud, never silently traced; * censuses every FRAGMENTATION axis and whether a UNIFICATION spans it (else LOCKED). Sovereign: imports only nx_syscalls (no gcc/sed/awk). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_genesis_trace.nx nx_genesis_trace_gate.nx

imports: nx_syscalls.nx

imported by: nx_genesis_trace_gate.nx

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

main gt_puts sys_write sys_mmap gt_analyze gt_parse sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close gt_field_dup sys_mmap ↻ gt_type_code gt_streq gt_streq ↻ gt_find gt_streq ↻ gt_axis_has_uni gt_streq ↻ gt_node_reaches_god gt_streq ↻ gt_find ↻ gt_has_child gt_streq ↻ sys_exit gt_print_spine gt_puts ↻ gt_type_name gt_streq ↻ gt_find ↻ gt_putn sys_write ↻ sys_mmap ↻

structs

none

consts

25const GT_FILE: *u8 = "knowledge/registry/genesis_lineage.tsv"
28const NT_NONE: i64 = 0
29const NT_ORIGIN: i64 = 1
30const NT_PRIM: i64 = 2
31const NT_UNI: i64 = 3
32const NT_DESC: i64 = 4
33const NT_FRAG: i64 = 5
34const NT_VAR: i64 = 6
35const NT_ENDPOINT: i64 = 7

functions

47func gt_puts(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 2: gt_print_spinemain calls 1: sys_write
48func gt_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
58func gt_streq(a: *u8, b: *u8) -> i64
66func gt_field_dup(b: *u8, ls: i64, le: i64, f: i64) -> *u8
called by 1: gt_parse calls 1: sys_mmap
83func gt_type_code(s: *u8) -> i64
called by 1: gt_parse calls 1: gt_streq
93func gt_type_name(t: i64) -> *u8
called by 1: gt_print_spine
105func gt_parse(file: *u8) -> i64
155func gt_find(id: *u8) -> i64
163func gt_axis_has_uni(axis: *u8) -> i64
called by 1: gt_analyze calls 1: gt_streq
172func gt_node_reaches_god(idx: i64) -> i64
called by 1: gt_analyze calls 2: gt_streqgt_find
185func gt_has_child(id: *u8) -> i64
called by 1: gt_analyze calls 1: gt_streq
196func gt_analyze(file: *u8, outs: *i64) -> i64
282func gt_print_spine() -> i64
309func main() -> i64