code wiki / _hdl_build / nx_deploy_check.nx

nx_deploy_check.nx

buildroot/runtime/_hdl_build/nx_deploy_check.nx

6685 B104 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic deploy
docsdependenciesstructsconstsfunctions

about

nx_deploy_check.nx -- MLIB-022 v1 (CALLOUT-012, operator 2026-06-13: "a deploy organ check -- see what we need to s-class-exceed"). NO live push. Two honest measurements: 1. READINESS: compose the PROVEN nx_deploy primitives -- dep_practice_score (backup/atomic-swap/ healthcheck/rollback/sovereign-transfer = the 5 properties of a safe deploy) + dep_verdict (healthy -> DEPLOYED, unhealthy -> ROLLED_BACK) + dep_rollback_clean. Proves the deploy organ can ship safely (atomic swap via renameat, backup-first, health-gated, auto-rollback, no 3rd party). 2. EXCEED GAP (no-wave): census deploy FEATURES vs incumbents (Vercel/Netlify/Capistrano/K8s/Argo), STATUS COMPUTED from the nx_ecosystem_test self-model (re_has), NOT asserted. Names the ABSENT features = exactly "what we need to s-class-exceed". Honest verdict: sovereign-transfer is our AHEAD axis; orchestration breadth (blue-green/canary/zero-downtime/preview-env) is BEHIND. Self-validating gate (DEPLOYCHECKGATE). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_deploy.nx nx_deploy_check.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_deploy.nx

imported by: nobody (leaf or entry point)

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

main dep_practice_score dep_verdict dep_ready dep_rollback_clean sys_mmap dk_readfile sys_openat_rd sys_read sys_close dk_puts sys_write dk_has dk_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

15const DK_MAGIC_200000: i64 = 200000
17const DK_N: i64 = 10
18const DK_SELF: *u8 = "runtime/_hdl_build/nx_ecosystem_test.nx"

functions

20func dk_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 1: main calls 1: sys_write
25func dk_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
26func dk_readfile(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
35func dk_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
43func main() -> i64