code wiki / _hdl_build / nx_cloud_deploy_ready.nx
nx_cloud_deploy_ready.nx
buildroot/runtime/_hdl_build/nx_cloud_deploy_ready.nx
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
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
structs
| none |
consts
| 7 | const DR_MAGIC_65536: i64 = 65536 |
| 8 | const DR_MAGIC_65535: i64 = 65535 |
| 10 | const DR_REF: *u8 = "knowledge/registry/deploy_bundle.tsv" |
functions
| 12 | 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 } |
| 13 | func 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 } |
| 14 | func exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 15 | func 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 } |
| 16 | func 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 |
| 18 | func main() -> i64 |