code wiki / (root) / nx_mirror_live_probe.nx

nx_mirror_live_probe.nx

buildroot/runtime/nx_mirror_live_probe.nx

4256 B67 linesdepth 21pulls 146 transitivereach 0 importersview sourcekind probetopic mirror
docsdependenciesstructsconstsfunctions

about

nx_mirror_live_probe.nx -- rung-2 LIVE PROOF that the sovereign "download a published artifact -> NAS, byte-verified" PIPELINE works end to end on REAL data. SINGLE RESPONSIBILITY = TLS/transport (fetch + NAS store + byte-exact round-trip). Crypto (sha256 CAS + Ed25519 receipt) is the separate TLS-free nx_mirror_orchestrator (already GREEN). SOURCE NOTE (verified-honest): our sovereign fetcher reaches en.wikipedia.org / news.ycombinator.com / apertvs.ai, but HANGS on huggingface.co (the Apertus WEIGHTS host) -- its edge is HTTP/2 / chunked / likely TLS-HRR, which our HTTP-1.1 + TLS-1.3 client doesn't yet negotiate. So this proof mirrors a REACHABLE real Apertus-PROJECT artifact (apertvs.ai) to isolate the pipeline as WORKING; pulling the .safetensors weights is gated on the HF-reachability fix (chunked-transfer + HTTP/2/HRR) OR the torrent route -- named as the next build target, not faked. GREEN iff fetched + stored on the NAS + read-back byte-identical. NO gcc/curl/wget. Additive (one NAS file). license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_mirror_live_probe.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx

imported by: nobody (leaf or entry point)

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

main w sys_write 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_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id

structs

none

consts

17const K_MAGIC_4194304: i64 = 4194304

functions

19func w(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: wnmain calls 1: sys_write
20func wn(v: i64) -> i64 { var m: i64=v; if m<0{w("-" as *u8);m=0-m} let t:*u8=sys_mmap(24); 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; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 1: main calls 3: wsys_mmapsys_write
21func mp_memeq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i < n { if a[i] != b[i] { return 0 } i=i+1 } return 1 }
23func main() -> i64