nx_mvault_record.nx
buildroot/runtime/nx_mvault_record.nx
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
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
| 25 | func mv_record_build(out: *u8, class_code: i64, type_code: i64, mls_code: i64, |
| 47 | func mvr_r32(p: *u8, off: i64) -> i64 called by 1: mv_rec_field |
| 56 | func mv_rec_field(rec: *u8, reclen: i64, key: *u8, klen: i64, |
| 87 | func mv_store_put(prefix: *u8, id: *u8, rec: *u8, reclen: i64) -> i64 |
| 94 | func mv_store_get(prefix: *u8, id: *u8, outp: *i64, outl: *i64) -> i64 |