code wiki / _hdl_build / nx_store_seed.nx
nx_store_seed.nx
buildroot/runtime/_hdl_build/nx_store_seed.nx
about
nx_store_seed.nx -- THE generic "migrate any flat plane into a sovereign seg-store" CLI
(operator 2026-07-17: unify store-seed; the review found ~30 bespoke per-plane seeders and no generic).
nx_store_seed <store-prefix> <staging-file> -> migrate the flat file into the store, print row count
nx_store_seed <store-prefix> load -> dump the store as newline-joined rows (store-emitted view)
Store-law: the flat staging file is put-file staging; the seg-store is the SSOT. Reuses sts_seed/sts_load.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_store_seed_lib.nxnx_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
| 11 | const NSS_STDERR: i64 = 2 |
| 12 | const NSS_ARGC_MIN: i64 = 3 |
| 13 | const NSS_IDX_SRC: i64 = 2 |
| 14 | const NSS_L: i64 = 108 // 'l' of "load" |
| 15 | const NSS_NL: i64 = 10 |
| 16 | const NSS_CAP: i64 = 1048576 |
| 17 | const NSS_SZCAP: i64 = 16 |
| 18 | const NSS_MSGCAP: i64 = 128 |
| 19 | const NSS_EXIT_USAGE: i64 = 2 |
functions
| 21 | func nss_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(NSS_STDERR, s, n); return 0 } |
| 23 | func main(argc: i64, argv: *i64) -> i64 |