code wiki / (root) / nx_doc_catalog.nx

nx_doc_catalog.nx

buildroot/runtime/nx_doc_catalog.nx

2831 B47 linesdepth 8pulls 10 transitivereach 1 importersview sourcekind librarytopic doc
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_asset_record.nx nx_seg_store.nx nx_doc_catalog.nx nx_doc_catalog_gate.nx

imports: nx_syscalls.nxnx_asset_record.nxnx_seg_store.nx

imported by: nx_doc_catalog_gate.nx

structs

none

consts

12const K_MAGIC_8192: i64 = 8192

functions

17func dc_catalog_doc(prefix: *u8, title: *u8, provider: *u8, date: *u8, source: *u8, summary: *u8, out_cid: *u8) -> i64
43func dc_get(prefix: *u8, cid: *u8, ptrout: *i64, lenout: *i64) -> i64
called by 1: main calls 2: ss_openss_hget