code wiki / _hdl_build / nx_site_deploy.nx

nx_site_deploy.nx

buildroot/runtime/_hdl_build/nx_site_deploy.nx

2398 B49 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic site
docsdependenciesstructsconstsfunctions

about

nx_site_deploy.nx -- the team's BUILD -> DEPLOY -> UPDATE capability for nishifamily.com, with the safety gates a live family site demands (operator: "build the teams ability to build this and deploy and update on nishifamily.com"). NEVER mutate production without: a BACKUP, VERIFIED equivalence (what serves == what we built), a post-deploy HEALTH check, and an AUTO-ROLLBACK path. Each successful update is a versioned rollback point. license_tier: ORIGINAL Composes nx_ssh_put (transfer) + nx_deploy (practice score) + nx_work_dashboard / nx_site_generator (build) + nx_site_command (update intent).

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_site_deploy.nx nx_site_deploy_test.nx

imports: nx_syscalls.nx

imported by: nx_site_deploy_test.nx

structs

none

consts

10const SD_DEPLOYED: i64 = 1
11const SD_ROLLED_BACK: i64 = 2 // deployed but health failed -> auto-restored the backup (site never left broken)
12const SD_BLOCKED: i64 = 0 // not safe to deploy (missing a gate) -> do not touch production

functions

15func sd_safe(backup: i64, verified_equiv: i64, health_pre: i64, rollback_ready: i64) -> i64
called by 1: main
21func sd_verdict(safe: i64, post_health: i64) -> i64
called by 1: main
28func sd_version(current: i64, verdict: i64) -> i64
called by 1: main
32func sd_can_rollback(current: i64, target: i64) -> i64
called by 1: main
40func sd_rebuild_safe(source_pinned: i64, drift_detected: i64) -> i64
called by 1: main
45func sd_verdict_label(v: i64) -> *u8
called by 1: main