nx_quality_gate.nx
buildroot/runtime/nx_quality_gate.nx
about
nx_quality_gate.nx -- substrate-native shipped/incomplete classifier.
Per user oversight directive 2026-05-14 (gap #6): a substrate
primitive is "shipped" only if it has BOTH a curated card AND an
audit-journal entry. Anything missing either is "incomplete".
Reads three inputs (caller writes them under nxc2/_offc/):
- quality_modules.txt : module names, one per line
- algorithm_cards.jsonl : the curated cards file
- quality_journal.jsonl : concatenated audit journal(s)
Outputs to stdout:
shipped: <n>
with_card: <n>
with_journ: <n>
incomplete: <n>
Plus stderr-style listings of which modules are missing what.
Cardinal-aligned: no magic numbers; bounded by NX_QG_MAX_MODULES.
genealogy_id: substrate_oversight_quality_gate_2026_05_14
lineage_id: shipped_classifier
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_str.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
| 35 | const NX_QG_MAX_MODULES: nx_int = 4096 |
| 36 | const NX_QG_NAME_LEN: nx_size = 128 |
| 37 | const NX_QG_NEEDLE_LEN: nx_size = 160 // "\"module\":\"<name>\"" or "\"" + name + "\"" |
functions
| 40 | func nx_qg_substr_in(haystack: *u8, hay_n: nx_int, needle: *u8, n_n: nx_int) -> nx_int called by 1: main |
| 61 | func main() -> nx_exit |