nx_uxf_extract_avro.nx
buildroot/runtime/nx_uxf_extract_avro.nx
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
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
structs
| none |
consts
| 18 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 20 | func 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 } |
| 21 | func 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 } |
| 22 | func 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 |
| 25 | func ux_count(text: *u8, n: i64, term: *u8) -> i64 |
| 40 | func ux_body_off(raw: *u8, n: i64) -> i64 called by 1: main |
| 49 | func ux_signal(text: *u8, n: i64, label: *u8, term: *u8) -> i64 |
| 55 | func main() -> i64 |