nx_docgen_lib.nx
buildroot/runtime/nx_docgen_lib.nx
about
nx_docgen_lib.nx -- Nishi Office: DOCUMENT ASSEMBLY (F505) core lib. Data-driven clause
library + templates (ordered clause refs) + {field} merge -> a deterministic, content-
addressed legal document. Legal-SOTA: (1) clauses/templates are DATA on the immutable
seg_store (add a clause = a data change, rule-11/rule-25, never fewer options); (2) merge
is FAIL-CLOSED -- an unknown clause OR an unfilled {field} REFUSES the whole document
(never a silent blank in a contract); (3) same template+data -> same CID (nx_canon_cid),
so an assembled engagement letter is tamper-evident and composes with nx_box + nx_sign.
Composes nx_matter_lib (mt_field/mt_streq/canon) + nx_registry + nx_canon_cid. LIB. license_tier: ORIGINAL
dependencies 1 imports · 4 importers
imports: nx_matter_lib.nx
imported by: nx_docgen.nxnx_docgen_gate.nxnx_docpub_site.nxnx_docpub_tree.nx
structs
| none |
consts
| none |
functions
| 12 | func dg_strlen(s: *u8) -> i64 |
| 19 | func dg_clause_put(prefix: *u8, id: *u8, text: *u8) -> i64 |
| 24 | func dg_tmpl_put(prefix: *u8, id: *u8, csv: *u8) -> i64 |
| 30 | func dg_merge(src: *u8, srclen: i64, mergerec: *u8, mergelen: i64, dst: *u8, o0: i64) -> i64 |
| 65 | func dg_assemble(prefix: *u8, tmpl_id: *u8, mergerec: *u8, mergelen: i64, out: *u8) -> i64 |
| 100 | func dg_unmerged(doc: *u8, len: i64) -> i64 |