code wiki / (root) / nx_worldvis_gate.nx

nx_worldvis_gate.nx

buildroot/runtime/nx_worldvis_gate.nx

11408 B190 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_worldvis_gate.nx -- THE VISIBLE-EXPERIENCE RULER (donors-into-world rung, 2026-08-23). The operator's complaint was exact: boards improved while the served worlds stood still. This gate measures the SERVED pages (the docroot files a visitor receives), never a board: - each world page carries the visiting-cast roster, loader, authored-surface mode and the footer declaration -- and the ROSTER COUNT ON THE PAGE equals the conf's row count (count bound IN the condition; an empty conf cannot vacuously pass: rows>0 is a tooth); - every declared donor asset is SERVED and carries TEXC+TEXM (a clay visitor cannot pass); - neg-control-banked-predonor-page-fires: the banked pre-donor page must LACK the roster marker, proving the marker teeth are capable of failing (a green that never had a corresponding red is unverified). Pixel-level GPU sampling proof is browser territory, declared here and witnessed by the operator-facing headless captures (worldcap); this gate is the structural, always-runnable half. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_worldvis_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

17func wv_find(hay: *u8, n: i64, needle: *u8) -> i64
31func wv_count(hay: *u8, n: i64, needle: *u8) -> i64
45func wv_rd64(b: *u8, off: i64) -> i64 { var v: i64 = 0; var k: i64 = 7; while k >= 0 { v = v*256 + (b[off+k] as i64); k = k - 1 } return v }
46func wv_tag4(b: *u8, off: i64, t: *u8) -> i64 { if b[off] == t[0] { if b[off+1] == t[1] { if b[off+2] == t[2] { if b[off+3] == t[3] { return 1 } } } } return 0 }
49func wv_conf_rows(buf: *u8, n: i64) -> i64
64func wv_page(ctr: *i64, path: *u8, label_pre: *u8, want: i64) -> i64
98func main() -> i64