code wiki / (root) / nx_ediscovery_lib.nx

nx_ediscovery_lib.nx

buildroot/runtime/nx_ediscovery_lib.nx

3908 B87 linesdepth 7pulls 12 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_ediscovery_lib.nx -- F994: E-DISCOVERY PRODUCTION SCREEN (EDRM review -> produce), on the CID plane. The catastrophic e-discovery failure is INADVERTENT DISCLOSURE: a privileged document handed to opposing counsel by accident. Firms spend fortunes on review to prevent it and still fail, because production is treated as a DENY-list (produce everything except what we remembered to withhold). The sovereign inversion: production is an ALLOW-LIST. A document is producible ONLY if it was affirmatively reviewed and marked RESPONSIVE. Privileged, non-responsive, and -- critically -- UNREVIEWED documents are all non-producible BY DEFAULT. You cannot produce what you have not screened, so the accident cannot happen by omission. FAIL-CLOSED DEFAULT: a document with no classification is UNREVIEWED, and unreviewed is not producible. An unknown/garbage status is likewise not producible -- only the exact string "responsive" opens the gate. ed_screen counts every non-producible document in a proposed production set; a set is safe to produce ONLY when that count is zero. ed_privilege_count feeds the privilege log (the withheld-doc deliverable). SCALE ENVELOPE (declared): ed_screen is O(set size) reg_get lookups. DRY: composes nx_matter_lib (reg_put/reg_get/mt_field/canon_encode). license_tier: ORIGINAL LIB.

dependencies 1 imports · 1 importers

nx_matter_lib.nx nx_ediscovery_lib.nx nx_ediscovery_gate.nx

imports: nx_matter_lib.nx

imported by: nx_ediscovery_gate.nx

structs

none

consts

22const ED_PRODUCIBLE: i64 = 1

functions

25func ed_classify(prefix: *u8, doc_id: *u8, status: *u8) -> i64
called by 1: main calls 2: canon_encodereg_put
36func ed_status(prefix: *u8, doc_id: *u8, out: *u8) -> i64
51func ed_is_producible(prefix: *u8, doc_id: *u8) -> i64
called by 2: mained_screen calls 2: ed_statusmt_streq
60func ed_screen(prefix: *u8, doc_ids: *i64, n: i64) -> i64
called by 2: mained_set_clean calls 1: ed_is_producible
71func ed_set_clean(prefix: *u8, doc_ids: *i64, n: i64) -> i64
called by 1: main calls 1: ed_screen
77func ed_privilege_count(prefix: *u8, doc_ids: *i64, n: i64) -> i64
called by 1: main calls 2: ed_statusmt_streq