code wiki / _hdl_build / nx_natstat_redteam_gate.nx

nx_natstat_redteam_gate.nx

buildroot/runtime/_hdl_build/nx_natstat_redteam_gate.nx

4400 B80 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic natstat
docsdependenciesstructsconstsfunctions

about

nx_natstat_redteam_gate.nx -- STANDING PROOF the photoreal grader is not gameable by noise. Locks in the 2026-07-23 hardening: ns_assess alone rates PURE NOISE ~SEMI-REAL (MSCN maxes on noise); ns_assess2 gates by coherence so noise -> CLAY while a coherent image is UNCHANGED. Self-contained + deterministic (LCG noise, ramp gradient) so it can't rot. MUTATION: remove the coherence gate -> T4 RED; crush coherent too -> T5 RED. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_natstat.nx nx_natstat_redteam_gate.nx

imports: nx_syscalls.nxnx_natstat.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap ns_coherence ns_lum ns_assess ns_detail ns_lum ↻ ns_abs ns_down2 ns_mscn_fill ns_lum ↻ ns_isqrt ns_mscn_rho_buf ns_abs ↻ ns_mscn_pair ns_abs ↻ ns_band ns_grad_kurt ns_local_std ns_lum ↻ ns_isqrt ↻ ns_lum ↻ ns_abs ↻ ns_colorful ns_isqrt ↻ ns_ai_periodicity ns_lum ↻ ns_abs ↻ ns_assess2 ns_assess ↻ ns_coherence ↻ rg_hw sys_write rg_pn sys_mmap ↻ sys_write ↻

structs

none

consts

8const K_65536: i64 = 65536

functions

10func rg_hw(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 rg_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func main() -> i64