code wiki / _hdl_build / nx_research_miner.nx
nx_research_miner.nx
buildroot/runtime/_hdl_build/nx_research_miner.nx
about
nx_research_miner.nx -- THE NISHI MINER: flags RICH VEINS in the researched corpus = the high-value seams
worth mining DEEPER to push capability to S-class exceed. Scores every unique content (vein) in the content
registry by TWO grounded signals: (1) CROSS-TOPIC multiplicity -- content that many research topics need is a
rich shared seam (reuses the registry nx_research_grow builds); (2) INNOVATION/OPTIMIZATION signal density --
occurrences of capability-pushing stems (optim/efficien/benchmark/novel/outperform/neural/lossless/...) in the
doc head, i.e. material about optimizing + innovating. richness = xtopic*XT_W + value. Ranks desc, writes
knowledge/index/rich_veins.log, and flags the top seams S-CLASS-EXCEED (where to mine next). 100% offline over
what we already fetched -- no network, deterministic, gateable. expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_search_inverted_persist.nxnx_itoa_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
| 12 | const RM_CAP: i64 = 65536 // max unique veins |
| 13 | const RM_SCAN: i64 = 16384 // value-signal scan window (doc head) |
| 14 | const RM_XT_WEIGHT: i64 = 100 // cross-topic weight (a shared seam is a strong vein signal) |
| 15 | const RM_TOPK: i64 = 15 // how many top veins to flag S-CLASS-EXCEED |
functions
| 17 | func rm_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } called by 1: main |
| 22 | func rm_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 23 | func rm_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: rm_count |
| 24 | func rm_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i];i=i+1} return off+i } called by 1: main |
| 25 | func rm_catbuf(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var i: i64=0; while i<n { dst[off+i]=src[i]; i=i+1 } return off+n } called by 1: main |
| 26 | func rm_catnum(dst: *u8, off: i64, v: i64) -> i64 called by 1: main |
| 34 | func rm_field_end(buf: *u8, i: i64, end: i64) -> i64 called by 1: main |
| 42 | func rm_parse_dec(buf: *u8, start: i64, fend: i64) -> i64 called by 1: main |
| 47 | func rm_streq_rng(buf: *u8, a_off: i64, a_len: i64, b_off: i64, b_len: i64) -> i64 called by 1: main |
| 55 | func rm_count(hay: *u8, hlen: i64, needle: *u8) -> i64 |
| 75 | func rm_value(buf: *u8, len: i64) -> i64 |
| 102 | func main() -> i64 |