code wiki / _hdl_build / nx_test_evidence_census.nx

nx_test_evidence_census.nx

buildroot/runtime/_hdl_build/nx_test_evidence_census.nx

11501 B153 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic test
docsdependenciesstructsconstsfunctions

about

nx_test_evidence_census.nx -- EVIDENCE-GRADE test artifacts, validated MECHANICALLY (operator: "i dont trust your analysis or anyones without evidence -- video clips of the functionality being tested if its interactive, screenshots if its comps"). For every interactive test the synthetic user RECORDS a browser-playable APNG clip; this census does not trust that either -- it CHUNK-WALKS each clip and verifies: PNG signature, acTL frame count matches the interaction's spec, the fcTL/fdAT chain is complete, and consecutive frame PAYLOADS DIFFER (motion is real, parsed from the stored-zlib stream). Comparison evidence = screenshots (ours vs chrome vs edge, the OCR bench renders). NEG/liar-kill: a planted STILL png must FAIL the animated validation. Emits the human-reviewable evidence page (browser_test_evidence.html) embedding every clip + screenshot. Verdict = integrity. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_test_evidence_census.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 tc_puts sys_write sys_mmap tc_validate_clip sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close tc_rd32 tc_typ tc_num sys_mmap ↻ sys_write ↻ tc_fsize sys_mmap ↻ sys_read_file ↻ tc_app tc_write_file sys_openat_wr sys_write ↻ sys_close ↻ tc_appd sys_mmap ↻ sys_exit

structs

none

consts

12const K_MAGIC_900000: i64 = 900000
13const K_MAGIC_2000: i64 = 2000
14const K_MAGIC_65536: i64 = 65536

functions

16func tc_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 1: main calls 1: sys_write
17func tc_num(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" 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{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
18func tc_app(buf: *u8, pos: i64, s: *u8) -> i64 { var p: i64=pos; var i: i64=0; while s[i]!=(0 as u8) { buf[p]=s[i]; p=p+1; i=i+1 } return p }
called by 1: main
19func tc_appd(buf: *u8, pos: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
31func tc_write_file(path: *u8, data: *u8, n: i64) -> i64
38func tc_fsize(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
44func tc_rd32(b: *u8, o: i64) -> i64 { return ((b[o] as i64)<<24)|((b[o+1] as i64)<<16)|((b[o+2] as i64)<<8)|(b[o+3] as i64) }
called by 1: tc_validate_clip
45func tc_typ(b: *u8, o: i64, t0: i64, t1: i64, t2: i64, t3: i64) -> i64
called by 1: tc_validate_clip
51func tc_validate_clip(path: *u8, expfr: i64, out: *i64) -> i64
86func main() -> i64