nx_dr_run.nx
buildroot/runtime/nx_dr_run.nx
about
nx_dr_run.nx -- the REAL-TEXT matching / judge stage (DR-0 rung-2).
The five DR organs take pre-computed judge inputs (entail scores, flags, votes). This
organ closes the loop: it turns REAL document text + REAL groundtruth-insight strings
into REAL insight coverage, so a fetched source produces a real number instead of a
fixture. It is the sovereign LEXICAL judge tier -- a djb2-hashed bag-of-tokens with
token-containment entailment (the same dv_entail the verifier uses); PPMI (recall lane)
and the no-float LLM are the escalation tiers on this same socket (honest tiering, the
matching is NOT claimed to be neural-grade).
Composes nx_dr_verify (dv_entail). All funcs <=6 params (NAS nx_cc mishandles >6-arg
stack spill, debt seq239). Imports drift-immune organs + nx_syscalls. No hw writes (Rule 26).
module: nishi-core.research.dr_run
depends: nx_dr_verify.nx, nx_syscalls.nx
genealogy_id: bag_of_words_1975 + drbench_2026_insight_recall
dependencies 2 imports · 9 importers
imports: nx_dr_verify.nxnx_syscalls.nx
imported by: nx_dr_chain.nxnx_dr_chain_cli.nxnx_dr_corpus.nxnx_dr_corpus_cli.nxnx_dr_densejudge_cli.nxnx_dr_run_cli.nxnx_dr_semjudge_cli.nxnx_dr_semjudge_gate.nxnx_dr_semjudge_x_cli.nx
structs
| none |
consts
| 17 | const DRR_MAGIC_5381: i64 = 5381 |
| 19 | const DRR_MOD: i64 = 1000000007 |
functions
| 21 | func drr_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 24 | func drr_hash(buf: *u8, start: i64, end: i64) -> i64 called by 1: drr_tokenize |
| 38 | func drr_tokenize(buf: *u8, len: i64, out_ids: *i64, maxn: i64) -> i64 |
| 63 | func drr_covered(ins: *i64, ni: i64, doc: *i64, nd: i64, threshold: i64) -> i64 calls 1: dv_entail |