code wiki / (root) / nx_research_verify.nx

nx_research_verify.nx

buildroot/runtime/nx_research_verify.nx

9471 B176 linesdepth 21pulls 147 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

about

nx_research_verify.nx -- the RESEARCH-VERIFICATION STAGE: batch, autonomous, sovereign claim verification. Upgrades the researcher from "fetch + extract" to "fetch + extract + VERIFY against the cited source" -- the SOTA research behavior. Reads a claims TSV (a researcher's findings), FETCHES each cited source itself over the sovereign TLS-1.3 stack, extracts the real value, and banks a verdict ledger + a summary. Composes the proven single-claim primitive (nx_claim_verify) over a batch; the anti-gaming discipline made a pipeline stage: every claim is CONFIRMED/DISCREDITED against real fetched evidence, or UNVERIFIABLE (never fabricated). INPUT (argv[1] or default knowledge/index/rv_claims.tsv): lines of label<TAB>url<TAB>pattern<TAB>claim_tenths<TAB>tol_tenths OUTPUT knowledge/index/rv_verified.tsv: label<TAB>source<TAB>extracted<TAB>claim<TAB>verdict + a stdout summary. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_research_verify.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_rd rv_puts sys_write sys_mmap sys_read sys_close 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_tag asn1_read_length asn1_read_length ↻

structs

none

consts

16const K_MAGIC_262144: i64 = 262144
17const K_MAGIC_4194304: i64 = 4194304
18const K_MAGIC_1024: i64 = 1024
19const K_MAGIC_1500: i64 = 1500

functions

21func rv_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 calls 1: sys_write
26func rv_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
27func rv_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
28func rv_iabs(x: i64) -> i64 { if x < 0 { return 0-x } return x }
called by 1: main
31func rv_find_after(buf: *u8, blen: i64, pat: *u8, patlen: i64) -> i64
called by 1: main
44func rv_parse_tenths(buf: *u8, blen: i64, off: i64) -> i64
called by 1: main
62func rv_int(s: *u8, n: i64) -> i64 { // parse an unsigned int from s[0..n)
called by 1: main
68func main(argc: i64, argv: *i64) -> i64