code wiki / _hdl_build / nx_builder_authors_inet_fetch.nx

nx_builder_authors_inet_fetch.nx

buildroot/runtime/_hdl_build/nx_builder_authors_inet_fetch.nx

3364 B53 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic builder
docsdependenciesstructsconstsfunctions

about

nx_builder_authors_inet_fetch.nx -- the BUILDER authors the team's SOVEREIGN internet-fetch modules (Claude does NOT hand-write them). TWO templates now: (1) ma_emit_inet_fetch -- the original PLAIN-HTTP fetch (sovereign DNS + nx_browse_text), kept intact. (2) ma_emit_h2_inet_fetch -- R4-H2 capstone NBC-FETCH-001: a sovereign HTTP/2-over-TLS GET that negotiates ALPN "h2" (h2-only ClientHello) and drives the team's OWN HTTP/2 client (preface -> SETTINGS -> HEADERS GET -> read HEADERS+DATA, HPACK-decode :status, reassemble body) over the existing TLS1.3 app-data path. The Builder USES the capability; the Engineer compiles+runs the authored organ against real hosts; Claude evaluates. KEEP author=organ: the Builder emits the source, it is not hand-written. HONEST: the authored organ NEVER fabricates a 200 -- an h2-refusing/walled host is a NEGATIVE rc + named diag in the durable status log; verdict=GREEN strictly iff a real h2 host returned :status 200 + non-empty body. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_module_author.nx nx_syscalls.nx nx_builder_authors_inet_fetch.

imports: nx_module_author.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main _bif_puts sys_write sys_openat_wr sys_exit ma_emit_inet_fetch ma_w sys_write ↻ ma_wn sys_mmap sys_write ↻ sys_close _bif_author_h2 sys_openat_wr ↻ _bif_puts ↻ ma_emit_h2_inet_fetch ma_w ↻ sys_close ↻

structs

none

consts

none

functions

15func _bif_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: _bif_author_h2main calls 1: sys_write
18func _bif_author_h2(url: *u8, sni: *u8, snilen: i64, outpath: *u8, rung: *u8, organ: *u8) -> i64
27func main() -> i64