code wiki / _hdl_build / nx_reader_sovereignty_gate.nx

nx_reader_sovereignty_gate.nx

buildroot/runtime/_hdl_build/nx_reader_sovereignty_gate.nx

3960 B47 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic reader
docsdependenciesstructsconstsfunctions

about

nx_reader_sovereignty_gate.nx -- mechanical proof the reader last-mile (reader.html) has ZERO third-party bleed = the "hardware rung up" guarantee for the browser surface. The reader is the sanctioned last-mile HTML render; this gate enforces, by construction, that it loads NOTHING from a 3rd party (no external <script src>, no CDN, no external stylesheet/font, no <iframe>, no @import, no offsite src/href). All logic is inline + sovereign; the only fetches are same-origin relative (/library/api/...). Standing regression guard so no future edit slips a CDN dependency in. (Note: full compliance also wants reader.html EMITTED by a Nishi organ -- R-EMIT, the open rung; this gate proves dependency-freeness, the substance.) expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_reader_sovereignty_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 sp sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit sn sys_write ↻ sys_mmap ↻ sabsent sfind sslen sfind ↻

structs

none

consts

none

functions

10func sp(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 1: main calls 1: sys_write
11func sn(v0: i64) -> i64 { var v: i64=v0; if v<0 { sys_write(1,"-" as *u8,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48 as u8;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 }
called by 1: main calls 2: sys_writesys_mmap
12func sslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: sfind
13func sfind(hay: *u8, hl: i64, needle: *u8) -> i64
called by 2: sabsentmain calls 1: sslen
19func sabsent(hay: *u8, hl: i64, needle: *u8) -> i64 { if sfind(hay, hl, needle) < 0 { return 1 } return 0 }
called by 1: main calls 1: sfind
21func main() -> i64