code wiki / _hdl_build / nx_chart_migrate.nx

nx_chart_migrate.nx

buildroot/runtime/_hdl_build/nx_chart_migrate.nx

4627 B89 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_chart_migrate.nx -- migrate a tab-separated COORDINATION CHART (genesis_lineage / lineage_raci) into a sovereign seg_store, key = the row's FIRST tab field (node-id / chart-key), value = the whole row line (byte-faithful). '#' comment lines + blank lines skipped. ADDITIVE (the .tsv stays = retire-ready); the gated next step is repointing the verifiers (nx_genesis_trace / nx_lineage_raci) to read store-first-else-TSV (the nx_raci_sov pattern), after which the .tsv retires. This closes the ironic last-TSV (we coordinate via these charts). Self-verifies each store re-opens with a known key byte-faithful + __count. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_seg_store.nx nx_syscalls.nx nx_chart_migrate.nx

imports: nx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main cm_puts sys_write cm_migrate sys_mmap ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_add ss_add2 ss_w32 ss_len cm_itoa sys_mmap ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close ↻ sys_fsync sys_renameat ss_build_keys

structs

none

consts

9const K_MAGIC_4194304: i64 = 4194304

functions

11func cm_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
12func cm_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
22func cm_itoa(v: i64, out: *u8) -> i64
called by 1: cm_migrate calls 1: sys_mmap
29func cm_migrate(path: *u8, prefix: *u8) -> i64
66func cm_verify(prefix: *u8, known: *u8) -> i64
called by 1: main calls 3: ss_opensys_mmapss_hget
76func main() -> i64