code wiki / _hdl_build / nx_video_embed_gate.nx
nx_video_embed_gate.nx
buildroot/runtime/_hdl_build/nx_video_embed_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 12 | func 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 } |
| 13 | func 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 } |
| 14 | func 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 |
| 17 | func vg_has(path: *u8, needle: *u8) -> i64 |
| 31 | func vg_must(name: *u8, path: *u8, needle: *u8, st: *i64) -> i64 |
| 38 | func vg_not(name: *u8, path: *u8, needle: *u8, st: *i64) -> i64 |
| 46 | func main() -> i64 |