code wiki / _hdl_build / nx_lineage_raci.nx

nx_lineage_raci.nx

buildroot/runtime/_hdl_build/nx_lineage_raci.nx

8304 B125 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic lineage
docsdependenciesstructsconstsfunctions

about

nx_lineage_raci.nx -- THE RESPONSIBILITY LINEAGE: marries the god-rooted genesis genealogy with team RACI ownership. Operator 2026-06-25: "integrate the team from the god family history up -- who is responsible for what kids in the whole lineage to the end." nx_genesis_trace proves every node ROOTS DOWN to god (orphans=0); THIS organ proves every node ROOTS UP to exactly one accountable TEAM CHAIR (un-owned=0) -- responsibility traceable god->leaf. It JOINS genesis_lineage.tsv (the family tree) with lineage_raci.tsv (the accountability chart: axis|type -> chair), censuses ownership per chair, and NAMES any un-owned node (the actionable gap). Anti-wave liar-kill: a synthetic node whose axis AND type are both unknown MUST flag un-owned, proving the gap detector has teeth. Data-driven (Cardinal 11): a new lineage axis = a new chart row, no recompile. Sovereign: nx_syscalls only (no gcc/sed/awk). main() is the self-validating gate. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_lineage_raci.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 lr_puts sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit lr_rows lr_field sys_mmap ↻ lr_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap lr_resolve lr_streq lr_lookup lr_streq ↻ sys_mmap ↻ lr_streq ↻ sys_openat_append sys_write ↻ sys_close ↻

structs

none

consts

12const LIN_MAGIC_1024: i64 = 1024
14const LIN_FILE: *u8 = "knowledge/registry/genesis_lineage.tsv"
15const CHART_FILE: *u8 = "knowledge/registry/lineage_raci.tsv"

functions

17func lr_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 1: main calls 1: sys_write
22func lr_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
23func lr_streq(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 }
26func lr_field(b: *u8, ls: i64, le: i64, f: i64) -> *u8
called by 1: main calls 1: sys_mmap
34func lr_rows(data: *u8, n: i64, rs: *i64, rl: *i64, cap: i64) -> i64
called by 1: main
46func lr_lookup(keys: *i64, roles: *i64, nk: i64, needle: *u8) -> i64
called by 1: lr_resolve calls 1: lr_streq
52func lr_resolve(keys: *i64, roles: *i64, nk: i64, axis: *u8, typ: *u8) -> i64
called by 1: main calls 3: lr_streqlr_lookupsys_mmap
61func main() -> i64