nx_deadair_gate.nx
buildroot/runtime/nx_deadair_gate.nx
about
nx_deadair_gate.nx -- REFEREE for MEDIA-STUDIO R0 (nx_deadair).
Frames are 64x48 grayscale, base luma 128. noise_floor=12, active=20 permille.
POSITIVE (dead-air): two identical static frames -> activity 0 -> DEAD-AIR.
POSITIVE (active): a 16x16 subject block appears -> high activity -> ACTIVE.
NEG-CONTROL #1 (noise): per-pixel noise in [-11,+11] (all below the floor).
With the floor it MUST read DEAD-AIR. With floor=0 (naive diff) the SAME
frame reads ACTIVE -- printed side-by-side to PROVE the floor does real
work and the metric is not just raw difference. (metric != raw-diff)
NEG-CONTROL #2 (debounce): a single changed pixel MUST read DEAD-AIR, not
trip "active" on one hot pixel.
Every measured value is PRINTED (no fabricated greens). Evidence ->
stdout + knowledge/status/deadair_gate.log. Exit 0 GREEN / 1 RED.
Sovereign: syscalls (-> nx_syscalls) + nx_image + nx_deadair only.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: syscalls.nxnx_image.nxnx_deadair.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
| 22 | const W: i64 = 64 |
| 23 | const H: i64 = 48 |
| 24 | const FLOOR: i64 = 12 |
| 25 | const ACTV: i64 = 20 |
functions
| 27 | func gp(logfd: i64, s: *u8) -> i64 |
| 34 | func gn(logfd: i64, v: i64) -> i64 |
| 49 | func fill(img: *Image, v: i64) -> i64 |
| 60 | func fill_noise(img: *Image, seed: i64) -> i64 |
| 77 | func report(logfd: i64, label: *u8, act: i64) -> i64 |
| 88 | func main() -> i64 |