code wiki / doc

topic: doc

78 modules sharing the doc name family (derived from the tree's prefix discipline).

The 'doc' topic family in the Nishi sovereign ecosystem manages secure, content-addressed document handling and confidentiality. It uses _doc_cas_authored to generate immutable document IDs via sha256, ensuring data integrity. nx_doc_annotate provides a LEGAL RUNG D4 markup overlay for annotations, while nx_doc_at_rest securely stores confidential documents with cryptographic sealing. These modules work together to enable a trusted, auditable, and confidential document lifecycle within the ecosystem.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
_doc_cas_authored.nxcontent-addressed document ID via sha256, bits-up142
nx_doc_annotate.nxLEGAL RUNG D4: the sovereign annotation / markup overlay.21913
nx_doc_annotate_gate.nxGATE for LEGAL D4 (nx_doc_annotate).2355
nx_doc_at_rest.nxAT-REST WIRING: the thin store layer that seals CONFIDENTIAL docs with the crypto core1096
nx_doc_at_rest_gate.nxMEASURED hermetic gate for the at-rest wiring (nx_doc_at_rest). Fresh nonce domain per13910
nx_doc_authz.nxPER-CLIENT EYES-ONLY authorization for confidential docs (the P2 vault read gate). Closes the808
nx_doc_authz_gate.nxMEASURED hermetic gate for per-client EYES-ONLY authz + the private-doc read route1309
nx_doc_autoheal.nxthe Doctor's autonomous RESOLVE loop. Closes the two halves the team already has634
nx_doc_autoheal_apply.nx814
nx_doc_autoheal_gate.nx645
nx_doc_build_resolve.nxAutomatically builds, diagnoses, and heals modules with real-time error resolution and rebuild verification.1237
nx_doc_catalog.nxR2 of THE NISHI DOCUMENT-INTELLIGENCE arc: the LIBRARIAN -- CATALOG / ORGANIZE /472
nx_doc_catalog_gate.nxR2 GATE for the doc-intelligence LIBRARIAN: proves documents are cataloged as834
nx_doc_census.nxD1 stone of NISHI_DOCS_DOCTRINE_ROADMAP V2.60726
nx_doc_census_real_audit_test.nxSUBSTRATE-WIDE V2 audit binary.681
nx_doc_census_real_listing_test.nxsubstrate-wide V2 audit331
nx_doc_census_run_test.nxend-to-end bits-up docs audit binary.761
nx_doc_census_test.nxKAT for D1 docs census classifier.2021
nx_doc_classify.nxR3 of THE NISHI DOCUMENT-INTELLIGENCE arc: CLASSIFY a document by TYPE (medical583
nx_doc_classify_gate.nxR3 GATE: proves the data-driven document classifier routes documents to the956
nx_doc_constscan.nxstatic detector for the LM-030 footgun (sibling of nx_doc_ubscan/LM-031): indexing a1225
nx_doc_constscan_gate.nx475
nx_doc_constscan_run.nx292
nx_doc_crypto.nxENCRYPTION-AT-REST core for CONFIDENTIAL docportal shards (client -prv-/-secret-/uploads;17911
nx_doc_crypto_gate.nxMEASURED hermetic gate for encryption-at-rest (nx_doc_crypto). Fresh nonce domain per1079
nx_doc_dashboard.nxD23 dashboard composite.2796
nx_doc_dashboard_substrate_state_test.nxwrites substrate's911
nx_doc_dashboard_test.nxKAT + visual smoke for D23.571
nx_doc_decision.nxD20 first stone of V5 docs doctrine.1986
nx_doc_decision_test.nxKAT for D20 ADR-shape primitive.841
nx_doc_demo_healed.nxa DELIBERATELY broken subject for dogfooding the Doctor's autonomous heal on the REAL121
nx_doc_demo_kw.nxthe SECOND empty-.s sub-case for dogfooding: a reserved keyword (`match`) used as a122
nx_doc_demo_subject.nxa DELIBERATELY broken subject for dogfooding the Doctor's autonomous heal on the REAL121
nx_doc_demo_subject_healed.nxa DELIBERATELY broken subject for dogfooding the Doctor's autonomous heal on the REAL121
nx_doc_envelope.nxLEGAL RUNG D2: the e-signature ENVELOPE workflow.35519
nx_doc_envelope_gate.nxGATE for LEGAL D2 (nx_doc_envelope).2665
nx_doc_extract.nxR1 of THE NISHI DOCUMENT-INTELLIGENCE arc: READ a document's text into STRUCTURED1557
nx_doc_extract_gate.nxR1 GATE for THE NISHI DOCUMENT-INTELLIGENCE arc. Proves reading an itemized815
nx_doc_extractor_md.nxV2.0 P-7: deep .md artifact parser.1533
nx_doc_extractor_nx.nxV2.0 P-6: deep .nx artifact parser.2555
nx_doc_func_scan.nxbits-up function-pattern extraction.1741
nx_doc_func_scan_test.nxKAT for bits-up func-pattern scanner.951
nx_doc_heal_let.nxDOCTOR auto-fixer (doc_heal family) for the #1 empty-.s cause: a `let` binding that is874
nx_doc_heal_let_gate.nx565
nx_doc_incumbent.nxD21 provenance tier + D22 multi-incumbent26311
nx_doc_incumbent_test.nxKAT for D21+D22 primitives.1081
nx_doc_inref.nxincoming-reference counter for substrate docs.933
nx_doc_inref_test.nxKAT for doc-reference counter.701
nx_doc_kwscan.nxDOCTOR reserved-keyword diagnosis (the reserved-kw sub-case of empty-.s, the sibling of the1257
nx_doc_kwscan_gate.nx584
nx_doc_layout.nxdocument layout: text -> 8-bit GRAYSCALE page bitmap (front half of "print real1013
nx_doc_layout_test.nxgate for the grayscale document layout engine. Unique exit codes per invariant:913
nx_doc_lexstat.nxMEASUREMENT PROBE for the keyword-stuffing penalty design (2026-08-04, debt744
nx_doc_mainscan.nxDOCTOR diagnosis for a NEW failure class discovered live this session: nxasm exits rc=102593
nx_doc_mainscan_gate.nx483
nx_doc_member.nxTHE NISHI LIBRARIAN joins the team: registers the `docintel` DOMAIN into THE NISHI364
nx_doc_print.nxPRINT A REAL DOCUMENT, end to end, 100% sovereign: text -> grayscale page (nx_doc_layout1465
nx_doc_render_mermaid.nxD10 first stone of V4 docs doctrine.1357
nx_doc_render_mermaid_test.nxKAT for D10 Mermaid emitter.641
nx_doc_research_fetch.nxthe Nishi RESEARCHER's sovereign web-fetch for THE NISHI DOCUMENT-INTELLIGENCE1085
nx_doc_scan.nxR4 of THE NISHI DOCUMENT-INTELLIGENCE arc: the SCAN / CAPTURE leg (paper/image ->1397
nx_doc_scan_gate.nxR4 GATE for the doc-intelligence SCAN/CAPTURE leg: proves sovereign template-match947
nx_doc_seal.nxLEGAL RUNG D5: tamper-evident e-signature SEAL.1294
nx_doc_seal_gate.nxGATE for LEGAL D5 (nx_doc_seal).1414
nx_doc_serve.nxLEGAL RUNG D3: open-the-document-in-the-app-of-choice.1478
nx_doc_serve_gate.nxGATE for LEGAL D3 (nx_doc_serve).1374
nx_doc_to_urf.nxrender a whole text document across as many pages as needed into ONE multi-page URF.491
nx_doc_to_urf_test.nxgate for the multi-page document->URF encoder. Unique exit codes per invariant:543
nx_doc_ubscan.nxa static detector for the UNDEFINED-BEHAVIOR pattern LM-031: an inline cast-then-index453
nx_doc_ubscan_gate.nx434
nx_doc_vault.nxLEGAL RUNG D1: per-tenant document vault (retention core).1778
nx_doc_vault_gate.nxGATE for LEGAL D1 (nx_doc_vault).1303
nx_doc_view.nxthe Nishi browser's DOCUMENT-VIEWER DISPATCH. Makes the browser an omnitool WITHOUT bloat:1199
nx_doc_view_gate.nxgate for the document-viewer DISPATCH (the browser omnitool core). Proves nx_doc_view11611
nx_doc_xref.nxcross-reference verification primitives.55510
nx_doc_xref_dual_audit_test.nxsubstrate-wide multi-namespace351
nx_doc_xref_real_audit_test.nxsubstrate-wide broken-ref audit.291
nx_doc_xref_test.nxKAT for cross-reference verification.1251