nx_mirror_live_probe.nx
buildroot/runtime/nx_mirror_live_probe.nx
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
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
structs
| none |
consts
| 17 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 19 | func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 20 | func 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 } |
| 21 | func 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 } |
| 23 | func main() -> i64 |