code wiki / _hdl_build / nx_video_chat_gate.nx

nx_video_chat_gate.nx

buildroot/runtime/_hdl_build/nx_video_chat_gate.nx

4034 B61 linesdepth 3pulls 3 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 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_video_chat_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close contains slen ↻ pw ↻ pn sys_mmap ↻ sys_write ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at

structs

none

consts

none

functions

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