code wiki / (root) / nx_uxf_extract_avro.nx

nx_uxf_extract_avro.nx

buildroot/runtime/nx_uxf_extract_avro.nx

6126 B111 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic uxf
docsdependenciesstructsconstsfunctions

about

nx_uxf_extract_avro.nx -- UXF arc R1b-2: the sovereign EXTRACT pass over the decoupling source. Chains proven organs end-to-end: read R1a raw -> split header/body at CRLFCRLF -> nx_http_dechunk -> nx_html_to_text_x -> pattern-extract Law-4 (data<->functionality decoupling) signal (schema / evolution / reader / writer / compatib* / Avro). This is the researcher's MECHANICAL fact-extraction -- substring/count work the team owns -- NOT semantic NLP (the honest "last sliver"). Robust by construction: - if nx_http_dechunk fails, FALL BACK to the body as-is (it may already be dechunked by nx_https_get_complete) -- we do not assume the wire framing. - if the core terms are absent (e.g. gzip-encoded body), verdict=RED, no fake green. Pattern helpers inlined as ux_* (mirror nx_research_extract's re_*) to stay runtime/-local until the cross-dir import is confirmed (Rule 15 refactor later). No hardware/persistent writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_http_dechunk.nx nx_html_to_text.nx nx_uxf_extract_avro.nx

imports: nx_syscalls.nxnx_http_dechunk.nxnx_html_to_text.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ux_puts sys_write sys_exit ux_putn sys_mmap ↻ sys_write ↻ ux_body_off nx_http_dechunk hd_hexval nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻

structs

none

consts

18const K_MAGIC_4194304: i64 = 4194304

functions

20func ux_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 2: ux_signalmain calls 1: sys_write
21func ux_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 2: ux_signalmain calls 2: sys_mmapsys_write
22func ux_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ux_count
25func ux_count(text: *u8, n: i64, term: *u8) -> i64
called by 1: ux_signal calls 1: ux_slen
40func ux_body_off(raw: *u8, n: i64) -> i64
called by 1: main
49func ux_signal(text: *u8, n: i64, label: *u8, term: *u8) -> i64
called by 1: main calls 3: ux_countux_putsux_putn
55func main() -> i64