code wiki / _hdl_build / nx_host_deploy.nx
nx_host_deploy.nx
buildroot/runtime/_hdl_build/nx_host_deploy.nx
about
nx_host_deploy.nx -- the team's UNIFIED S-class hosting + deploy capability (operator: "s class site
hosting and deployment with ease and speed"). It composes every piece the team built -- provenance
stamp, backup, sovereign ssh_put_file, differential-equivalence verify, health-check, auto-rollback --
into ONE orchestrated deploy with a single verdict, for TWO hosting models:
FILE_BASED -- the daemon serves from a web/ DOC ROOT. Deploy = sovereign file-put to the doc root ->
INSTANTLY live, NO rebuild, NO source needed. Fast + easy + source-loss-proof. S-CLASS.
COMPILED -- routes hoisted into the binary (the current live sites.elf). Deploy = rebuild ->
verify-equivalence -> swap. Slower, and BLOCKED if the source is not pinned (which is
exactly the trap the live site fell into).
The lesson encoded: the team should HOST file-based for ease+speed, and never let a deploy be
un-provenanced again. license_tier: ORIGINAL Composes nx_deploy + nx_deploy_verify + nx_deploy_provenance.
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_host_deploy_test.nx
structs
| none |
consts
| 15 | const HD_FILE_BASED: i64 = 1 |
| 16 | const HD_COMPILED: i64 = 2 |
| 18 | const HD_BLOCKED: i64 = 0 // cannot deploy safely (no source for compiled / transfer failed) |
| 19 | const HD_STAGED: i64 = 1 // transferred but unhealthy -> rolled back, not live |
| 20 | const HD_LIVE: i64 = 2 // deployed + healthy + serving |
functions
| 23 | func hd_ease_speed(mode: i64) -> i64 { if mode == HD_FILE_BASED { return 95 } return 40 } called by 1: main |
| 26 | func hd_source_independent(mode: i64) -> i64 { if mode == HD_FILE_BASED { return 1 } return 0 } called by 1: main |
| 29 | func hd_verdict(mode: i64, transferred: i64, healthy: i64, source_pinned: i64, verified_equivalent: i64) -> i64 called by 1: main |
| 44 | func hd_recommend() -> i64 { return HD_FILE_BASED } called by 1: main |
| 47 | func hd_is_sclass(mode: i64, verdict: i64) -> i64 called by 1: main |