code wiki / _hdl_build / nx_auditor.nx

nx_auditor.nx

buildroot/runtime/_hdl_build/nx_auditor.nx

4342 B82 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_auditor.nx -- the NISHI AUDITOR (operator: identify what parts of the stack are STILL third-party, and distinguish a 3rd-party used as a DEMARCATED competitor/reference/test-harness from a 3rd-party we actually DEPEND ON -- the latter is the real sovereignty gap). Composes with the Genealogist (lineage/ provenance is its domain). The point: "sovereign" must be an AUDITED fact, not a claim. Every external touchpoint is classified: SOVEREIGN -- pure NishiLang, the team owns it COMPETITOR -- a 3rd-party used ONLY as a benchmark/race target (gcc/clang race) -- DEMARCATED, fine REFERENCE -- a 3rd-party used ONLY to triangulate/verify (numpy float reference) -- DEMARCATED, fine TEST_HARNESS -- a 3rd-party used ONLY in tests to simulate/cross-check (mock server, curl) -- DEMARCATED DEPENDENCY -- a 3rd-party the team RELIES ON in the real artifact/loop path -- a SOVEREIGNTY GAP SUBSTRATE -- OS kernel / hardware -- unavoidable, not a closeable 3rd-party gap Only DEPENDENCY is a gap; the demarcated uses are intentional + honest. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_auditor.nx nx_auditor_test.nx

imports: nx_syscalls.nx

imported by: nx_auditor_test.nx

structs

none

consts

16const AUD_SOVEREIGN: i64 = 0
17const AUD_COMPETITOR: i64 = 1
18const AUD_REFERENCE: i64 = 2
19const AUD_TEST_HARNESS: i64 = 3
20const AUD_DEPENDENCY: i64 = 4
21const AUD_SUBSTRATE: i64 = 5
63const AUD_NATIVE: i64 = 2 // sovereign AND bare-metal -> full hardware capability
64const AUD_HOSTED: i64 = 1 // sovereign but runs ON a substrate (Linux/WSL) -- not bare-metal yet
65const AUD_NOT_NATIVE: i64 = 0 // absent / runs only on 3rd-party hardware

functions

24func aud_is_gap(status: i64) -> i64 { if status == AUD_DEPENDENCY { return 1 } return 0 }
called by 1: main
27func aud_is_demarcated(status: i64) -> i64
called by 1: main
34func aud_is_sovereign(status: i64) -> i64 { if status == AUD_SOVEREIGN { return 1 } return 0 }
called by 1: main
37func aud_ok(status: i64) -> i64 { if status == AUD_DEPENDENCY { return 0 } return 1 }
called by 1: main
39func aud_count(statuses: *i64, n: i64, kind: i64) -> i64
45func aud_gap_count(statuses: *i64, n: i64) -> i64 { return aud_count(statuses, n, AUD_DEPENDENCY) }
48func aud_sovereignty_permil(statuses: *i64, n: i64) -> i64
called by 1: main calls 1: aud_gap_count
54func aud_pure_sovereign_permil(statuses: *i64, n: i64) -> i64
called by 1: main calls 1: aud_count
67func aud_native_status(is_sovereign: i64, bare_metal: i64, exists: i64) -> i64
73func aud_native_gaps(native_statuses: *i64, n: i64) -> i64
78func aud_native_label(s: i64) -> *u8