code wiki / _hdl_build / nx_video_embed_gate.nx

nx_video_embed_gate.nx

buildroot/runtime/_hdl_build/nx_video_embed_gate.nx

7430 B106 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic video
docsdependenciesstructsconstsfunctions

about

nx_video_embed_gate.nx -- STRUCTURAL + SECURITY + SOVEREIGNTY gate for the <nishi-video> embed (nx_video_embed). Greps the THREE real emitted artifacts (web_assets/video_embed.html, embed.js, video_embed_demo.html) and proves, by construction: [need] every safety/sovereignty/ergonomics property is present (origin-checked postMessage, least-privilege allow=, sandbox isolation, proven relay routes, CSP, typed CustomEvents, mode handling, the snippet) [deny] none of the "bullshit" is present (NO third-party/CDN, NO trackers, NO cookies, NO eval, NO http://) Liar-kill: a missing file OR a missing required marker OR a present forbidden marker -> RED (exit 1). This is the same cite-or-refuse discipline as nx_embed_exceed -- the gate cannot go GREEN on an absent artifact. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_video_embed_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 sys_mmap vg_puts sys_write vg_must vg_has sys_openat_rd sys_mmap ↻ sys_read sys_close vg_strlen vg_puts ↻ vg_pn sys_mmap ↻ sys_write ↻ sys_openat_append sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

none

functions

12func vg_puts(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 3: vg_mustvg_notmain calls 1: sys_write
13func vg_pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=(48 as u8);k=1}; while m>0{t[k]=((48+(m%10)) as u8);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
14func vg_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: vg_has
17func vg_has(path: *u8, needle: *u8) -> i64
31func vg_must(name: *u8, path: *u8, needle: *u8, st: *i64) -> i64
called by 1: main calls 2: vg_hasvg_puts
38func vg_not(name: *u8, path: *u8, needle: *u8, st: *i64) -> i64
calls 2: vg_hasvg_puts
46func main() -> i64