code wiki / _hdl_build / nx_hub_provision_gate.nx
nx_hub_provision_gate.nx
buildroot/runtime/_hdl_build/nx_hub_provision_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func 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 } |
| 10 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 11 | func g_row(name: *u8, ok: i64) -> i64 calls 1: g_w |
| 16 | func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 } |
| 17 | func 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 } |
| 18 | func g_contains_file(path: *u8, needle: *u8) -> i64 |
| 36 | func main() -> i64 |