code wiki / _hdl_build / nx_nist_grader.nx
nx_nist_grader.nx
buildroot/runtime/_hdl_build/nx_nist_grader.nx
about
nx_nist_grader.nx -- reproducible, LIAR-KILLED ingestion grader for the NIST benchmark.
Runs a data-driven CONSUMER-PROBE battery IN-PROCESS against the live seg-store search
(dss_search_off_div) and a coverage proxy, then emits a JSON scorecard. Liar-killed BY CONSTRUCTION:
- each PASS requires the EXPECTED doc CID to appear in the REAL top-K search results (exact i64 CID
match -- no fuzzy self-grading, no asserting);
- the battery deliberately INCLUDES known-GAP consumers (CVE records, a constant's numeric value)
that NO ingested doc can satisfy (expect_cid=0), so consumability can NOT reach 1000 by testing
only easy discovery cases -- the gap stays visible until those asset TYPES are ingested.
Runs in nishihost CWD (the dp-<domain>-pub- seg store resolves there). Reuses the exact search the
public /search serves. license_tier: ORIGINAL | genealogy_id: nishi_nist_grader_2026_07_14
usage: nx_nist_grader [domain] (default nishifamily.com)
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_docportal_search_seg.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
| 14 | const K_MAGIC_6693559182638029275: i64 = 6693559182638029275 |
| 15 | const K_MAGIC_5538705301442471477: i64 = 5538705301442471477 |
| 16 | const K_MAGIC_3119289749596666905: i64 = 3119289749596666905 |
| 17 | const K_MAGIC_2030190535770191367: i64 = 2030190535770191367 |
| 18 | const K_MAGIC_1282544026247849879: i64 = 1282544026247849879 |
| 19 | const K_MAGIC_1657827407921962443: i64 = 1657827407921962443 |
functions
| 21 | func ng_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 22 | func ng_puts(s: *u8) -> i64 { sys_write(1, s, ng_slen(s)); return 0 } |
| 23 | func ng_putn(v: i64) -> i64 |
| 38 | func ng_rank(domain: *u8, q: *u8, expect_cid: i64, cids: *i64, scores: *i64, totp: *i64) -> i64 |
| 51 | func ng_probe(domain: *u8, q: *u8, expect_cid: i64, kind: i64, label: *u8, cids: *i64, scores: *i64, totp: *i64, first: i64) -> i64 |
| 67 | func main(argc: i64, argv: *i64) -> i64 |