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 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

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

functions

11func ci_read(path: *u8, buf: *u8, cap: i64) -> i64
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