code wiki / _hdl_build / nx_test_evidence_census.nx
nx_test_evidence_census.nx
buildroot/runtime/_hdl_build/nx_test_evidence_census.nx
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
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
| 12 | const K_MAGIC_900000: i64 = 900000 |
| 13 | const K_MAGIC_2000: i64 = 2000 |
| 14 | const K_MAGIC_65536: i64 = 65536 |
functions
| 16 | func 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 } |
| 17 | func 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 } |
| 18 | func 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 |
| 19 | func tc_appd(buf: *u8, pos: i64, v: i64) -> i64 |
| 31 | func tc_write_file(path: *u8, data: *u8, n: i64) -> i64 |
| 38 | func tc_fsize(path: *u8) -> i64 |
| 44 | func 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 |
| 45 | func tc_typ(b: *u8, o: i64, t0: i64, t1: i64, t2: i64, t3: i64) -> i64 called by 1: tc_validate_clip |
| 51 | func tc_validate_clip(path: *u8, expfr: i64, out: *i64) -> i64 |
| 86 | func main() -> i64 |