code wiki / (root) / nx_mvault_record.nx

nx_mvault_record.nx

buildroot/runtime/nx_mvault_record.nx

3948 B97 linesdepth 6pulls 14 transitivereach 8 importersview sourcekind librarytopic mvault
docsdependenciesstructsconstsfunctions

about

nx_mvault_record.nx -- vault item as a CANONICAL CID RECORD on the seg-store. THE SOTA STORAGE FIX (operator 2026-07-17: "get our data on the nishi information management state of the art plane so we stop dicking around with bad formats and bad storage"): every vault item becomes a byte-deterministic NXR1 record {class, type, source, mls, ref} (nx_canon_cid), CID-addressed (nxc1-sha256, dedup by construction), written ADDITIVELY to the seg-store with an atomic id-index (nx_registry). No TSV, no flat galx_vid_*.tsv. Composes ONLY proven, gated organs: nx_canon_cid.nx -- canon_encode (key-sorted framed record), cid_of nx_registry.nx -- reg_put (additive, atomic index), reg_get nx_mvault_ingest -- mv_class_str / mv_type_str / mv_level_str (field values) The record is MLS-classified (mls field) so the librarian's per-level index can shelve it at TS -- private content never enters the public U index. license_tier: ORIGINAL

dependencies 4 imports · 6 importers

nx_syscalls.nx nx_canon_cid.nx nx_registry.nx nx_mvault_ingest.nx nx_mvault_record.nx nx_mvault.nx nx_mvault_fetch.nx nx_mvault_record_gate.nx nx_mvault_reindex.nx nx_mvault_walk.nx nx_vault_gateway.nx

imports: nx_syscalls.nxnx_canon_cid.nxnx_registry.nxnx_mvault_ingest.nx

imported by: nx_mvault.nxnx_mvault_fetch.nxnx_mvault_record_gate.nxnx_mvault_reindex.nxnx_mvault_walk.nxnx_vault_gateway.nx

structs

none

consts

none

functions

25func mv_record_build(out: *u8, class_code: i64, type_code: i64, mls_code: i64,
47func mvr_r32(p: *u8, off: i64) -> i64
called by 1: mv_rec_field
56func mv_rec_field(rec: *u8, reclen: i64, key: *u8, klen: i64,
87func mv_store_put(prefix: *u8, id: *u8, rec: *u8, reclen: i64) -> i64
called by 3: do_recordmainmv_reindex_cid calls 1: reg_put
94func mv_store_get(prefix: *u8, id: *u8, outp: *i64, outl: *i64) -> i64