code wiki / _hdl_build / nx_corpus_scan_gate.nx
nx_corpus_scan_gate.nx
buildroot/runtime/_hdl_build/nx_corpus_scan_gate.nx
about
nx_corpus_scan_gate.nx -- PROVE gk_corpus_scan ENUMERATES THE WHOLE COMPILE CORPUS.
WHY THIS GATE EXISTS
--------------------
nx_unwired's header claims "FULL ECOSYSTEM SCOPE, NOT A SAMPLE: every .nx in the tree" while its
UW_DIR constant names ONE directory. Measured 2026-08-08: 7,159 of 18,559 files = 38.6%. Because
the unscanned files are BOTH definition sources AND call sources, the truncation corrupted the
answer in both directions at once -- 30 names were reported UNWIRED that are called in the files
it never opened, and 3,379 definitions in those files were never examined at all.
★★★★★★ AN INSTRUMENT THAT DECLARES FULL-TREE SCOPE IN ITS HEADER AND HARDCODES ONE DIRECTORY IN
ITS CONSTANT MEASURES A SUBSET AND REPORTS IT AS THE POPULATION.
Every tooth below is FULL POPULATION, never a sample -- a sample cannot see that a class is empty,
only that it is rare, and "no clipped paths" is exactly an emptiness claim.
usage: nx_corpus_scan_gate
exit: 0 GREEN, 1 RED (exit code carries the verdict; canonical verdict= line is printed LAST)
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_gatekit_lib.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
| 22 | const CG_CAP: i64 = 32768 |
| 23 | const CG_STRIDE: i64 = 128 |
functions
| 25 | func cg_base(path: *u8) -> i64 called by 1: main |
| 35 | func main(argc: i64, argv: *i64) -> i64 |