code wiki / (root) / nx_quality_gate.nx

nx_quality_gate.nx

buildroot/runtime/nx_quality_gate.nx

6086 B160 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic quality
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_str.nx nx_quality_gate.nx

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_write nx_qg_substr_in print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻

structs

none

consts

35const NX_QG_MAX_MODULES: nx_int = 4096
36const NX_QG_NAME_LEN: nx_size = 128
37const NX_QG_NEEDLE_LEN: nx_size = 160 // "\"module\":\"<name>\"" or "\"" + name + "\""

functions

40func nx_qg_substr_in(haystack: *u8, hay_n: nx_int, needle: *u8, n_n: nx_int) -> nx_int
called by 1: main
61func main() -> nx_exit