code wiki / _hdl_build / nx_log_load.nx

nx_log_load.nx

buildroot/runtime/_hdl_build/nx_log_load.nx

8716 B248 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic log
docsdependenciesstructsconstsfunctions

about

nx_log_load.nx -- IM7 (first slice): the team's append-only LOGS become first-class records on the sovereign store (ONE substrate for corpus + plan + capability evidence; the info-mgmt unification rung). Sources: knowledge/status/pm_plan_durable.log (log=pm_plan) knowledge/status/cap_registry_durable.log (log=capreg) Each non-empty line -> canonical record {kind: team-log-line, log: <name>, line: <text>} keyed by its OWN content CID (key = "log:" + nxc1-sha256 of the canonical bytes): idempotency BY CONSTRUCTION same line = same CID = same key+bytes = dup, never re-added (law #10; re-run after the log grows adds ONLY the new lines) additive-only loader never deletes/overwrites chunked commits 64 docs/segment keeps every segment far under the (LOUD) postings caps; a loud cap refusal aborts the run with the rc printed Evidence: LOG-STORE lines -> stdout + knowledge/status/infomgmt_store.log, plus term + AND probes proving the corpus is searchable. NO SQL. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_canon_cid.nx nx_seg_store.nx nx_log_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_begin ss_begin_cap sys_mmap ↻ ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻ ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ss_r32 ↻

structs

none

consts

23const LG_MAGIC_4096: i64 = 4096
24const LG_MAGIC_8192: i64 = 8192
25const LG_MAGIC_1000000000: i64 = 1000000000
26const LG_MAGIC_4000: i64 = 4000
27const LG_MAGIC_4100: i64 = 4100
80const LG_CHUNK: i64 = 64
81const LG_SEENCAP: i64 = 4000

functions

29func lg_p(s: *u8) -> i64
called by 1: main calls 1: sys_write
36func lg_fp(fd: i64, s: *u8) -> i64
called by 1: main calls 1: sys_write
43func lg_fn(fd: i64, v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
57func lg_memeq(a: *u8, b: *u8, n: i64) -> i64
called by 1: lg_load_file
66func lg_streq(a: *u8, b: *u8) -> i64
called by 1: lg_load_file
83func lg_flush(prefix: *u8, st: *i64) -> i64
93func lg_load_file(prefix: *u8, path: *u8, logname: *u8, st: *i64) -> i64
177func main(argc: i64, argv: *i64) -> i64