code wiki / _hdl_build / nx_chart_migrate.nx
nx_chart_migrate.nx
buildroot/runtime/_hdl_build/nx_chart_migrate.nx
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
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
structs
| none |
consts
| 9 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 11 | func 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 } |
| 12 | func cm_putn(v: i64) -> i64 |
| 22 | func cm_itoa(v: i64, out: *u8) -> i64 |
| 29 | func cm_migrate(path: *u8, prefix: *u8) -> i64 |
| 66 | func cm_verify(prefix: *u8, known: *u8) -> i64 |
| 76 | func main() -> i64 |