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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read 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 trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_length x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ trust_store_add

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 calls 1: sys_read
21func main(argc: i64, argv: *i64) -> i64