nx_self_audit.nx
buildroot/runtime/nx_self_audit.nx
about
nx_self_audit.nx -- substrate-native self-awareness primitive.
Per user directive 2026-05-14: "and nishi lang should be self aware
of all these things allowing the user to improve it as it goes".
Reads every substrate state file (algorithm_cards / ontology /
patent_table / source_allowlist / displacement_targets /
perf_baselines / competition_history) plus runtime/ inventory,
and emits an ACTIONABLE per-domain coverage + per-status report.
Output convention: each line either announces a gap with a named
next-action OR confirms a covered area with a number. No raw
counts without context.
genealogy_id: substrate_self_awareness_2026_05_14
lineage_id: user_improvable_introspection
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_str.nxnx_provenance.nxnx_patent_check.nxnx_ontology.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 35 | func nx_audit_count_lines(path: *u8) -> nx_int |
| 65 | func nx_audit_print_count(label: *u8, n: nx_int) |
| 73 | func main() -> nx_exit |