code wiki / _hdl_build / nx_research_miner.nx

nx_research_miner.nx

buildroot/runtime/_hdl_build/nx_research_miner.nx

13179 B278 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

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

nx_search_inverted_persist.nx nx_itoa_lib.nx nx_research_miner.nx

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

main rm_puts sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close rm_field_end rm_parse_dec rm_streq_rng sys_openat_append rm_catbuf rm_value rm_count rm_strlen rm_catnum sys_openat_wr rm_cat rm_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write sys_munmap

structs

none

consts

12const RM_CAP: i64 = 65536 // max unique veins
13const RM_SCAN: i64 = 16384 // value-signal scan window (doc head)
14const RM_XT_WEIGHT: i64 = 100 // cross-topic weight (a shared seam is a strong vein signal)
15const RM_TOPK: i64 = 15 // how many top veins to flag S-CLASS-EXCEED

functions

17func 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
22func rm_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
23func 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
24func 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
25func 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
26func rm_catnum(dst: *u8, off: i64, v: i64) -> i64
called by 1: main
34func rm_field_end(buf: *u8, i: i64, end: i64) -> i64
called by 1: main
42func rm_parse_dec(buf: *u8, start: i64, fend: i64) -> i64
called by 1: main
47func rm_streq_rng(buf: *u8, a_off: i64, a_len: i64, b_off: i64, b_len: i64) -> i64
called by 1: main
55func rm_count(hay: *u8, hlen: i64, needle: *u8) -> i64
called by 1: rm_value calls 1: rm_strlen
75func rm_value(buf: *u8, len: i64) -> i64
called by 1: main calls 1: rm_count
102func main() -> i64