code wiki / _hdl_build / nx_nist_grader.nx

nx_nist_grader.nx

buildroot/runtime/_hdl_build/nx_nist_grader.nx

6071 B102 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tooltopic nist
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_docportal_search_seg.nx nx_nist_grader.nx

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

main sys_mmap dss_search_off_div dss_prefix dss_open_maybe_cached dsc_web_prefix_is ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free sys_munmap ↻ sys_munmap ↻ dsc_manifest_sig ss_cat ↻ sys_fstatat sys_munmap ↻ sys_munmap ↻

structs

none

consts

14const K_MAGIC_6693559182638029275: i64 = 6693559182638029275
15const K_MAGIC_5538705301442471477: i64 = 5538705301442471477
16const K_MAGIC_3119289749596666905: i64 = 3119289749596666905
17const K_MAGIC_2030190535770191367: i64 = 2030190535770191367
18const K_MAGIC_1282544026247849879: i64 = 1282544026247849879
19const K_MAGIC_1657827407921962443: i64 = 1657827407921962443

functions

21func ng_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: ng_putsng_rankmain
22func ng_puts(s: *u8) -> i64 { sys_write(1, s, ng_slen(s)); return 0 }
called by 2: ng_probemain calls 2: sys_writeng_slen
23func ng_putn(v: i64) -> i64
called by 2: ng_probemain calls 2: sys_mmapsys_write
38func ng_rank(domain: *u8, q: *u8, expect_cid: i64, cids: *i64, scores: *i64, totp: *i64) -> i64
called by 1: ng_probe calls 2: dss_search_off_divng_slen
51func ng_probe(domain: *u8, q: *u8, expect_cid: i64, kind: i64, label: *u8, cids: *i64, scores: *i64, totp: *i64, first: i64) -> i64
called by 1: main calls 3: ng_putsng_rankng_putn
67func main(argc: i64, argv: *i64) -> i64