code wiki / _hdl_build / nx_site_deploy.nx
nx_site_deploy.nx
buildroot/runtime/_hdl_build/nx_site_deploy.nx
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
imports: nx_syscalls.nx
imported by: nx_site_deploy_test.nx
structs
| none |
consts
| 10 | const SD_DEPLOYED: i64 = 1 |
| 11 | const SD_ROLLED_BACK: i64 = 2 // deployed but health failed -> auto-restored the backup (site never left broken) |
| 12 | const SD_BLOCKED: i64 = 0 // not safe to deploy (missing a gate) -> do not touch production |
functions
| 15 | func sd_safe(backup: i64, verified_equiv: i64, health_pre: i64, rollback_ready: i64) -> i64 called by 1: main |
| 21 | func sd_verdict(safe: i64, post_health: i64) -> i64 called by 1: main |
| 28 | func sd_version(current: i64, verdict: i64) -> i64 called by 1: main |
| 32 | func sd_can_rollback(current: i64, target: i64) -> i64 called by 1: main |
| 40 | func sd_rebuild_safe(source_pinned: i64, drift_detected: i64) -> i64 called by 1: main |
| 45 | func sd_verdict_label(v: i64) -> *u8 called by 1: main |