code wiki / _hdl_build / nx_hub_template_gate.nx

nx_hub_template_gate.nx

buildroot/runtime/_hdl_build/nx_hub_template_gate.nx

4355 B88 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_template_gate.nx -- SOVEREIGN in-process gate for the personal-hub template emitter. Feeds a fixture `.hub` blueprint into the PURE ht_emit_hub and asserts the rendered hub page: header/tagline, Blog (with HTML escaping), Videos (+ publish-from-phone CTA), Calendar (event with coach + shared-calendar CTA), Friends (link + video-chat). The load-bearing neg-control = a <script> in post content must be ESCAPED, never emitted raw (XSS defense at the boundary -- migrated/user content is untrusted). GREEN iff T1..T8. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_hub_template.nx nx_syscalls.nx nx_hub_template_gate.nx

imports: nx_hub_template.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_contains g_len g_row g_w ↻ sys_openat_append sys_write ↻ sys_close sys_exit

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 }
called by 1: g_contains
11func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
16func g_contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: g_len
29func main() -> i64