code wiki / _hdl_build / nx_hub_provision_gate.nx

nx_hub_provision_gate.nx

buildroot/runtime/_hdl_build/nx_hub_provision_gate.nx

3866 B69 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_provision_gate.nx -- SOVEREIGN in-process gate for standalone-domain hub provisioning. Writes a fixture .hub, provisions it to /tmp, and asserts: the docroot index.html rendered the hub, the sites.conf got a `<domain>\t<docroot>` host->docroot line (so sites.elf serves bradrwest.com as its OWN domain, not a nishifamily path), the manifest marks it standalone, and a MISSING config is REFUSED (fail-closed). GREEN iff T1..T5. Sovereign: nx_hub_provision + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_hub_provision.nx nx_syscalls.nx nx_hub_provision_gate.nx

imports: nx_hub_provision.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_w sys_write g_trunc sys_openat_wr sys_close g_writef sys_openat_wr ↻ sys_write ↻ g_len sys_close ↻

structs

none

consts

none

functions

9func g_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: g_rowmain calls 1: sys_write
10func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
11func g_row(name: *u8, ok: i64) -> i64
calls 1: g_w
16func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 }
called by 1: main calls 2: sys_openat_wrsys_close
17func g_writef(path: *u8, s: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd < 0 { return 0 - 1 } sys_write(fd, s, g_len(s)); sys_close(fd); return 0 }
18func g_contains_file(path: *u8, needle: *u8) -> i64
36func main() -> i64