code wiki / (root) / nx_swcompare_research.nx

nx_swcompare_research.nx

buildroot/runtime/nx_swcompare_research.nx

3127 B64 linesdepth 24pulls 155 transitivereach 0 importersview sourcekind tooltopic swcompare
docsdependenciesstructsconstsfunctions

about

nx_swcompare_research.nx -- the GENERATIVE researcher stage of Nishi Compare. Generalizes the hardcoded nx_frontier_research_fetch: reads a per-domain QUERY SPEC (data, not code) and banks the CURRENT (2024-2026) frontier for that domain over sovereign TLS via the KEYLESS scholarly APIs (OpenAlex/arXiv/Crossref). This is "use the nishi researcher on 25/26 gaps" made reusable -- a new domain = a new spec file, zero new code. Spec format (knowledge/compare/<domain>.q): one query per line "<bankname><TAB><url>"; lines without a TAB (or starting with '#') are skipped. Banks -> knowledge/library/<bankname>.txt (the researcher's evidence corpus, consumed by nx_swcompare's gap-map). Usage: nx_swcompare_research <spec-path> license_tier: ORIGINAL expect_exit:0

dependencies 1 imports · 0 importers

nx_research_engine.nx nx_swcompare_research.nx

imports: nx_research_engine.nx

imported by: nobody (leaf or entry point)

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

main rf_init nx_trust_store_load_from_c sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal sys_mkdir rf_puts sys_write ↻

structs

none

consts

9const K_MAGIC_131072: i64 = 131072
10const K_MAGIC_8388608: i64 = 8388608
11const K_MAGIC_8192: i64 = 8192
12const K_MAGIC_2200: i64 = 2200

functions

14func sr_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main
21func main(argc: i64, argv: *i64) -> i64