code wiki / _hdl_build / nx_census_load.nx
nx_census_load.nx
buildroot/runtime/_hdl_build/nx_census_load.nx
about
nx_census_load.nx -- IM5: the FIRST REAL CORPUS on the sovereign segment
store. Parses knowledge/status/elder_census.log (CENSUS-SVC name=<n>
class=<c> lines -- 447 lines = 149 services x 3 census runs, REAL duplicate
data) into canonical CID records on the DURABLE store knowledge/store/im-*.
Laws exercised on real data:
dedup-by-CID a record whose canonical bytes already live under its key
is SKIPPED (the 3x census repeats collapse measurably)
idempotency run twice => second run adds 0 records, commits 0 segments
(safe-to-run-twice law #10)
additive-only loader never deletes/overwrites; new states would land as
new versions in new segments
Evidence: CENSUS-STORE lines -> stdout + knowledge/status/infomgmt_store.log,
plus an indexed-read probe of a known service. Pure NishiLang, NO SQL.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_canon_cid.nxnx_seg_store.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
| 20 | const K_MAGIC_1024: i64 = 1024 |
| 21 | const K_MAGIC_1000000000: i64 = 1000000000 |
| 22 | const K_MAGIC_2048: i64 = 2048 |
functions
| 24 | func cl_p(s: *u8) -> i64 |
| 31 | func cl_fp(fd: i64, s: *u8) -> i64 |
| 38 | func cl_fn(fd: i64, v: i64) -> i64 |
| 53 | func cl_starts(b: *u8, off: i64, lim: i64, s: *u8) -> i64 called by 1: main |
| 63 | func cl_memeq(a: *u8, b: *u8, n: i64) -> i64 called by 1: main |
| 72 | func main() -> i64 |