code wiki / _hdl_build / nx_wat_sov_align_gate.nx

nx_wat_sov_align_gate.nx

buildroot/runtime/_hdl_build/nx_wat_sov_align_gate.nx

3632 B61 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic wat
docsdependenciesstructsconstsfunctions

about

nx_wat_sov_align_gate.nx -- ONE-TIME alignment oracle check, then WABT is DROPPED from the video core's wasm lane (operator 2026-07-02: "stop using shell ... use the nishi ecosystem"). Byte-compares the SOVEREIGN nx_wat_compiler output (/tmp/vc_sov.wasm, built from web_assets/nx_video_client.staged.wat) against the WABT-produced web_assets/nx_video_client.staged.wasm. GREEN = byte-identical on the core's REAL 711KB wat -> the pipeline is nxc2 --target wat -> nx_wat_compiler.elf (sovereign), WABT retired to a dropped oracle per nx_wat_compiler's own doctrine. NEG-control: a 1-byte difference must read MISMATCH. Log -> knowledge/status/wat_sov_align.log. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_wat_sov_align_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

12func aw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
13func awn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} 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(fd,bb,k); return 0 }
15func main() -> i64