code wiki / (root) / nx_court_ingest.nx

nx_court_ingest.nx

buildroot/runtime/nx_court_ingest.nx

6552 B146 linesdepth 24pulls 155 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_court_ingest.nx -- R1a rung-2b: LIVE multi-page court-data ingester (CourtListener v4 financial-disclosures). Fetches pages over sovereign TLS (rf_fetch_bank), parses each (needle-scan), FOLLOWS the v4 next cursor, and banks every page to knowledge/library/cl_ingest_p<N>.txt = the start of OUR OWN court corpus. Politeness + retry + circuit-breaker inherited from nx_research_engine. Import ONLY nx_research_engine -> inherits sys_* + rf_* (no double-import duality). nx_cc traps avoided: no double-quote / hash / bang / parens in string literals. license_tier: ORIGINAL expect_exit:0

dependencies 1 imports · 0 importers

nx_research_engine.nx nx_court_ingest.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

8const K_MAGIC_1048576: i64 = 1048576
9const K_MAGIC_4096: i64 = 4096

functions

11func ci_read(path: *u8, buf: *u8, cap: i64) -> i64
calls 1: sys_read
17func ci_count(buf: *u8, n: i64, needle: *u8) -> i64
28func ci_needle(dst: *u8, name: *u8) -> i64
38func ci_str_after(buf: *u8, n: i64, needle: *u8, dst: *u8, dcap: i64) -> i64
68func ci_name(dst: *u8, page: i64) -> i64
81func ci_wn(v: i64) -> i64
88func main() -> i64
calls 2: rf_initrf_puts