code wiki / (root) / nx_diora_leaderboard.nx

nx_diora_leaderboard.nx

buildroot/runtime/nx_diora_leaderboard.nx

12455 B273 linesdepth 7pulls 11 transitivereach 0 importersview sourcekind tooltopic diora
docsdependenciesstructsconstsfunctions

about

nx_diora_leaderboard.nx -- the bits-up search leaderboard, run on the verified Diora Baird qrels vs 4 live-captured incumbents. module: nishi-core.search.bench.diora_leaderboard depends: fx.nx, nx_bench_harness.nx, nx_diora_data.nx capability: APP_RUNNABLE + GATE WHY: prove the operator cardinal -- S-CLASS EXCEED, not sovereignty-as-win. Every score is produced by the sovereign Q16.16 kernels (zero C on the output path). The incumbent SERPs are live captures used ONLY as 1:1 measurement baselines; they are NOT a Nishi index. Nishi's row is its OWN ranking policy (primary-source-first + facet diversity) over the candidate universe. exit 0 == Nishi exceeds EVERY measured incumbent on the research- delivery cardinals (nDCG / primary-precision / altitude, no S-recall regression) -- so this file doubles as a permanent regression gate. HONEST SCOPE (1:1, no proxy): this proves the RANKING + SCORING layer is sovereign and S-class. The document corpus is research-grounded, not yet crawled by our own spider; the sovereign crawler + inverted index (own the INDEX from bits up, not just the ranker) is the next milestone. SREACH R2 (2026-06-10): the facet-oracle-from-gold leak is RETIRED -- the re-rank's facets now come from nx_facet_classify (URL/host/title signals, gated vs gold by nx_facet_gate at a permil bar); gold facets feed SCORING only. The ranking also fuses the CONTENT-ACCESSIBILITY axis (operator directive: engagement/media/info-density, not first-hand alone).

dependencies 4 imports · 0 importers

fx.nx nx_bench_harness.nx nx_diora_data.nx nx_facet_classify.nx nx_diora_leaderboard.nx

imports: fx.nxnx_bench_harness.nxnx_diora_data.nxnx_facet_classify.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_diora_qn nx_diora_fill_qrels nx_diora_eng_count nx_diora_eng_fill nx_bench_qrels_find nx_bench_url_eq nx_bench_canon_len nx_str_len nx_str_chr nx_bench_nishi_rank nx_tier_classify nx_tier_of_url nx_tier_host_has nx_str_str nx_str_len ↻ nx_tier_is_derivative nx_tier_ci_contains nx_str_len ↻ nx_tier_lc nx_tier_score fx_from_frac nx_tier_gain nx_bench_score_serp nx_tier_classify ↻ nx_bench_qrels_find ↻ fx_from_int nx_bench_ndcg nx_bench_dcg fx_div fx_log2_int fx_log2 fx_mul fx_from_int ↻ fx_mul ↻ nx_bench_sort_desc fx_div ↻ nx_bench_subtopic_recall fx_from_frac ↻ nx_bench_cube_filled

structs

none

consts

31const K_MAGIC_10000: i64 = 10000
32const K_MAGIC_9999: i64 = 9999

functions

34func nx_putc(c: i64) -> i64
40func nx_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 2: nx_padmain
42func nx_put_i64(n: i64) -> i64
called by 2: nx_put_q16main calls 1: nx_putc
61func nx_put_q16(x: i64) -> i64
called by 2: nx_print_rowmain calls 2: nx_put_i64nx_putc
76func nx_pad(s: *u8, w: i64) -> i64
called by 1: main calls 2: nx_putsnx_putc
83func nx_print_row(sc: *NxScorecard) -> i64
called by 1: main calls 2: nx_put_q16nx_putc
95func main() -> i64