code wiki / _hdl_build / nx_site_snapshot.nx
nx_site_snapshot.nx
buildroot/runtime/_hdl_build/nx_site_snapshot.nx
about
nx_site_snapshot.nx -- the team's SITE SNAPSHOT capability (part of S-class hosting: you cannot host
at S-class without snapshot/backup/restore). It captures every live route's content to a file, so the
site's content is DECOUPLED from the serving binary -- source-preserved, redeployable, migratable.
This directly fixed the trap we hit: the live content was reachable ONLY inside a binary whose source
was lost; the snapshot makes the CONTENT the source of truth again. PROVEN by the real capture of
nishifamily.com + andelinwest.com (6 routes, 12462 bytes, into knowledge/captured_site/*.html).
license_tier: ORIGINAL Composes the sovereign fetch + ssh_exec; pairs with nx_host_deploy + the Genealogist.
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_site_snapshot_test.nx
structs
| none |
consts
| none |
functions
| 12 | func snap_route_ok(bytes: i64) -> i64 { if bytes > 0 { return 1 } return 0 } called by 1: snap_coverage |
| 15 | func snap_coverage(route_bytes: *i64, n: i64) -> i64 |
| 22 | func snap_complete(route_bytes: *i64, n: i64) -> i64 { if snap_coverage(route_bytes, n) == n { return 1 } return 0 } |
| 25 | func snap_redeployable(complete: i64) -> i64 { return complete } called by 1: main |
| 28 | func snap_decouples_content(complete: i64) -> i64 { return complete } called by 1: main |
| 31 | func snap_total_bytes(route_bytes: *i64, n: i64) -> i64 called by 1: main |