nx_doc_catalog.nx
buildroot/runtime/nx_doc_catalog.nx
about
nx_doc_catalog.nx -- R2 of THE NISHI DOCUMENT-INTELLIGENCE arc: the LIBRARIAN -- CATALOG / ORGANIZE /
MANAGE documents as content-addressed structured records. Composes the existing nx_asset_record vocab
(Dublin Core spine + lifecycle + is_current additive law) -- DRY #15, the document IS just a typed asset
record (type="doc"). Content-addressed: same document bytes -> same CID everywhere (the catalog's self-
proof of integrity + automatic dedup). Each catalog entry carries the structured extraction summary, so
the catalog links a document to its structured data. Commits via seg_store with sys_now_us() (NOT ar_put's
sys_now_ms() -- per reference-segstore-segid-use-now-us, per-op commits must not collide). Additive-only
(#13): re-cataloging is idempotent by content; history is preserved. license_tier: ORIGINAL
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_asset_record.nxnx_seg_store.nx
imported by: nx_doc_catalog_gate.nx
structs
| none |
consts
| 12 | const K_MAGIC_8192: i64 = 8192 |
functions
| 17 | func dc_catalog_doc(prefix: *u8, title: *u8, provider: *u8, date: *u8, source: *u8, summary: *u8, out_cid: *u8) -> i64 |
| 43 | func dc_get(prefix: *u8, cid: *u8, ptrout: *i64, lenout: *i64) -> i64 |