code wiki / (root) / nx_legal_audit.nx

nx_legal_audit.nx

buildroot/runtime/nx_legal_audit.nx

7082 B186 linesdepth 6pulls 6 transitivereach 1 importersview sourcekind librarytopic legal
docsdependenciesstructsconstsfunctions

about

nx_legal_audit.nx -- algorithmic-cleanliness + sovereignty audit. Per user 2026-05-15: "make sure we are avoiding any legal issues, we want this all to be nishi bits up superior" + "i dont want to use a third party just have something similar as i dont want backdoors, pure nishi lang soverieng". HARD INVARIANTS (encoded in the verdict logic below): 1. EVERY substrate component is licensed NX_LICENSE_NATIVE_NX. The engine REFUSES to register anything else. No third-party code linked, no third-party runtime, no third-party CRT. 2. The (year, author) fields are HISTORICAL CITATION of the ALGORITHM (the math), NOT dependency provenance. We reimplemented from the public mathematical idea; the implementation is 100% NishiLang. 3. We only reimplement algorithms whose underlying math is patent-clean: pre-1929 (Presburger and earlier), academic publication with no patent claim, or expired (>20 yrs). 4. Sovereignty check: nx_legal_verify_sovereign() asserts ZERO non-native licenses across the audit. Returns 1 only if every entry is NX_LICENSE_NATIVE_NX.

dependencies 1 imports · 1 importers

nx_kernel_v2.nx nx_legal_audit.nx nx_lia_legal_test.nx

imports: nx_kernel_v2.nx

imported by: nx_lia_legal_test.nx

structs

50struct LegalEntry
62struct LegalAudit

consts

32const NX_LICENSE_PUBLIC_DOMAIN: nx_int = 1 // > 95 years old or formally PD
33const NX_LICENSE_MIT: nx_int = 2
34const NX_LICENSE_APACHE2: nx_int = 3
35const NX_LICENSE_BSD3: nx_int = 4
36const NX_LICENSE_BSD2: nx_int = 5
37const NX_LICENSE_NATIVE_NX: nx_int = 6 // our own NishiLang code
38const NX_LICENSE_GPL2: nx_int = 100 // contaminating, REFUSED
39const NX_LICENSE_GPL3: nx_int = 101 // contaminating, REFUSED
40const NX_LICENSE_AGPL3: nx_int = 102 // contaminating, REFUSED
41const NX_LICENSE_PROPRIETARY: nx_int = 103 // contaminating, REFUSED
44const NX_PATENT_EXPIRED: nx_int = 1 // published > 20 years ago
45const NX_PATENT_NEVER_PATENTED: nx_int = 2 // academic publication, no patent claim
46const NX_PATENT_OPEN_GRANT: nx_int = 3 // patented but open grant (e.g. AVX intrinsics)
47const NX_PATENT_LIVE: nx_int = 100 // active patent, REFUSED unless licensed
60const NX_LEGAL_BYTES: nx_int = 56
67const NX_LEGAL_AUDIT_BYTES: nx_int = 24
126const NX_LEGAL_CLEAN: nx_int = 1
127const NX_LEGAL_REVIEW: nx_int = 2
128const NX_LEGAL_REFUSED: nx_int = 3

functions