code wiki / _hdl_build / nx_site_snapshot.nx

nx_site_snapshot.nx

buildroot/runtime/_hdl_build/nx_site_snapshot.nx

1863 B35 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic site
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_site_snapshot.nx nx_site_snapshot_test.nx

imports: nx_syscalls.nx

imported by: nx_site_snapshot_test.nx

structs

none

consts

none

functions

12func snap_route_ok(bytes: i64) -> i64 { if bytes > 0 { return 1 } return 0 }
called by 1: snap_coverage
15func snap_coverage(route_bytes: *i64, n: i64) -> i64
called by 2: snap_completemain calls 1: snap_route_ok
22func snap_complete(route_bytes: *i64, n: i64) -> i64 { if snap_coverage(route_bytes, n) == n { return 1 } return 0 }
called by 1: main calls 1: snap_coverage
25func snap_redeployable(complete: i64) -> i64 { return complete }
called by 1: main
28func snap_decouples_content(complete: i64) -> i64 { return complete }
called by 1: main
31func snap_total_bytes(route_bytes: *i64, n: i64) -> i64
called by 1: main