code wiki / (root) / nx_deploy_lib.nx

nx_deploy_lib.nx

buildroot/runtime/nx_deploy_lib.nx

11021 B207 linesdepth 3pulls 3 transitivereach 74 importersview sourcekind librarytopic deploy
docsdependenciesstructsconstsfunctions

about

nx_deploy_lib.nx -- the SAFETY CORE that turns "pushing live" from an F-level manual shit-show into ONE reliable gated call. Operator: "im tired of pushing live being such a shit show its f level right now." What was missing (per the deploy evaluation): VALIDATE-before-promote, HEALTH-verify-after, AUTO-ROLLBACK on fail. This lib is those guarantees, pure + gateable; nx_deploy.nx wires them around the PROVEN organs (nx_aw_hostctl deploy/status/rollback, atomic rename, sovereign SSH). license_tier: ORIGINAL

dependencies 2 imports · 58 importers

nx_syscalls.nx nx_itoa_lib.nx nx_deploy_lib.nx nx_archcensus.nx nx_atlas_discover_gate.nx nx_atlas_gapscan_gate.nx nx_autofix_cascade_gate.nx nx_autofix_ensemble.nx nx_buildonly.nx nx_consol_apply.nx nx_consol_apply_gate.nx nx_consol_apply_mc.nx nx_consol_apply_mc_gate.nx

diagram shows first 10 each side; +0 more imports, +48 more importers in the complete lists below.

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nx_archcensus.nxnx_atlas_discover_gate.nxnx_atlas_gapscan_gate.nxnx_autofix_cascade_gate.nxnx_autofix_ensemble.nxnx_buildonly.nxnx_consol_apply.nxnx_consol_apply_gate.nxnx_consol_apply_mc.nxnx_consol_apply_mc_gate.nxnx_consolidate.nxnx_consolidate_gate.nxnx_depcycle.nxnx_depcycle_gate.nxnx_deploy_gate.nxnx_feed.nxnx_fix_build.nxnx_fix_echo.nxnx_funcmine.nxnx_funcmine_gate.nxnx_fwdconst_scan_gate.nxnx_gated_edit.nxnx_gated_edit_gate.nxnx_gated_edit_multi.nxnx_gated_edit_multi_gate.nxnx_gaterigor.nxnx_gaterigor_gate.nxnx_http_health_lib.nxnx_k3_arch_census_gate.nxnx_lane_attest.nxnx_lane_attest_gate.nxnx_langintel_gh_fetch.nxnx_ledger_min.nxnx_map_delegate.nxnx_map_remove_func.nxnx_mc_fix.nxnx_mgmt_data.nxnx_mvault_gate.nxnx_nishilang_norm_gate.nxnx_oo_extract.nxnx_oo_extract_gate.nxnx_plan_run.nxnx_plan_run_gate.nxnx_pm_board.nxnx_pm_board_gate.nxnx_resolve_lib.nxnx_seat_drive.nxnx_seat_drive_gate.nxnx_seat_hub.nxnx_seat_hub_gate.nxnx_sharpgrade.nxnx_sharpgrade_gate.nxnx_sheriff_gate.nxnx_split_resolve.nxnx_store_put_gate.nxnx_sweep_dir.nxnx_symjudge.nxnx_symjudge_gate.nx

structs

none

consts

8const K_MAGIC_2277: i64 = 2277
9const K_MAGIC_4096: i64 = 4096
10const K_MAGIC_4095: i64 = 4095
11const K_MAGIC_262144: i64 = 262144
12const K_MAGIC_262140: i64 = 262140

functions

14func dp_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
15func dp_w(fd: i64, s: *u8) -> i64 { let n: i64=dp_len(s); sys_write(fd,s,n); return 0 }
called by 1: main calls 2: dp_lensys_write
20func dp_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
21func dp_read(path: *u8, buf: *u8, cap: i64) -> i64
30func dp_writefile(path: *u8, buf: *u8, n: i64) -> i64
40func dep_validate(path: *u8, kind: i64) -> i64
64func dep_decide(valid: i64, ship_rc: i64, promote_rc: i64, health_ok: i64) -> i64
called by 1: main
73func dep_run(elf: *u8, args: *i64, nargs: i64) -> i64
91func dp_contains(buf: *u8, n: i64, pat: *u8) -> i64
106func dep_status_healthy(buf: *u8, n: i64, up_token: *u8) -> i64 { return dp_contains(buf, n, up_token) }
called by 2: maindep_health calls 1: dp_contains
120func dep_run_capture_bounded(elf: *u8, args: *i64, nargs: i64, outfile: *u8, deadline_ms: i64) -> i64
181func dep_run_capture(elf: *u8, args: *i64, nargs: i64, outfile: *u8) -> i64
201func dep_health(helf: *u8, up_token: *u8, tmpfile: *u8) -> i64