code wiki / _hdl_build / nx_cloud_deploy_ready.nx

nx_cloud_deploy_ready.nx

buildroot/runtime/_hdl_build/nx_cloud_deploy_ready.nx

4115 B56 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_cloud_deploy_ready.nx -- VULTR/CLOUD DEPLOY PRE-FLIGHT (operator 2026-06-20: "getting us ready for vultr"). Verifies the deploy bundle (deploy_bundle.tsv) is COMPLETE -- every file the native-Linux GPU instance needs to build + run the sovereign GPU stack is present (liar-killed: a missing component -> RED). Emits the turnkey RUNBOOK so the moment the operator drops a Vultr API key, Claude executes a known sequence. When GREEN = ready. No hw writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_cloud_deploy_ready.nx

imports: nx_syscalls.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 sys_mmap rdfile sys_openat_rd sys_read sys_close sys_exit scan_to exists sys_openat_rd ↻ sys_close ↻ wn sys_mmap ↻ sys_write ↻

structs

none

consts

7const DR_MAGIC_65536: i64 = 65536
8const DR_MAGIC_65535: i64 = 65535
10const DR_REF: *u8 = "knowledge/registry/deploy_bundle.tsv"

functions

12func 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 1: main calls 1: sys_write
13func wn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m==0{sys_write(1,"0" as *u8,1);return 0} let t: *u8=sys_mmap(28); var k: i64=0; 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 1: main calls 2: sys_mmapsys_write
14func exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
15func rdfile(path: *u8, buf: *u8, cap: i64) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0{return 0} var t: i64=0; var r: i64=1; while r>0 { r=sys_read(fd,(buf as i64+t) as *u8,cap-t); if r>0{t=t+r} } sys_close(fd); return t }
called by 1: main calls 3: sys_openat_rdsys_readsys_close
16func scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64 { var i: i64=start; var s: i64=1; while s==1 { if i>=n {s=0} else { if buf[i]==(delim as u8){s=0} else {i=i+1} } } return i }
called by 1: main
18func main() -> i64