code wiki / _hdl_build / nx_auditor.nx
nx_auditor.nx
buildroot/runtime/_hdl_build/nx_auditor.nx
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
imports: nx_syscalls.nx
imported by: nx_auditor_test.nx
structs
| none |
consts
| 16 | const AUD_SOVEREIGN: i64 = 0 |
| 17 | const AUD_COMPETITOR: i64 = 1 |
| 18 | const AUD_REFERENCE: i64 = 2 |
| 19 | const AUD_TEST_HARNESS: i64 = 3 |
| 20 | const AUD_DEPENDENCY: i64 = 4 |
| 21 | const AUD_SUBSTRATE: i64 = 5 |
| 63 | const AUD_NATIVE: i64 = 2 // sovereign AND bare-metal -> full hardware capability |
| 64 | const AUD_HOSTED: i64 = 1 // sovereign but runs ON a substrate (Linux/WSL) -- not bare-metal yet |
| 65 | const AUD_NOT_NATIVE: i64 = 0 // absent / runs only on 3rd-party hardware |
functions
| 24 | func aud_is_gap(status: i64) -> i64 { if status == AUD_DEPENDENCY { return 1 } return 0 } called by 1: main |
| 27 | func aud_is_demarcated(status: i64) -> i64 called by 1: main |
| 34 | func aud_is_sovereign(status: i64) -> i64 { if status == AUD_SOVEREIGN { return 1 } return 0 } called by 1: main |
| 37 | func aud_ok(status: i64) -> i64 { if status == AUD_DEPENDENCY { return 0 } return 1 } called by 1: main |
| 39 | func aud_count(statuses: *i64, n: i64, kind: i64) -> i64 |
| 45 | func aud_gap_count(statuses: *i64, n: i64) -> i64 { return aud_count(statuses, n, AUD_DEPENDENCY) } |
| 48 | func aud_sovereignty_permil(statuses: *i64, n: i64) -> i64 |
| 54 | func aud_pure_sovereign_permil(statuses: *i64, n: i64) -> i64 |
| 67 | func aud_native_status(is_sovereign: i64, bare_metal: i64, exists: i64) -> i64 |
| 73 | func aud_native_gaps(native_statuses: *i64, n: i64) -> i64 |
| 78 | func aud_native_label(s: i64) -> *u8 |