code wiki / _hdl_build / nx_video_chat_gate.nx

nx_video_chat_gate.nx

buildroot/runtime/_hdl_build/nx_video_chat_gate.nx

3632 B54 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic video
docsdependenciesstructsconstsfunctions

about

nx_video_chat_gate.nx -- gate for the /video ROOM TEXT CHAT rung (R3 of the rival-parity ladder, operator 2026-07-02 "have all of their features like texting"). Proves the WIRING is present in the shipped client sources: (a) app.js sends type:"chat" over the existing relay (zero server change -- nx_signaling_v2 sig2_broadcast fans any frame out), (b) app.js receives + renders via textContent (no HTML injection), (c) history persists in the PROFILE namespace nishi_chat_<room> (separate from clearable caches -- the browser profile-store split), (d) index.html carries the panel + composer + unread badge. LIVENESS of the deployed copy = the funcheck row video_chat (this gate is source-truth; funcheck is served-truth). NEG-control: a bogus pattern must be ABSENT or the gate is a liar. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_video_chat_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main pw sys_write slen check filehas sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close contains slen ↻ pw ↻ pn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

12func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: pwcontains
13func pw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 }
called by 2: checkmain calls 2: sys_writeslen
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
18func contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: filehas calls 1: slen
23func filehas(path: *u8, pat: *u8) -> i64
called by 1: check calls 3: sys_mmapsys_read_filecontains
28func check(name: *u8, path: *u8, pat: *u8, want: i64) -> i64
called by 1: main calls 2: filehaspw
36func main() -> i64
calls 3: pwcheckpn