code wiki / _hdl_build / nx_census_load.nx

nx_census_load.nx

buildroot/runtime/_hdl_build/nx_census_load.nx

7931 B228 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic census
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_canon_cid.nx nx_seg_store.nx nx_census_load.nx

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

main sys_openat_append sys_mmap ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cl_p sys_write ss_begin ss_begin_cap sys_mmap ↻ cl_starts canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ss_cat ss_get_idx sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ↻ ss_readall ↻ sys_munmap ↻ ss_idx_lookup sys_mmap ↻ ss_load_aux ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile sys_map_file ss_readall ↻ ss_r32

structs

none

consts

20const K_MAGIC_1024: i64 = 1024
21const K_MAGIC_1000000000: i64 = 1000000000
22const K_MAGIC_2048: i64 = 2048

functions

24func cl_p(s: *u8) -> i64
called by 1: main calls 1: sys_write
31func cl_fp(fd: i64, s: *u8) -> i64
called by 1: main calls 1: sys_write
38func cl_fn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
53func cl_starts(b: *u8, off: i64, lim: i64, s: *u8) -> i64
called by 1: main
63func cl_memeq(a: *u8, b: *u8, n: i64) -> i64
called by 1: main
72func main() -> i64